module
UI::AmberConfig
Overview
App-wide configuration for the Amber integration. Apps set this
once at boot (typically in config/initializers/asset_pipeline.cr):
UI::AmberConfig.design_tokens = UI::DesignTokens::Tokens
.default.with_brand(AcmeBrand.new)
The configured tokens are passed into every UI::ScreenContext
built by UI::ScreenHelpers#compute_screen_html.
Defined in:
asset_pipeline/amber_integration.crClass Method Summary
- .design_tokens : UI::DesignTokens::Tokens
- .design_tokens=(tokens : UI::DesignTokens::Tokens) : UI::DesignTokens::Tokens