@jsvision/core / PRESET_SEEDS
Variable: PRESET_SEEDS
constPRESET_SEEDS:Record<"slate"|"nord"|"dracula"|"solarized-dark"|"gruvbox-dark"|"janus"|"warp"|"solstice"|"platinum"|"workbench"|"horizon",ThemeOptions>
Defined in: color/preset-seeds.ts:279
The seed sets behind the createTheme-generated presets, keyed by name — the same { mode, accent, neutral, overrides } options each curated theme is built from, exposed as data so a tool (e.g. a theme editor) can load a preset as an editable starting point rather than an opaque finished theme. The two literal presets (classicTheme, monochromeTheme) are hand-authored and have no seed form, so they are intentionally absent here.
Importing PRESET_SEEDS pulls in every seed set; importing a single preset theme does not pull in this map, so per-preset tree-shaking is preserved.
Example
import { PRESET_SEEDS, createTheme } from '@jsvision/core';
// Rebuild the Nord theme from its seeds, then tweak the accent.
const myNord = createTheme({ ...PRESET_SEEDS.nord, overrides: { accent: '#8fbcbb' } });