Corex.Design.Config (Corex Design v0.2.1)

Copy Markdown View Source

Advanced: read and validate config :corex_design.

Most apps set keyword config in config/config.exs and run mix corex.design.build. Use this module when you need programmatic access or validate!/0 before a custom build. Key reference: options_docs/0.

Summary

Functions

Default generated CSS entry path relative to the project root.

Returns formatted NimbleOptions documentation for config :corex_design keys.

Returns the configured CSS output path, or nil.

Validates config :corex_design and resolves themes. Raises on invalid config.

Functions

default_output()

Default generated CSS entry path relative to the project root.

options_docs()

Returns formatted NimbleOptions documentation for config :corex_design keys.

output(config \\ Corex.Design.design_config())

Returns the configured CSS output path, or nil.

resolved(config \\ Corex.Design.design_config())

@spec resolved(keyword() | map()) :: Corex.Design.Config.Resolved.t()

Returns the config :corex_design entry as a Corex.Design.Config.Resolved.

validate!(config \\ Corex.Design.design_config())

Validates config :corex_design and resolves themes. Raises on invalid config.