Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutoLightDark ¶
func AutoLightDark() rx.Observable[Theme]
AutoLightDark returns an Observable that emits a new Theme every minute. Hours 7–17 (inclusive) use DefaultLight; all other hours use DefaultDark.
Types ¶
type Theme ¶
type Theme struct {
Color rx.Observable[tokens.ColorTokens]
Type rx.Observable[tokens.TypeScale]
Motion rx.Observable[tokens.MotionScale]
Spacing rx.Observable[tokens.SpacingScale]
Radius rx.Observable[tokens.RadiusScale]
Elevation rx.Observable[tokens.ElevationScale]
}
Theme carries an rx.Observable for each token category. Consumers subscribe to the fields they need and react to updates without polling.
Click to show internal directories.
Click to hide internal directories.