Skip to content

@jsvision/core / ThemeOptions

Interface: ThemeOptions

Defined in: color/create-theme.ts:20

Seed colors and override hooks for createTheme.

Properties

accent

readonly accent: Color

Defined in: color/create-theme.ts:24

The brand/accent seed — a resolvable color (hex or named), not 'default'.


danger?

readonly optional danger?: Color

Defined in: color/create-theme.ts:28

Danger signal seed; defaults to a red.


info?

readonly optional info?: Color

Defined in: color/create-theme.ts:34

Info signal seed; defaults to a blue.


mode

readonly mode: "light" | "dark"

Defined in: color/create-theme.ts:22

Light or dark: inverts which end of the neutral ramp becomes surface vs. text.


neutral?

readonly optional neutral?: Color

Defined in: color/create-theme.ts:26

Neutral seed for the surface/text ramp; defaults to a mode-neutral gray. Low-chroma works best.


overrides?

readonly optional overrides?: Partial<ThemeColors>

Defined in: color/create-theme.ts:36

Per-alias overrides merged after generation — an overridden alias re-drives every role that uses it.


roleOverrides?

readonly optional roleOverrides?: Partial<Theme>

Defined in: color/create-theme.ts:38

Per-role overrides deep-merged last — surgical single-role/single-field fixes.


success?

readonly optional success?: Color

Defined in: color/create-theme.ts:32

Success signal seed; defaults to a green.


warning?

readonly optional warning?: Color

Defined in: color/create-theme.ts:30

Warning signal seed; defaults to an amber.