abstract class UI::DesignTokens::Brand

Overview

Override surface. A consumer subclasses Brand, sets any subset of the override_* hooks, and passes the instance to Tokens.default.with_brand(...). Unset fields fall through to defaults.

Phase 3 (SwiftUI bridge), Phase 5 (Glass material tokens), and Phase 6 (Side-by-side demo app) all inherit the shape of this interface. Changing it after Phase 1 ships requires a coordinated cross-phase update.

Defined in:

ui/design_tokens.cr

Instance Method Summary

Instance Method Detail

def apply(base : Tokens) : Tokens #

Compose all override hooks into a new Tokens. Returns a NEW object; never mutates base.


[View source]