get_css_variable_defaults(
*,
dark: bool = True,
colors: ThemeColors | None = None
) | Name | Type | Description |
|---|---|---|
dark | bool | Default: True |
colors | ThemeColors | None | Default: None |
Return custom CSS variable defaults for the given mode.
Most styling is handled by Textual's built-in CSS variables ($primary,
$text-muted, $error-muted, etc.). This function only returns
app-specific semantic variables that have no Textual equivalent.
Selects DARK_COLORS or LIGHT_COLORS when colors is None.
Explicit color set to use. Takes precedence over dark.