Raxol.UI.Theming.Theme (Raxol v0.5.0)
View SourceTheme management for Raxol UI components.
This module provides functionality for:
- Theme definition and management
- Color palette integration
- Component styling
- Theme variants and accessibility
Summary
Functions
Returns a high-contrast version of the given theme, for accessibility support. If the theme is already high-contrast, returns it unchanged.
Applies a theme by name or struct.
Creates a high contrast variant of the theme.
Returns the current theme.
Returns the dark theme.
Returns the default theme.
Gets a theme by ID.
Gets a color from the theme, respecting variants and accessibility settings.
Gets a component style from the theme.
Initializes the theme system and registers the default theme. This should be called during application startup.
Lists all available themes.
Creates a new theme with the given attributes.
Registers a theme in the application environment.
Types
@type color_value() :: Raxol.Style.Colors.Color.t() | atom() | String.t()
Functions
Returns a high-contrast version of the given theme, for accessibility support. If the theme is already high-contrast, returns it unchanged.
Applies a theme by name or struct.
Creates a high contrast variant of the theme.
Returns the current theme.
Returns the dark theme.
Returns the default theme.
Gets a theme by ID.
Gets a color from the theme, respecting variants and accessibility settings.
Gets a component style from the theme.
Initializes the theme system and registers the default theme. This should be called during application startup.
Lists all available themes.
Creates a new theme with the given attributes.
Registers a theme in the application environment.