Module theme

Module theme 

Source
Expand description

Theme system for OpenKit.

Provides a Tailwind-inspired design token system with light and dark themes.

Structs§

BorderRadii
Border radius tokens (in rem).
BoxShadow
Box shadow definition.
Shadows
Shadow tokens.
SpacingScale
Spacing scale (in rem units).
TailwindPalette
Tailwind color palette.
ThemeColors
Semantic color tokens for the theme.
ThemeData
The complete theme configuration.
Typography
Typography tokens.

Enums§

Theme
Theme variant (light or dark).

Traits§

ColorExt
Extension trait for Color to produce CSS strings.

Functions§

detect_system_theme
Detect the system theme preference.