Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
feat(themes): add color picker to advanced theme swatches (#4149)
Aidan Holloway-Bidwell1a6d76182145
diff --git a/js/app/packages/theme/components/ColorPickerPopover.tsx b/js/app/packages/theme/components/ColorPickerPopover.tsxnew file mode 100644index 0000000000..e34af648d2--- /dev/null+++ b/js/app/packages/theme/components/ColorPickerPopover.tsx@@ -0,0 +1,177 @@+import { Popover } from '@kobalte/core/popover';+import { cn, Layer } from '@ui';+import { batch, createEffect, createSignal, untrack } from 'solid-js';+import { convertOklchTo, getOklch, validateColor } from '../utils/colorUtil';+import type { ThemeReactiveColor } from '../types/themeTypes';+import { ColorSwatch } from './ColorSwatch';++// Chroma axis maxes out at 0.37, matching the Basic editor's chroma slider.+const CHROMA_MAX = 0.37;++/** One gradient-backed track + thumb + transparent range input, mirroring the+ * slider pattern in ThemeEditorBasic. The track gradient and thumb position are+ * reactive, so dragging any axis live-updates the preview of the others. */+function Slider(props: {+ label: string;+ min: number;+ max: number;+ step: number;+ value: () => number;+ onValue: (n: number) => void;+ gradient: () => string;+ display: () => string;+}) {+ const pct = () =>+ Math.max(0, Math.min(100, ((props.value() - props.min) / (props.max - props.min)) * 100));+ return (+ <div class="flex items-center gap-2">+ <div class="w-3 shrink-0 font-mono text-xs text-ink-muted">{props.label}</div>+ <div class="relative h-2.5 min-w-0 flex-1">+ <div+ class="absolute left-1/2 top-1/2 h-2.5 w-full -translate-x-1/2 -translate-y-1/2 rounded-sm border border-edge"+ style={{ background: props.gradient() }}+ />+ <div+ class="pointer-events-none absolute top-1/2 h-[18px] w-[7px] -translate-x-1/2 -translate-y-1/2 rounded-[1px] border border-edge bg-accent"+ style={{ left: `${pct()}%` }}+ />+ <input+ class="theme-color-picker-slider absolute -left-[9px] top-1/2 m-0 h-[18px] w-[calc(100%_+_18px)] -translate-y-1/2 cursor-pointer appearance-none bg-transparent outline-none"+ type="range"+ min={props.min}+ max={props.max}+ step={props.step}+ value={props.value().toString()}+ onInput={(e) => props.onValue(parseFloat(e.currentTarget.value))}+ />+ </div>+ <div class="w-10 shrink-0 text-right font-mono text-xs text-ink-muted">{props.display()}</div>+ </div>+ );+}++/** Clickable swatch that opens a popover with L / C / H sliders and a hex field,+ * writing directly back into the reactive theme token. */+export function ColorPickerPopover(props: { colorKey: string; colorValue: ThemeReactiveColor }) {+ const l = () => props.colorValue.l[0]();+ const c = () => props.colorValue.c[0]();+ const h = () => props.colorValue.h[0]();+ const oklch = () => `oklch(${l()} ${c()} ${h()}deg)`;++ // Hex field keeps its own text state while typing so slider-driven updates+ // don't fight the user's keystrokes (same guard as ThemeEditorAdvanced).+ const [hexText, setHexText] = createSignal('');+ const [hexInvalid, setHexInvalid] = createSignal(false);+ const [isSetByInput, setIsSetByInput] = createSignal(false);++ createEffect(() => {+ const next = convertOklchTo(l(), c(), h(), 'hex');+ if (untrack(isSetByInput)) { setIsSetByInput(false); }+ else { setHexText(next); }+ });++ const setHex = (value: string) => {+ if (!value || value.trim().length < 6 || !validateColor(value)) {+ setHexInvalid(true);+ return;+ }+ try {+ const next = getOklch(value);+ batch(() => {+ setIsSetByInput(true);+ props.colorValue.l[1](next.l || 0);+ props.colorValue.c[1](next.c || 0);+ props.colorValue.h[1](next.h || 0);+ });+ setHexInvalid(false);+ } catch (error) {+ console.error(`Error processing color "${value}":`, error);+ setHexInvalid(true);+ }+ };++ return (+ <Popover placement="bottom-start" gutter={8}>+ <style>{`+ .theme-color-picker-slider { -webkit-appearance: none; }+ .theme-color-picker-slider::-webkit-slider-thumb { opacity: 0; }+ .theme-color-picker-slider::-moz-range-thumb { opacity: 0; }+ `}</style>++ <Popover.Trigger+ class="block w-full cursor-pointer appearance-none border-none bg-transparent p-0"+ aria-label={`Edit ${props.colorValue.description} (--${props.colorKey})`}+ >+ <ColorSwatch color={oklch()} width="100%" />+ </Popover.Trigger>++ <Popover.Portal>+ <Layer depth={3}>+ <Popover.Content class="z-modal">+ <Popover.Arrow class="fill-surface" />+ <div+ class="flex w-64 flex-col gap-3 rounded-md bg-surface p-3 shadow-lg ring-1 ring-edge"+ role="dialog"+ aria-label={`Edit color --${props.colorKey}`}+ >+ <div class="flex items-center gap-2">+ <div+ class="h-8 w-8 shrink-0 rounded border border-edge"+ style={{ 'background-color': oklch() }}+ />+ <div class="min-w-0">+ <div class="truncate text-xs text-ink">{props.colorValue.description}</div>+ <div class="font-mono text-[0.67rem] text-ink-extra-muted">--{props.colorKey}</div>+ </div>+ </div>++ <Slider+ label="L"+ min={0}+ max={1}+ step={0.01}+ value={l}+ onValue={(n) => props.colorValue.l[1](n)}+ gradient={() => `linear-gradient(to right, oklch(0 ${c()} ${h()}deg), oklch(1 ${c()} ${h()}deg))`}+ display={() => l().toFixed(2)}+ />+ <Slider+ label="C"+ min={0}+ max={CHROMA_MAX}+ step={0.005}+ value={c}+ onValue={(n) => props.colorValue.c[1](n)}+ gradient={() => `linear-gradient(to right, oklch(${l()} 0 ${h()}deg), oklch(${l()} ${CHROMA_MAX} ${h()}deg))`}+ display={() => c().toFixed(3)}+ />+ <Slider+ label="H"+ min={0}+ max={360}+ step={1}+ value={h}+ onValue={(n) => props.colorValue.h[1](n)}+ gradient={() =>+ `linear-gradient(to right, oklch(${l()} ${c()} 0deg), oklch(${l()} ${c()} 60deg), oklch(${l()} ${c()} 120deg), oklch(${l()} ${c()} 180deg), oklch(${l()} ${c()} 240deg), oklch(${l()} ${c()} 300deg), oklch(${l()} ${c()} 360deg))`+ }+ display={() => `${Math.round(h())}°`}+ />++ <input+ class={cn(+ 'rounded border border-edge-muted bg-transparent px-2 py-1 font-mono text-xs text-ink outline-none',+ hexInvalid() && 'text-accent'+ )}+ value={hexText()}+ onInput={(e) => setHex(e.currentTarget.value)}+ spellcheck={false}+ aria-label="Hex color"+ />+ </div>+ </Popover.Content>+ </Layer>+ </Popover.Portal>+ </Popover>+ );+}diff --git a/js/app/packages/theme/components/ThemeEditorAdvanced.tsx b/js/app/packages/theme/components/ThemeEditorAdvanced.tsxindex 758336cc45..a87438c51e 100644--- a/js/app/packages/theme/components/ThemeEditorAdvanced.tsx+++ b/js/app/packages/theme/components/ThemeEditorAdvanced.tsx@@ -2,7 +2,7 @@ import { batch, createEffect, createSignal, For, type Setter, untrack } from 'soimport { convertOklchTo, getOklch, validateColor } from '../utils/colorUtil';import type { ThemeReactiveColor } from '../types/themeTypes';import { themeReactive } from '../signals/themeReactive';-import { ColorSwatch } from './ColorSwatch';+import { ColorPickerPopover } from './ColorPickerPopover';const displayType = () => 'hex';@@ -100,10 +100,7 @@ export function ThemeEditorAdvanced(){width: 100%;">- <ColorSwatch- color={`oklch(${colorValue.l[0]()} ${colorValue.c[0]()} ${colorValue.h[0]()}deg)`}- width={'100%'}- />+ <ColorPickerPopover colorKey={colorKey} colorValue={colorValue} /></div><divdiff --git a/js/app/packages/theme/constants.ts b/js/app/packages/theme/constants.tsindex 7df94eac83..40f9723987 100644--- a/js/app/packages/theme/constants.ts+++ b/js/app/packages/theme/constants.ts@@ -3,7 +3,32 @@ import type { ThemeV2 } from './types/themeTypes';export const DEFAULT_LIGHT_THEME: DefaultTheme = 'Macro Light';export const DEFAULT_DARK_THEME: DefaultTheme = 'Macro Dark';+// Ordered for the theme picker: dark themes first (led by the Macro brand theme),+// then light themes (led by the Macro brand theme). ThemeList renders in array order.export const DEFAULT_THEMES = [+ {+ id: 'Macro Dark',+ name: 'Macro Dark',+ version: 2,+ depth: 0.15,+ tokens: {+ a0: { l: 0.75, c: 0.20, h: 59 },+ a1: { l: 0.75, c: 0.20, h: 99 },+ a2: { l: 0.75, c: 0.20, h: 139 },+ a3: { l: 0.75, c: 0.20, h: 179 },+ a4: { l: 0.75, c: 0.20, h: 219 },+ b0: { l: 0.14, c: 0.00, h: 59 },+ b1: { l: 0.20, c: 0.00, h: 59 },+ b2: { l: 0.23, c: 0.00, h: 59 },+ b3: { l: 0.25, c: 0.00, h: 59 },+ b4: { l: 0.28, c: 0.00, h: 59 },+ c0: { l: 0.95, c: 0.00, h: 59 },+ c1: { l: 0.83, c: 0.00, h: 59 },+ c2: { l: 0.75, c: 0.00, h: 59 },+ c3: { l: 0.63, c: 0.00, h: 59 },+ c4: { l: 0.55, c: 0.00, h: 59 },+ },+ },{id: "Void",name: "Void",@@ -50,144 +75,6 @@ export const DEFAULT_THEMES = [c4: { l: 0.55, c: 0.00, h: 21 },},},- {- id: 'Groove',- name: 'Groove',- version: 2,- depth: 0.08,- tokens: {- a0: { l: 0.85, c: 0.34, h: 46 },- a1: { l: 0.85, c: 0.34, h: 86 },- a2: { l: 0.85, c: 0.34, h: 126 },- a3: { l: 0.85, c: 0.34, h: 166 },- a4: { l: 0.85, c: 0.34, h: 206 },- b0: { l: 0.20, c: 0.00, h: 46 },- b1: { l: 0.23, c: 0.00, h: 46 },- b2: { l: 0.29, c: 0.00, h: 46 },- b3: { l: 0.32, c: 0.00, h: 46 },- b4: { l: 0.34, c: 0.00, h: 46 },- c0: { l: 0.80, c: 0.00, h: 46 },- c1: { l: 0.72, c: 0.00, h: 46 },- c2: { l: 0.64, c: 0.00, h: 46 },- c3: { l: 0.55, c: 0.00, h: 46 },- c4: { l: 0.52, c: 0.00, h: 46 },- },- },- {- id: 'Macro Light',- name: 'Macro Light',- version: 2,- depth: 0.09,- tokens: {- a0: { l: 0.65, c: 0.20, h: 59 },- a1: { l: 0.65, c: 0.20, h: 99 },- a2: { l: 0.65, c: 0.20, h: 139 },- a3: { l: 0.65, c: 0.20, h: 179 },- a4: { l: 0.65, c: 0.20, h: 219 },- b0: { l: 0.96, c: 0.00, h: 59 },- b1: { l: 0.92, c: 0.00, h: 59 },- b2: { l: 0.91, c: 0.00, h: 59 },- b3: { l: 0.92, c: 0.00, h: 59 },- b4: { l: 0.91, c: 0.00, h: 59 },- c0: { l: 0.14, c: 0.00, h: 59 },- c1: { l: 0.40, c: 0.00, h: 59 },- c2: { l: 0.55, c: 0.00, h: 59 },- c3: { l: 0.65, c: 0.00, h: 59 },- c4: { l: 0.75, c: 0.00, h: 59 },- },- },- {- id: 'Macro Dark',- name: 'Macro Dark',- version: 2,- depth: 0.15,- tokens: {- a0: { l: 0.75, c: 0.20, h: 59 },- a1: { l: 0.75, c: 0.20, h: 99 },- a2: { l: 0.75, c: 0.20, h: 139 },- a3: { l: 0.75, c: 0.20, h: 179 },- a4: { l: 0.75, c: 0.20, h: 219 },- b0: { l: 0.14, c: 0.00, h: 59 },- b1: { l: 0.20, c: 0.00, h: 59 },- b2: { l: 0.23, c: 0.00, h: 59 },- b3: { l: 0.25, c: 0.00, h: 59 },- b4: { l: 0.28, c: 0.00, h: 59 },- c0: { l: 0.95, c: 0.00, h: 59 },- c1: { l: 0.83, c: 0.00, h: 59 },- c2: { l: 0.75, c: 0.00, h: 59 },- c3: { l: 0.63, c: 0.00, h: 59 },- c4: { l: 0.55, c: 0.00, h: 59 },- },- },- {- id: 'Satsuma',- name: 'Satsuma',- version: 2,- depth: 0.06,- tokens: {- a0: { l: 0.67, c: 0.29, h: 82.13 },- a1: { l: 0.67, c: 0.29, h: 122.13 },- a2: { l: 0.67, c: 0.29, h: 162.13 },- a3: { l: 0.67, c: 0.29, h: 202.13 },- a4: { l: 0.67, c: 0.29, h: 242.13 },- b0: { l: 0.94, c: 0.02, h: 82.13 },- b1: { l: 0.92, c: 0.03, h: 82.13 },- b2: { l: 0.90, c: 0.02, h: 82.13 },- b3: { l: 0.90, c: 0.02, h: 82.13 },- b4: { l: 0.89, c: 0.02, h: 82.13 },- c0: { l: 0.25, c: 0.02, h: 82.13 },- c1: { l: 0.36, c: 0.02, h: 82.13 },- c2: { l: 0.47, c: 0.03, h: 82.13 },- c3: { l: 0.58, c: 0.04, h: 82.13 },- c4: { l: 0.69, c: 0.05, h: 82.13 },- },- },- {- id: 'Manilla',- name: 'Manilla',- version: 2,- depth: 0.122,- tokens: {- a0: { l: 0.86, c: 0.20, h: 93 },- a1: { l: 0.86, c: 0.20, h: 133 },- a2: { l: 0.86, c: 0.20, h: 173 },- a3: { l: 0.86, c: 0.20, h: 213 },- a4: { l: 0.86, c: 0.20, h: 253 },- b0: { l: 0.14, c: 0.00, h: 93 },- b1: { l: 0.16, c: 0.00, h: 93 },- b2: { l: 0.18, c: 0.00, h: 93 },- b3: { l: 0.20, c: 0.00, h: 93 },- b4: { l: 0.23, c: 0.00, h: 93 },- c0: { l: 0.95, c: 0.00, h: 93 },- c1: { l: 0.83, c: 0.00, h: 93 },- c2: { l: 0.75, c: 0.00, h: 93 },- c3: { l: 0.63, c: 0.00, h: 93 },- c4: { l: 0.55, c: 0.00, h: 93 },- },- },- {- id: 'Terminal',- name: 'Terminal',- version: 2,- depth: 0.1,- tokens: {- a0: { l: 0.67, c: 0.32, h: 166 },- a1: { l: 0.67, c: 0.32, h: 206 },- a2: { l: 0.67, c: 0.32, h: 246 },- a3: { l: 0.67, c: 0.32, h: 286 },- a4: { l: 0.67, c: 0.32, h: 326 },- b0: { l: 0.16, c: 0.00, h: 166 },- b1: { l: 0.20, c: 0.00, h: 166 },- b2: { l: 0.26, c: 0.00, h: 166 },- b3: { l: 0.29, c: 0.00, h: 166 },- b4: { l: 0.31, c: 0.00, h: 166 },- c0: { l: 0.95, c: 0.00, h: 166 },- c1: { l: 0.83, c: 0.00, h: 166 },- c2: { l: 0.75, c: 0.00, h: 166 },- c3: { l: 0.63, c: 0.00, h: 166 },- c4: { l: 0.55, c: 0.00, h: 166 },- },- },{id: 'Spirit',name: 'Spirit',@@ -211,29 +98,6 @@ export const DEFAULT_THEMES = [c4: { l: 0.55, c: 0.02, h: 259 },},},- {- id: 'Lapis',- name: 'Lapis',- version: 2,- depth: 0.03,- tokens: {- a0: { l: 0.60, c: 0.32, h: 243 },- a1: { l: 0.60, c: 0.32, h: 283 },- a2: { l: 0.60, c: 0.32, h: 323 },- a3: { l: 0.60, c: 0.32, h: 363 },- a4: { l: 0.60, c: 0.32, h: 403 },- b0: { l: 0.97, c: 0.01, h: 243 },- b1: { l: 0.94, c: 0.01, h: 243 },- b2: { l: 0.93, c: 0.01, h: 243 },- b3: { l: 0.94, c: 0.01, h: 243 },- b4: { l: 0.92, c: 0.01, h: 243 },- c0: { l: 0.10, c: 0.01, h: 243 },- c1: { l: 0.35, c: 0.01, h: 243 },- c2: { l: 0.48, c: 0.02, h: 243 },- c3: { l: 0.58, c: 0.02, h: 243 },- c4: { l: 0.70, c: 0.03, h: 243 },- },- },{id: 'Moon',name: 'Moon',@@ -280,6 +144,151 @@ export const DEFAULT_THEMES = [c4: { l: 0.65, c: 0.02, h: 318 },},},+ {+ id: 'Macro Light',+ name: 'Macro Light',+ version: 2,+ depth: 0.09,+ tokens: {+ a0: { l: 0.65, c: 0.20, h: 59 },+ a1: { l: 0.65, c: 0.20, h: 99 },+ a2: { l: 0.65, c: 0.20, h: 139 },+ a3: { l: 0.65, c: 0.20, h: 179 },+ a4: { l: 0.65, c: 0.20, h: 219 },+ b0: { l: 0.96, c: 0.00, h: 59 },+ b1: { l: 0.92, c: 0.00, h: 59 },+ b2: { l: 0.91, c: 0.00, h: 59 },+ b3: { l: 0.92, c: 0.00, h: 59 },+ b4: { l: 0.91, c: 0.00, h: 59 },+ c0: { l: 0.14, c: 0.00, h: 59 },+ c1: { l: 0.40, c: 0.00, h: 59 },+ c2: { l: 0.55, c: 0.00, h: 59 },+ c3: { l: 0.65, c: 0.00, h: 59 },+ c4: { l: 0.75, c: 0.00, h: 59 },+ },+ },+ {+ id: 'Satsuma',+ name: 'Satsuma',+ version: 2,+ depth: 0.062,+ tokens: {+ a0: { l: 0.67, c: 0.256, h: 82.13 },+ a1: { l: 0.67, c: 0.256, h: 122.13 },+ a2: { l: 0.67, c: 0.256, h: 162.13 },+ a3: { l: 0.67, c: 0.256, h: 202.13 },+ a4: { l: 0.67, c: 0.256, h: 242.13 },+ // Surfaces: near-neutral with a subtle hue drift across the ramp+ b0: { l: 0.94, c: 0.006, h: 82.13 },+ b1: { l: 0.92, c: 0.006, h: 34 },+ b2: { l: 0.90, c: 0.006, h: 60 },+ b3: { l: 0.90, c: 0.006, h: 47 },+ b4: { l: 0.89, c: 0.006, h: 56 },+ c0: { l: 0.25, c: 0.006, h: 82.13 },+ c1: { l: 0.36, c: 0.006, h: 82.13 },+ c2: { l: 0.47, c: 0.006, h: 82.13 },+ c3: { l: 0.58, c: 0.006, h: 82.13 },+ c4: { l: 0.69, c: 0.006, h: 82.13 },+ },+ },+ {+ id: 'Lapis',+ name: 'Lapis',+ version: 2,+ depth: 0.03,+ tokens: {+ a0: { l: 0.60, c: 0.32, h: 243 },+ a1: { l: 0.60, c: 0.32, h: 283 },+ a2: { l: 0.60, c: 0.32, h: 323 },+ a3: { l: 0.60, c: 0.32, h: 363 },+ a4: { l: 0.60, c: 0.32, h: 403 },+ b0: { l: 0.97, c: 0.01, h: 243 },+ b1: { l: 0.94, c: 0.01, h: 243 },+ b2: { l: 0.93, c: 0.01, h: 243 },+ b3: { l: 0.94, c: 0.01, h: 243 },+ b4: { l: 0.92, c: 0.01, h: 243 },+ c0: { l: 0.10, c: 0.01, h: 243 },+ c1: { l: 0.35, c: 0.01, h: 243 },+ c2: { l: 0.48, c: 0.02, h: 243 },+ c3: { l: 0.58, c: 0.02, h: 243 },+ c4: { l: 0.70, c: 0.03, h: 243 },+ },+ },+ {+ id: 'Flora',+ name: 'Flora',+ version: 2,+ depth: 0.06,+ tokens: {+ a0: { l: 0.50, c: 0.15, h: 152 },+ a1: { l: 0.60, c: 0.19, h: 190 },+ a2: { l: 0.60, c: 0.19, h: 230 },+ a3: { l: 0.60, c: 0.19, h: 270 },+ a4: { l: 0.60, c: 0.19, h: 310 },+ b0: { l: 0.98, c: 0.012, h: 292 },+ b1: { l: 0.96, c: 0.015, h: 292 },+ b2: { l: 0.93, c: 0.018, h: 303 },+ b3: { l: 0.88, c: 0.04, h: 165 },+ b4: { l: 0.82, c: 0.05, h: 180 },+ c0: { l: 0.21, c: 0.06, h: 150 },+ c1: { l: 0.39, c: 0.05, h: 160 },+ c2: { l: 0.51, c: 0.04, h: 170 },+ c3: { l: 0.62, c: 0.03, h: 180 },+ c4: { l: 0.72, c: 0.02, h: 190 },+ },+ },+ {+ id: 'Paper',+ name: 'Paper',+ version: 2,+ depth: 0.05,+ tokens: {+ // Accent: soft blue primary, then a colorful categorical set (violet → magenta → red → amber)+ a0: { l: 0.64, c: 0.13, h: 250 },+ a1: { l: 0.58, c: 0.18, h: 290 },+ a2: { l: 0.58, c: 0.18, h: 330 },+ a3: { l: 0.58, c: 0.18, h: 10 },+ a4: { l: 0.58, c: 0.18, h: 50 },+ // Surfaces: near-neutral, warm paper highlight cooling to grey-blue edges, widening lightness+ b0: { l: 0.98, c: 0.004, h: 80 },+ b1: { l: 0.96, c: 0.005, h: 80 },+ b2: { l: 0.93, c: 0.006, h: 230 },+ b3: { l: 0.87, c: 0.008, h: 250 },+ b4: { l: 0.80, c: 0.010, h: 260 },+ // Text: near-black with a faint cool cast, warming slightly as it mutes+ c0: { l: 0.18, c: 0.006, h: 260 },+ c1: { l: 0.38, c: 0.006, h: 255 },+ c2: { l: 0.50, c: 0.005, h: 250 },+ c3: { l: 0.62, c: 0.005, h: 245 },+ c4: { l: 0.72, c: 0.004, h: 240 },+ },+ },+ {+ id: 'Decepticon',+ name: 'Decepticon',+ version: 2,+ depth: 0.08,+ tokens: {+ // Accent: bold purple primary, then a vivid wide-hue categorical set+ a0: { l: 0.48, c: 0.359, h: 289 },+ a1: { l: 0.708, c: 0.359, h: 379.44 },+ a2: { l: 0.708, c: 0.359, h: 419.44 },+ a3: { l: 0.708, c: 0.359, h: 459.44 },+ a4: { l: 0.708, c: 0.359, h: 499.44 },+ // Surfaces: light, multi-hued tints over a desaturated base+ b0: { l: 0.913, c: 0.00, h: 123 },+ b1: { l: 0.875, c: 0.02, h: 215 },+ b2: { l: 0.813, c: 0.045, h: 157 },+ b3: { l: 0.86, c: 0.00, h: 339.44 },+ b4: { l: 0.83, c: 0.00, h: 339.44 },+ // Text: near-black, neutral+ c0: { l: 0.087, c: 0.00, h: 339.44 },+ c1: { l: 0.125, c: 0.00, h: 339.44 },+ c2: { l: 0.173, c: 0.00, h: 339.44 },+ c3: { l: 0.234, c: 0.00, h: 339.44 },+ c4: { l: 0.306, c: 0.00, h: 339.44 },+ },+ },] as const satisfies ReadonlyArray<ThemeV2>;type DefaultTheme = (typeof DEFAULT_THEMES)[number]['id'];