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.cr

Class Method Summary

Class Method Detail

def self.design_tokens : UI::DesignTokens::Tokens #

[View source]
def self.design_tokens=(tokens : UI::DesignTokens::Tokens) : UI::DesignTokens::Tokens #

[View source]