Readonly
defaultThe default color name property
Readonly
keyThe unique key for the node. It is unique from all other nodes in the ThemeBuilder
Readonly
nameThe name of the node, which is unique relative to it's siblings
Readonly
requiredIs this a required atom?
Add a dependency to another node in the tree
Return a 1-based index for this color in the palette.
A color
A 1-based index for this color
Return all light or dark mode colors which match the filter. If no filter is provided, return all.
Either 'lm' for light mode or 'dm' for dark mode.
Optional
filter: ShadeFilterAn optional filter
Returns all light mode or dark mode colors which match the filter (if any).
Set a listener on this node
The name of the listener.
The callback to call when an event occurs.
Optional
eventTypes: EventType[]The types of events to wait for. If none are specified, listen for all events.
The ListenerSubscription which should be canceled to stop listening.
The ColorPalette atom.