FlintTheme class

Design theme that groups colors, spacing, radii, shadows, and fonts.

Constructors

FlintTheme({String name = 'flint', Map<String, Object?> colors = const {}, Map<String, Object?> spacing = const {}, Map<String, Object?> radii = const {}, Map<String, Object?> shadows = const {}, Map<String, Object?> fonts = const {}, ThemeTokens tokens = const ThemeTokens({})})
Creates a Flint UI design theme.
const

Properties

allTokens ThemeTokens
All theme token groups flattened into one token collection.
no setter
colors Map<String, Object?>
Color token values keyed by color name.
final
cssVariables Map<String, Object?>
CSS custom properties generated from all theme tokens.
no setter
fonts Map<String, Object?>
Font token values keyed by font name.
final
hashCode int
The hash code for this object.
no setterinherited
name String
Theme name used for identification.
final
radii Map<String, Object?>
Radius token values keyed by radius name.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shadows Map<String, Object?>
Shadow token values keyed by shadow name.
final
spacing Map<String, Object?>
Spacing token values keyed by spacing name.
final
tokens ThemeTokens
Additional token values merged with the named token groups.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited