theme

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2026 License: MIT Imports: 3 Imported by: 0

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

Theme carries an rx.Observable for each token category. Consumers subscribe to the fields they need and react to updates without polling.

func Default

func Default() Theme

Default returns a Theme whose every field emits the package-level default value once and then completes. It is the canonical starting point for static or test scenarios that do not need live token switching.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL