Open History to see the last commit
1export const BUILT_IN_THEME_IDS = ["t3-chat", "grove", "ocean", "ember", "iris"] as const;
2
3/** The standard T3 Code palette, kept separate from the optional built-in theme library. */
4export const MOBILE_DEFAULT_THEME_ID = "t3-code";
5
6/**
7 * Every palette the mobile app can render. Declared here so host-side tooling
8 * (the app-store screenshot harness) can validate a requested theme without
9 * importing React Native application code.
10 */
11export const MOBILE_THEME_IDS = [MOBILE_DEFAULT_THEME_ID, ...BUILT_IN_THEME_IDS] as const;
12
13/**
14 * Ids a theme may not take: the appearance keywords a stored preference uses,
15 * every built-in, and the legacy aliases older saves still carry. Taking one
16 * would either be shadowed by the built-in or capture clients that never chose
17 * it, so the client library and the publish path both consult this set.
18 */
19export const RESERVED_THEME_IDS: ReadonlySet<string> = new Set([
20 "system",
21 "light",
22 "dark",
23 ...BUILT_IN_THEME_IDS,
24 "t3-chat-dark",
25 "t3-grove",
26 "t3-ocean",
27 "t3-ember",
28 "t3-iris",
29]);
30
31/**
32 * Additionally closed to a machine publishing a theme: the mobile default is
33 * not a web or desktop built-in, so a saved theme may legitimately carry that
34 * id, but no client that follows published themes can resolve it -- publishing
35 * it would report success and change nothing.
36 */
37export const UNPUBLISHABLE_THEME_IDS: ReadonlySet<string> = new Set([
38 ...RESERVED_THEME_IDS,
39 MOBILE_DEFAULT_THEME_ID,
40]);
41
42export type BuiltInThemeId = (typeof BUILT_IN_THEME_IDS)[number];
43export type MobileThemeId = (typeof MOBILE_THEME_IDS)[number];
44export type ThemeAppearance = "light" | "dark";
45
46/** Product roles shared by web CSS, React Native tokens, and native surfaces. */
47export const THEME_COLOR_ROLES = [
48 "canvas",
49 "chrome",
50 "toolbar",
51 "toolbarForeground",
52 "toolbarBorder",
53 "toolbarControl",
54 "toolbarControlForeground",
55 "toolbarControlHover",
56 "surface",
57 "surfaceRaised",
58 "surfaceOverlay",
59 "text",
60 "textMuted",
61 "border",
62 "input",
63 "focus",
64 "accent",
65 "accentForeground",
66 "secondary",
67 "secondaryForeground",
68 "muted",
69 "mutedForeground",
70 "placeholder",
71 "secondaryLabel",
72 "iconMuted",
73 "error",
74 "errorForeground",
75 "errorSurface",
76 "warning",
77 "warningForeground",
78 "warningSurface",
79 "update",
80 "updateForeground",
81 "updateSurface",
82 "accentSurface",
83 "accentSurfaceForeground",
84 "messageSurface",
85 "messageForeground",
86 "messageAction",
87 "messageActionForeground",
88 "messageActionHover",
89 "codeBackground",
90 "codeForeground",
91 "sidebar",
92 "sidebarForeground",
93 "sidebarMutedForeground",
94 "sidebarControlSurface",
95 "sidebarRowHover",
96 "sidebarRowActive",
97 "sidebarRowSelected",
98 "sidebarBorder",
99 "terminalBackground",
100 "terminalForeground",
101 "terminalCursor",
102 "terminalSelection",
103 "terminalScrollbar",
104 "terminalScrollbarHover",
105] as const;
106
107export type ThemeColorRole = (typeof THEME_COLOR_ROLES)[number];
108export type ThemeColors = Readonly<Record<ThemeColorRole, string>>;
109export type ThemeVariants = Readonly<Partial<Record<ThemeAppearance, ThemeColors>>>;
110export type ThemeDefinition = Readonly<{
111 id: string;
112 label: string;
113 appearance: ThemeAppearance;
114 colors: ThemeColors;
115 variants?: ThemeVariants;
116 /** Groups related imported variants into one library card. */
117 collection?: Readonly<{ id: string; label: string }>;
118 /** Allows reviewed built-ins to render product artwork over their sidebar. */
119 sidebarArtwork?: boolean;
120 /** Generated from the guided editor's canvas and accent roles. */
121 managed?: boolean;
122}>;
123
124/**
125 * The palette T3 Code wears with no theme installed, captured from the app's
126 * stock tokens (index.css) so a draft seeded from the default look paints the
127 * pixels the user is already seeing. Alpha-bearing tokens are flattened over
128 * their real backdrops (canvas, or the sidebar for its rows) because theme
129 * colors are stored as opaque OKLCH tokens.
130 */
131export const T3_CODE_LIGHT_THEME_COLORS: ThemeColors = {
132 canvas: "#fcfcfc",
133 chrome: "#fcfcfc",
134 toolbar: "#fcfcfc",
135 toolbarForeground: "#27272a",
136 toolbarBorder: "#e4e4e7",
137 toolbarControl: "#ffffff",
138 toolbarControlForeground: "#27272a",
139 toolbarControlHover: "#f4f4f5",
140 surface: "#ffffff",
141 surfaceRaised: "#fcfcfc",
142 surfaceOverlay: "#ffffff",
143 text: "#27272a",
144 textMuted: "#71717b",
145 border: "#e4e4e7",
146 input: "#d4d4d8",
147 focus: "#1b4ed8",
148 accent: "#1b4ed8",
149 accentForeground: "#ffffff",
150 secondary: "#fafafa",
151 secondaryForeground: "#27272a",
152 muted: "#fafafa",
153 mutedForeground: "#71717b",
154 placeholder: "#71717b",
155 secondaryLabel: "#71717b",
156 iconMuted: "#71717b",
157 error: "#fb2c36",
158 errorForeground: "#c10007",
159 errorSurface: "#fcebec",
160 warning: "#fe9a00",
161 warningForeground: "#bb4d00",
162 warningSurface: "#fcf4e8",
163 update: "#1b4ed8",
164 updateForeground: "#1b4ed8",
165 updateSurface: "#e0e6f7",
166 accentSurface: "#f4f4f5",
167 accentSurfaceForeground: "#18181b",
168 messageSurface: "#f4f4f5",
169 messageForeground: "#27272a",
170 messageAction: "#1b4ed8",
171 messageActionForeground: "#ffffff",
172 messageActionHover: "#3160db",
173 codeBackground: "#ffffff",
174 codeForeground: "#27272a",
175 sidebar: "#fafafa",
176 sidebarForeground: "#27272a",
177 sidebarMutedForeground: "#71717b",
178 sidebarControlSurface: "#f4f4f5",
179 sidebarRowHover: "#fcfcfc",
180 sidebarRowActive: "#ffffff",
181 sidebarRowSelected: "#ffffff",
182 sidebarBorder: "#e4e4e7",
183 terminalBackground: "#fcfcfc",
184 terminalForeground: "#27272a",
185 terminalCursor: "#26384e",
186 terminalSelection: "#d0d6dd",
187 terminalScrollbar: "#d6d6d6",
188 terminalScrollbarHover: "#bdbdbd",
189};
190
191export const T3_CODE_DARK_THEME_COLORS: ThemeColors = {
192 canvas: "#0a0a0a",
193 chrome: "#0a0a0a",
194 toolbar: "#0a0a0a",
195 toolbarForeground: "#f5f5f5",
196 toolbarBorder: "#191919",
197 toolbarControl: "#111111",
198 toolbarControlForeground: "#f5f5f5",
199 toolbarControlHover: "#141414",
200 surface: "#111111",
201 surfaceRaised: "#111111",
202 surfaceOverlay: "#111111",
203 text: "#f5f5f5",
204 textMuted: "#818181",
205 border: "#191919",
206 input: "#1e1e1e",
207 focus: "#346bf1",
208 accent: "#346bf1",
209 accentForeground: "#ffffff",
210 secondary: "#111111",
211 secondaryForeground: "#f5f5f5",
212 muted: "#111111",
213 mutedForeground: "#818181",
214 placeholder: "#818181",
215 secondaryLabel: "#818181",
216 iconMuted: "#818181",
217 error: "#fb414a",
218 errorForeground: "#ff6467",
219 errorSurface: "#301214",
220 warning: "#fe9a00",
221 warningForeground: "#ffb900",
222 warningSurface: "#312108",
223 update: "#346bf1",
224 updateForeground: "#51a2ff",
225 updateSurface: "#121b34",
226 accentSurface: "#141414",
227 accentSurfaceForeground: "#f5f5f5",
228 messageSurface: "#141414",
229 messageForeground: "#f5f5f5",
230 messageAction: "#346bf1",
231 messageActionForeground: "#ffffff",
232 messageActionHover: "#3061d9",
233 codeBackground: "#111111",
234 codeForeground: "#f5f5f5",
235 sidebar: "#000000",
236 sidebarForeground: "#f1f3f7",
237 sidebarMutedForeground: "#a3a3a3",
238 sidebarControlSurface: "#0a0a0a",
239 sidebarRowHover: "#131313",
240 sidebarRowActive: "#1a1b1b",
241 sidebarRowSelected: "#111111",
242 sidebarBorder: "#141414",
243 terminalBackground: "#0a0a0a",
244 terminalForeground: "#f5f5f5",
245 terminalCursor: "#b4cbff",
246 terminalSelection: "#343a47",
247 terminalScrollbar: "#222222",
248 terminalScrollbarHover: "#363636",
249};
250
251export const T3_CHAT_THEME: ThemeDefinition = {
252 id: "t3-chat",
253 label: "T3 Chat",
254 appearance: "light",
255 colors: {
256 canvas: "oklch(0.982446 0.010114 325.653)",
257 chrome: "oklch(0.982446 0.010114 325.653)",
258 toolbar: "oklch(0.982446 0.010114 325.653)",
259 toolbarForeground: "oklch(0.325698 0.116116 325.037)",
260 toolbarBorder: "oklch(0.856784 0.082879 328.911)",
261 toolbarControl: "oklch(0.939552 0.024286 321.664)",
262 toolbarControlForeground: "oklch(0.325698 0.116116 325.037)",
263 toolbarControlHover: "oklch(0.884525 0.041658 337.177)",
264 surface: "oklch(0.971835 0.012884 321.894)",
265 surfaceRaised: "oklch(0.988235 0.005049 325.615)",
266 surfaceOverlay: "oklch(1 0 0)",
267 text: "oklch(0.325698 0.116116 325.037)",
268 textMuted: "oklch(0.494754 0.190937 354.544)",
269 border: "oklch(0.923531 0.021247 328.096)",
270 input: "oklch(0.851713 0.055822 336.6)",
271 focus: "oklch(0.591646 0.217985 0.584)",
272 accent: "oklch(0.591646 0.217985 0.584)",
273 accentForeground: "oklch(1 0 0)",
274 secondary: "oklch(0.869588 0.06751 334.899)",
275 secondaryForeground: "oklch(0.444777 0.134061 324.799)",
276 muted: "oklch(0.802407 0.090963 345.892)",
277 mutedForeground: "oklch(0.428932 0.163929 354.332)",
278 placeholder: "oklch(0.549927 0.090215 323.149)",
279 secondaryLabel: "oklch(0.494754 0.190937 354.544)",
280 iconMuted: "oklch(0.494754 0.190937 354.544)",
281 error: "oklch(0.627117 0.248974 7.734)",
282 errorForeground: "oklch(0.458704 0.169677 3.815)",
283 errorSurface: "oklch(0.942787 0.032076 344.963)",
284 warning: "oklch(0.76859 0.164659 70.08)",
285 warningForeground: "oklch(0.54612 0.143036 48.949)",
286 warningSurface: "oklch(0.962901 0.015297 48.56)",
287 update: "oklch(0.591646 0.217985 0.584)",
288 updateForeground: "oklch(0.494754 0.190937 354.544)",
289 updateSurface: "oklch(0.930264 0.036194 341.45)",
290 accentSurface: "oklch(0.939552 0.024286 321.664)",
291 accentSurfaceForeground: "oklch(0.396296 0.025134 285.196)",
292 messageSurface: "oklch(0.926746 0.037898 332.6)",
293 messageForeground: "oklch(0.354591 0.093575 307.568)",
294 messageAction: "oklch(0.591646 0.217985 0.584)",
295 messageActionForeground: "oklch(1 0 0)",
296 messageActionHover: "oklch(0.539042 0.197866 0.305)",
297 codeBackground: "oklch(0.953855 0.019695 315.668)",
298 codeForeground: "oklch(0.445128 0.13005 307.026)",
299 sidebar: "oklch(0.928886 0.031178 322.592)",
300 sidebarForeground: "oklch(0.396296 0.025134 285.196)",
301 sidebarMutedForeground: "oklch(0.494754 0.190937 354.544)",
302 sidebarControlSurface: "oklch(0.978851 0.001321 106.424)",
303 sidebarRowHover: "oklch(0.978851 0.001321 106.424)",
304 sidebarRowActive: "oklch(0.978851 0.001321 106.424)",
305 sidebarRowSelected: "oklch(0.978851 0.001321 106.424)",
306 sidebarBorder: "oklch(0.938313 0.002552 48.717)",
307 terminalBackground: "oklch(0.982446 0.010114 325.653)",
308 terminalForeground: "oklch(0.325698 0.116116 325.037)",
309 terminalCursor: "oklch(0.591646 0.217985 0.584)",
310 terminalSelection: "oklch(0.869588 0.06751 334.899)",
311 terminalScrollbar: "oklch(0.851713 0.055822 336.6)",
312 terminalScrollbarHover: "oklch(0.802407 0.090963 345.892)",
313 },
314 variants: {
315 dark: {
316 canvas: "oklch(0.22813 0.020366 307.469)",
317 chrome: "oklch(0.22813 0.020366 307.469)",
318 toolbar: "oklch(0.22813 0.020366 307.469)",
319 toolbarForeground: "oklch(0.980735 0.004092 301.426)",
320 toolbarBorder: "oklch(0.266943 0.015262 302.425)",
321 toolbarControl: "oklch(0.313674 0.030572 310.061)",
322 toolbarControlForeground: "oklch(0.848252 0.038248 307.961)",
323 toolbarControlHover: "oklch(0.364912 0.050794 308.491)",
324 surface: "oklch(0.267101 0.02016 311.799)",
325 surfaceRaised: "oklch(0.279864 0.021572 309.532)",
326 surfaceOverlay: "oklch(0.154761 0.01316 338.901)",
327 text: "oklch(0.980735 0.004092 301.426)",
328 textMuted: "oklch(0.880303 0.03077 342.696)",
329 border: "oklch(0.266943 0.015262 302.425)",
330 input: "oklch(0.266817 0.02897 344.461)",
331 focus: "oklch(0.591646 0.217985 0.584)",
332 accent: "oklch(0.460685 0.185347 4.099)",
333 accentForeground: "oklch(0.901233 0.057189 343.694)",
334 secondary: "oklch(0.313674 0.030572 310.061)",
335 secondaryForeground: "oklch(0.848252 0.038248 307.961)",
336 muted: "oklch(0.360924 0.021469 316.83)",
337 mutedForeground: "oklch(0.880303 0.03077 342.696)",
338 placeholder: "oklch(0.657087 0.028226 307.985)",
339 secondaryLabel: "oklch(0.880303 0.03077 342.696)",
340 iconMuted: "oklch(0.848252 0.038248 307.961)",
341 error: "oklch(0.458704 0.169677 3.815)",
342 errorForeground: "oklch(0.901233 0.057189 343.694)",
343 errorSurface: "oklch(0.259022 0.04799 340.062)",
344 warning: "oklch(0.76859 0.164659 70.08)",
345 warningForeground: "oklch(0.836861 0.164422 84.429)",
346 warningSurface: "oklch(0.321706 0.036256 60.806)",
347 update: "oklch(0.460685 0.185347 4.099)",
348 updateForeground: "oklch(0.901233 0.057189 343.694)",
349 updateSurface: "oklch(0.256077 0.063004 342.914)",
350 accentSurface: "oklch(0.364912 0.050794 308.491)",
351 accentSurfaceForeground: "oklch(0.964695 0.009139 341.803)",
352 messageSurface: "oklch(0.273791 0.025541 309.079)",
353 messageForeground: "oklch(0.949872 0.021269 306.838)",
354 messageAction: "oklch(0.460685 0.185347 4.099)",
355 messageActionForeground: "oklch(0.901233 0.057189 343.694)",
356 messageActionHover: "oklch(0.458754 0.184639 3.857)",
357 codeBackground: "oklch(0.22813 0.020366 307.469)",
358 codeForeground: "oklch(0.848703 0.064239 306.645)",
359 sidebar: "oklch(0.185778 0.019368 322.159)",
360 sidebarForeground: "oklch(0.967434 0.001326 286.375)",
361 sidebarMutedForeground: "oklch(0.880303 0.03077 342.696)",
362 sidebarControlSurface: "oklch(0.23366 0.026081 338.196)",
363 sidebarRowHover: "oklch(0.23366 0.026081 338.196)",
364 sidebarRowActive: "oklch(0.23366 0.026081 338.196)",
365 sidebarRowSelected: "oklch(0.23366 0.026081 338.196)",
366 sidebarBorder: "oklch(0.269132 0.030766 351.067)",
367 terminalBackground: "oklch(0.22813 0.020366 307.469)",
368 terminalForeground: "oklch(0.980735 0.004092 301.426)",
369 terminalCursor: "oklch(0.591646 0.217985 0.584)",
370 terminalSelection: "oklch(0.313674 0.030572 310.061)",
371 terminalScrollbar: "oklch(0.266817 0.02897 344.461)",
372 terminalScrollbarHover: "oklch(0.360924 0.021469 316.83)",
373 },
374 },
375 sidebarArtwork: true,
376};
377
378export const GROVE_THEME: ThemeDefinition = {
379 id: "grove",
380 label: "Grove",
381 appearance: "light",
382 colors: {
383 canvas: "oklch(0.972369 0.005497 157.15)",
384 chrome: "oklch(0.972369 0.005497 157.15)",
385 toolbar: "oklch(0.972369 0.005497 157.15)",
386 toolbarForeground: "oklch(0.222003 0.03479 328.979)",
387 toolbarBorder: "oklch(0.909438 0.021521 164.612)",
388 toolbarControl: "oklch(0.936464 0.014601 163.554)",
389 toolbarControlForeground: "oklch(0.222003 0.03479 328.979)",
390 toolbarControlHover: "oklch(0.909438 0.021521 164.612)",
391 surface: "oklch(0.972369 0.005497 157.15)",
392 surfaceRaised: "oklch(0.949276 0.004496 159.002)",
393 surfaceOverlay: "oklch(0.932695 0.003778 160.944)",
394 text: "oklch(0.222003 0.03479 328.979)",
395 textMuted: "oklch(0.540472 0.014944 326.176)",
396 border: "oklch(0.864831 0.01312 167.255)",
397 input: "oklch(0.829746 0.016084 168.234)",
398 focus: "oklch(0.523295 0.112292 158.089)",
399 accent: "oklch(0.523295 0.112292 158.089)",
400 accentForeground: "oklch(0.990339 0.008411 325.64)",
401 secondary: "oklch(0.936464 0.014601 163.554)",
402 secondaryForeground: "oklch(0.222003 0.03479 328.979)",
403 muted: "oklch(0.945455 0.012308 162.879)",
404 mutedForeground: "oklch(0.527266 0.012309 320.683)",
405 placeholder: "oklch(0.529681 0.01551 326.299)",
406 secondaryLabel: "oklch(0.540472 0.014944 326.176)",
407 iconMuted: "oklch(0.540472 0.014944 326.176)",
408 error: "oklch(0.637823 0.237287 25.436)",
409 errorForeground: "oklch(0.509494 0.208583 28.513)",
410 errorSurface: "oklch(0.936968 0.014243 26.295)",
411 warning: "oklch(0.772406 0.172798 65.367)",
412 warningForeground: "oklch(0.545036 0.155019 45.359)",
413 warningSurface: "oklch(0.953175 0.02009 93.379)",
414 update: "oklch(0.523295 0.112292 158.089)",
415 updateForeground: "oklch(0.388012 0.080082 158.768)",
416 updateSurface: "oklch(0.900411 0.02384 164.795)",
417 accentSurface: "oklch(0.909438 0.021521 164.612)",
418 accentSurfaceForeground: "oklch(0.222003 0.03479 328.979)",
419 messageSurface: "oklch(0.891377 0.026164 164.929)",
420 messageForeground: "oklch(0.222003 0.03479 328.979)",
421 messageAction: "oklch(0.535028 0.106403 77.549)",
422 messageActionForeground: "oklch(0.990339 0.008411 325.64)",
423 messageActionHover: "oklch(0.488753 0.096536 77.829)",
424 codeBackground: "oklch(0.955888 0.004783 158.391)",
425 codeForeground: "oklch(0.222003 0.03479 328.979)",
426 sidebar: "oklch(0.936464 0.014601 163.554)",
427 sidebarForeground: "oklch(0.222003 0.03479 328.979)",
428 sidebarMutedForeground: "oklch(0.515606 0.011938 318.897)",
429 sidebarControlSurface: "oklch(0.88585 0.011734 166.331)",
430 sidebarRowHover: "oklch(0.886676 0.027374 164.983)",
431 sidebarRowActive: "oklch(0.85335 0.03597 165.158)",
432 sidebarRowSelected: "oklch(0.836654 0.040284 165.149)",
433 sidebarBorder: "oklch(0.860274 0.010287 168.339)",
434 terminalBackground: "oklch(0.972369 0.005497 157.15)",
435 terminalForeground: "oklch(0.222003 0.03479 328.979)",
436 terminalCursor: "oklch(0.523295 0.112292 158.089)",
437 terminalSelection: "oklch(0.891377 0.026164 164.929)",
438 terminalScrollbar: "oklch(0.824752 0.001392 294.641)",
439 terminalScrollbarHover: "oklch(0.755495 0.004415 318.776)",
440 },
441 variants: {
442 dark: {
443 canvas: "oklch(0.260865 0.02152 162.75)",
444 chrome: "oklch(0.260865 0.02152 162.75)",
445 toolbar: "oklch(0.260865 0.02152 162.75)",
446 toolbarForeground: "oklch(0.990339 0.008411 325.64)",
447 toolbarBorder: "oklch(0.464636 0.066083 158.72)",
448 toolbarControl: "oklch(0.380487 0.048313 159.608)",
449 toolbarControlForeground: "oklch(0.990339 0.008411 325.64)",
450 toolbarControlHover: "oklch(0.437021 0.060312 158.962)",
451 surface: "oklch(0.260865 0.02152 162.75)",
452 surfaceRaised: "oklch(0.363192 0.016572 165.32)",
453 surfaceOverlay: "oklch(0.411828 0.014378 166.627)",
454 text: "oklch(0.990339 0.008411 325.64)",
455 textMuted: "oklch(0.666747 0.004239 187.292)",
456 border: "oklch(0.457475 0.044046 160.971)",
457 input: "oklch(0.519849 0.049896 160.863)",
458 focus: "oklch(0.796228 0.133058 157.319)",
459 accent: "oklch(0.796228 0.133058 157.319)",
460 accentForeground: "oklch(0.222003 0.03479 328.979)",
461 secondary: "oklch(0.380487 0.048313 159.608)",
462 secondaryForeground: "oklch(0.990339 0.008411 325.64)",
463 muted: "oklch(0.339728 0.039456 160.274)",
464 mutedForeground: "oklch(0.715427 0.010896 171.428)",
465 placeholder: "oklch(0.739243 0.002222 223.225)",
466 secondaryLabel: "oklch(0.666747 0.004239 187.292)",
467 iconMuted: "oklch(0.666747 0.004239 187.292)",
468 error: "oklch(0.655108 0.221148 23.473)",
469 errorForeground: "oklch(0.704237 0.187511 22.228)",
470 errorSurface: "oklch(0.312773 0.02923 32.121)",
471 warning: "oklch(0.772406 0.172798 65.367)",
472 warningForeground: "oklch(0.829017 0.171221 81.038)",
473 warningSurface: "oklch(0.345524 0.046882 99.736)",
474 update: "oklch(0.796228 0.133058 157.319)",
475 updateForeground: "oklch(0.86276 0.089288 159.704)",
476 updateSurface: "oklch(0.448116 0.062637 158.86)",
477 accentSurface: "oklch(0.437021 0.060312 158.962)",
478 accentSurfaceForeground: "oklch(0.990339 0.008411 325.64)",
479 messageSurface: "oklch(0.470111 0.067221 158.676)",
480 messageForeground: "oklch(0.990339 0.008411 325.64)",
481 messageAction: "oklch(0.791603 0.129713 83.299)",
482 messageActionForeground: "oklch(0.222003 0.03479 328.979)",
483 messageActionHover: "oklch(0.815227 0.117902 84.21)",
484 codeBackground: "oklch(0.312979 0.018942 164.082)",
485 codeForeground: "oklch(0.990339 0.008411 325.64)",
486 sidebar: "oklch(0.309925 0.032827 160.944)",
487 sidebarForeground: "oklch(0.990339 0.008411 325.64)",
488 sidebarMutedForeground: "oklch(0.711387 0.007643 175.89)",
489 sidebarControlSurface: "oklch(0.432727 0.024549 163.654)",
490 sidebarRowHover: "oklch(0.374959 0.047124 159.686)",
491 sidebarRowActive: "oklch(0.41688 0.056069 159.165)",
492 sidebarRowSelected: "oklch(0.437466 0.060406 158.958)",
493 sidebarBorder: "oklch(0.569253 0.015933 167.062)",
494 terminalBackground: "oklch(0.260865 0.02152 162.75)",
495 terminalForeground: "oklch(0.990339 0.008411 325.64)",
496 terminalCursor: "oklch(0.796228 0.133058 157.319)",
497 terminalSelection: "oklch(0.464636 0.066083 158.72)",
498 terminalScrollbar: "oklch(0.594692 0.006862 176.022)",
499 terminalScrollbarHover: "oklch(0.687968 0.00354 193.55)",
500 },
501 },
502 sidebarArtwork: true,
503};
504
505export const OCEAN_THEME: ThemeDefinition = {
506 id: "ocean",
507 label: "Ocean",
508 appearance: "light",
509 colors: {
510 canvas: "oklch(0.974199 0.002856 241.597)",
511 chrome: "oklch(0.974199 0.002856 241.597)",
512 toolbar: "oklch(0.974199 0.002856 241.597)",
513 toolbarForeground: "oklch(0.222003 0.03479 328.979)",
514 toolbarBorder: "oklch(0.91295 0.018827 241.836)",
515 toolbarControl: "oklch(0.939254 0.01193 241.729)",
516 toolbarControlForeground: "oklch(0.222003 0.03479 328.979)",
517 toolbarControlHover: "oklch(0.91295 0.018827 241.836)",
518 surface: "oklch(0.974199 0.002856 241.597)",
519 surfaceRaised: "oklch(0.951058 0.002962 258.339)",
520 surfaceOverlay: "oklch(0.934442 0.003181 269.1)",
521 text: "oklch(0.222003 0.03479 328.979)",
522 textMuted: "oklch(0.541555 0.017468 323.531)",
523 border: "oklch(0.867646 0.013482 252.362)",
524 input: "oklch(0.832939 0.017389 252.598)",
525 focus: "oklch(0.536684 0.120219 247.01)",
526 accent: "oklch(0.536684 0.120219 247.01)",
527 accentForeground: "oklch(0.990339 0.008411 325.64)",
528 secondary: "oklch(0.939254 0.01193 241.729)",
529 secondaryForeground: "oklch(0.222003 0.03479 328.979)",
530 muted: "oklch(0.948004 0.009649 241.695)",
531 mutedForeground: "oklch(0.528741 0.01828 313.823)",
532 placeholder: "oklch(0.530733 0.01795 323.79)",
533 secondaryLabel: "oklch(0.541555 0.017468 323.531)",
534 iconMuted: "oklch(0.541555 0.017468 323.531)",
535 error: "oklch(0.637823 0.237287 25.436)",
536 errorForeground: "oklch(0.509494 0.208583 28.513)",
537 errorSurface: "oklch(0.938747 0.016377 7.186)",
538 warning: "oklch(0.772406 0.172798 65.367)",
539 warningForeground: "oklch(0.546927 0.155556 45.359)",
540 warningSurface: "oklch(0.954846 0.016009 81.731)",
541 update: "oklch(0.536684 0.120219 247.01)",
542 updateForeground: "oklch(0.397497 0.084999 246.523)",
543 updateSurface: "oklch(0.904165 0.021144 241.874)",
544 accentSurface: "oklch(0.91295 0.018827 241.836)",
545 accentSurfaceForeground: "oklch(0.222003 0.03479 328.979)",
546 messageSurface: "oklch(0.895373 0.023469 241.913)",
547 messageForeground: "oklch(0.222003 0.03479 328.979)",
548 messageAction: "oklch(0.493961 0.08175 201.584)",
549 messageActionForeground: "oklch(0.990339 0.008411 325.64)",
550 messageActionHover: "oklch(0.45151 0.074407 201.516)",
551 codeBackground: "oklch(0.957684 0.002906 253.68)",
552 codeForeground: "oklch(0.222003 0.03479 328.979)",
553 sidebar: "oklch(0.939254 0.01193 241.729)",
554 sidebarForeground: "oklch(0.222003 0.03479 328.979)",
555 sidebarMutedForeground: "oklch(0.517366 0.018944 311.433)",
556 sidebarControlSurface: "oklch(0.888479 0.011475 251.638)",
557 sidebarRowHover: "oklch(0.890798 0.024681 241.933)",
558 sidebarRowActive: "oklch(0.858363 0.033325 242.089)",
559 sidebarRowSelected: "oklch(0.842113 0.037689 242.174)",
560 sidebarBorder: "oklch(0.862823 0.011384 256.926)",
561 terminalBackground: "oklch(0.974199 0.002856 241.597)",
562 terminalForeground: "oklch(0.222003 0.03479 328.979)",
563 terminalCursor: "oklch(0.536684 0.120219 247.01)",
564 terminalSelection: "oklch(0.895373 0.023469 241.913)",
565 terminalScrollbar: "oklch(0.826271 0.006191 305.456)",
566 terminalScrollbarHover: "oklch(0.756866 0.008685 313.721)",
567 },
568 variants: {
569 dark: {
570 canvas: "oklch(0.242641 0.024125 250.573)",
571 chrome: "oklch(0.242641 0.024125 250.573)",
572 toolbar: "oklch(0.242641 0.024125 250.573)",
573 toolbarForeground: "oklch(0.990339 0.008411 325.64)",
574 toolbarBorder: "oklch(0.439946 0.0561 243.479)",
575 toolbarControl: "oklch(0.358725 0.043145 244.911)",
576 toolbarControlForeground: "oklch(0.990339 0.008411 325.64)",
577 toolbarControlHover: "oklch(0.413315 0.051874 243.855)",
578 surface: "oklch(0.242641 0.024125 250.573)",
579 surfaceRaised: "oklch(0.348439 0.019942 253.696)",
580 surfaceOverlay: "oklch(0.398517 0.018232 255.72)",
581 text: "oklch(0.990339 0.008411 325.64)",
582 textMuted: "oklch(0.652227 0.01149 273.31)",
583 border: "oklch(0.438653 0.039496 245.44)",
584 input: "oklch(0.500905 0.043574 244.781)",
585 focus: "oklch(0.758933 0.105833 241.548)",
586 accent: "oklch(0.758933 0.105833 241.548)",
587 accentForeground: "oklch(0.222003 0.03479 328.979)",
588 secondary: "oklch(0.358725 0.043145 244.911)",
589 secondaryForeground: "oklch(0.990339 0.008411 325.64)",
590 muted: "oklch(0.319287 0.036766 246.065)",
591 mutedForeground: "oklch(0.691936 0.016294 261.588)",
592 placeholder: "oklch(0.721641 0.010192 281.271)",
593 secondaryLabel: "oklch(0.652227 0.01149 273.31)",
594 iconMuted: "oklch(0.652227 0.01149 273.31)",
595 error: "oklch(0.655108 0.221148 23.473)",
596 errorForeground: "oklch(0.702184 0.189226 22.228)",
597 errorSurface: "oklch(0.298933 0.036443 350.094)",
598 warning: "oklch(0.772406 0.172798 65.367)",
599 warningForeground: "oklch(0.829017 0.171221 81.038)",
600 warningSurface: "oklch(0.329449 0.028712 84.495)",
601 update: "oklch(0.758933 0.105833 241.548)",
602 updateForeground: "oklch(0.840844 0.069217 240.151)",
603 updateSurface: "oklch(0.424017 0.053575 243.695)",
604 accentSurface: "oklch(0.413315 0.051874 243.855)",
605 accentSurfaceForeground: "oklch(0.990339 0.008411 325.64)",
606 messageSurface: "oklch(0.445224 0.056936 243.413)",
607 messageForeground: "oklch(0.990339 0.008411 325.64)",
608 messageAction: "oklch(0.793363 0.105022 199.893)",
609 messageActionForeground: "oklch(0.222003 0.03479 328.979)",
610 messageActionHover: "oklch(0.815308 0.096174 199.862)",
611 codeBackground: "oklch(0.29661 0.021883 251.968)",
612 codeForeground: "oklch(0.990339 0.008411 325.64)",
613 sidebar: "oklch(0.290387 0.032043 247.274)",
614 sidebarForeground: "oklch(0.990339 0.008411 325.64)",
615 sidebarMutedForeground: "oklch(0.69099 0.01395 266.424)",
616 sidebarControlSurface: "oklch(0.417822 0.02535 250.162)",
617 sidebarRowHover: "oklch(0.353381 0.042285 245.043)",
618 sidebarRowActive: "oklch(0.393878 0.048778 244.179)",
619 sidebarRowSelected: "oklch(0.413744 0.051943 243.848)",
620 sidebarBorder: "oklch(0.55859 0.019001 256.223)",
621 terminalBackground: "oklch(0.242641 0.024125 250.573)",
622 terminalForeground: "oklch(0.990339 0.008411 325.64)",
623 terminalCursor: "oklch(0.758933 0.105833 241.548)",
624 terminalSelection: "oklch(0.439946 0.0561 243.479)",
625 terminalScrollbar: "oklch(0.58613 0.012959 267.22)",
626 terminalScrollbarHover: "oklch(0.681569 0.010909 276.465)",
627 },
628 },
629 sidebarArtwork: true,
630};
631
632export const EMBER_THEME: ThemeDefinition = {
633 id: "ember",
634 label: "Ember",
635 appearance: "light",
636 colors: {
637 canvas: "oklch(0.976527 0.002685 60.725)",
638 chrome: "oklch(0.976527 0.002685 60.725)",
639 toolbar: "oklch(0.976527 0.002685 60.725)",
640 toolbarForeground: "oklch(0.222003 0.03479 328.979)",
641 toolbarBorder: "oklch(0.916502 0.01832 49.597)",
642 toolbarControl: "oklch(0.942267 0.01151 50.785)",
643 toolbarControlForeground: "oklch(0.222003 0.03479 328.979)",
644 toolbarControlHover: "oklch(0.916502 0.01832 49.597)",
645 surface: "oklch(0.976527 0.002685 60.725)",
646 surfaceRaised: "oklch(0.953321 0.002701 42.266)",
647 surfaceOverlay: "oklch(0.936659 0.002879 29.96)",
648 text: "oklch(0.222003 0.03479 328.979)",
649 textMuted: "oklch(0.543023 0.017316 331.964)",
650 border: "oklch(0.870631 0.013204 39.431)",
651 input: "oklch(0.836213 0.017153 38.661)",
652 focus: "oklch(0.552831 0.129438 44.656)",
653 accent: "oklch(0.552831 0.129438 44.656)",
654 accentForeground: "oklch(0.990339 0.008411 325.64)",
655 secondary: "oklch(0.942267 0.01151 50.785)",
656 secondaryForeground: "oklch(0.222003 0.03479 328.979)",
657 muted: "oklch(0.950842 0.009273 51.528)",
658 mutedForeground: "oklch(0.530413 0.018453 341.181)",
659 placeholder: "oklch(0.532339 0.017796 331.748)",
660 secondaryLabel: "oklch(0.543023 0.017316 331.964)",
661 iconMuted: "oklch(0.543023 0.017316 331.964)",
662 error: "oklch(0.637823 0.237287 25.436)",
663 errorForeground: "oklch(0.509494 0.208583 28.513)",
664 errorSurface: "oklch(0.941094 0.019938 19.375)",
665 warning: "oklch(0.772406 0.172798 65.367)",
666 warningForeground: "oklch(0.549154 0.156188 45.359)",
667 warningSurface: "oklch(0.957148 0.020843 76.702)",
668 update: "oklch(0.552831 0.129438 44.656)",
669 updateForeground: "oklch(0.408647 0.091207 45.037)",
670 updateSurface: "oklch(0.907902 0.020621 49.36)",
671 accentSurface: "oklch(0.916502 0.01832 49.597)",
672 accentSurfaceForeground: "oklch(0.222003 0.03479 328.979)",
673 messageSurface: "oklch(0.899296 0.022939 49.163)",
674 messageForeground: "oklch(0.222003 0.03479 328.979)",
675 messageAction: "oklch(0.516323 0.161628 24.82)",
676 messageActionForeground: "oklch(0.990339 0.008411 325.64)",
677 messageActionHover: "oklch(0.471223 0.145843 24.688)",
678 codeBackground: "oklch(0.959965 0.002668 47.512)",
679 codeForeground: "oklch(0.222003 0.03479 328.979)",
680 sidebar: "oklch(0.942267 0.01151 50.785)",
681 sidebarForeground: "oklch(0.222003 0.03479 328.979)",
682 sidebarMutedForeground: "oklch(0.519146 0.019214 343.427)",
683 sidebarControlSurface: "oklch(0.891332 0.011179 40.596)",
684 sidebarRowHover: "oklch(0.894819 0.024151 49.073)",
685 sidebarRowActive: "oklch(0.863104 0.032855 48.586)",
686 sidebarRowSelected: "oklch(0.84723 0.037292 48.403)",
687 sidebarBorder: "oklch(0.865593 0.011154 35.246)",
688 terminalBackground: "oklch(0.976527 0.002685 60.725)",
689 terminalForeground: "oklch(0.222003 0.03479 328.979)",
690 terminalCursor: "oklch(0.552831 0.129438 44.656)",
691 terminalSelection: "oklch(0.899296 0.022939 49.163)",
692 terminalScrollbar: "oklch(0.828185 0.005884 349.533)",
693 terminalScrollbarHover: "oklch(0.758584 0.008423 341.16)",
694 },
695 variants: {
696 dark: {
697 canvas: "oklch(0.245899 0.019144 42.044)",
698 chrome: "oklch(0.245899 0.019144 42.044)",
699 toolbar: "oklch(0.245899 0.019144 42.044)",
700 toolbarForeground: "oklch(0.990339 0.008411 325.64)",
701 toolbarBorder: "oklch(0.442681 0.0608 50.795)",
702 toolbarControl: "oklch(0.361499 0.044052 49.515)",
703 toolbarControlForeground: "oklch(0.990339 0.008411 325.64)",
704 toolbarControlHover: "oklch(0.416048 0.055354 50.484)",
705 surface: "oklch(0.245899 0.019144 42.044)",
706 surfaceRaised: "oklch(0.351262 0.01565 37.592)",
707 surfaceOverlay: "oklch(0.401111 0.014308 34.896)",
708 text: "oklch(0.990339 0.008411 325.64)",
709 textMuted: "oklch(0.654017 0.009505 13.287)",
710 border: "oklch(0.44099 0.040202 48.807)",
711 input: "oklch(0.503003 0.045721 49.44)",
712 focus: "oklch(0.762174 0.124117 52.082)",
713 accent: "oklch(0.762174 0.124117 52.082)",
714 accentForeground: "oklch(0.222003 0.03479 328.979)",
715 secondary: "oklch(0.361499 0.044052 49.515)",
716 secondaryForeground: "oklch(0.990339 0.008411 325.64)",
717 muted: "oklch(0.322144 0.03574 48.309)",
718 mutedForeground: "oklch(0.692479 0.015227 30.963)",
719 placeholder: "oklch(0.723533 0.008741 4.515)",
720 secondaryLabel: "oklch(0.654017 0.009505 13.287)",
721 iconMuted: "oklch(0.654017 0.009505 13.287)",
722 error: "oklch(0.655108 0.221148 23.473)",
723 errorForeground: "oklch(0.702184 0.189226 22.228)",
724 errorSurface: "oklch(0.310955 0.059624 24.334)",
725 warning: "oklch(0.772406 0.172798 65.367)",
726 warningForeground: "oklch(0.829017 0.171221 81.038)",
727 warningSurface: "oklch(0.339137 0.055638 66.911)",
728 update: "oklch(0.762174 0.124117 52.082)",
729 updateForeground: "oklch(0.841456 0.079585 53.521)",
730 updateSurface: "oklch(0.426749 0.057547 50.618)",
731 accentSurface: "oklch(0.416048 0.055354 50.484)",
732 accentSurfaceForeground: "oklch(0.990339 0.008411 325.64)",
733 messageSurface: "oklch(0.447961 0.061874 50.849)",
734 messageForeground: "oklch(0.990339 0.008411 325.64)",
735 messageAction: "oklch(0.747955 0.135578 29.432)",
736 messageActionForeground: "oklch(0.222003 0.03479 328.979)",
737 messageActionHover: "oklch(0.775116 0.117953 29.014)",
738 codeBackground: "oklch(0.299662 0.017229 39.973)",
739 codeForeground: "oklch(0.990339 0.008411 325.64)",
740 sidebar: "oklch(0.293349 0.029554 46.882)",
741 sidebarForeground: "oklch(0.990339 0.008411 325.64)",
742 sidebarMutedForeground: "oklch(0.691874 0.012538 24.638)",
743 sidebarControlSurface: "oklch(0.420227 0.022893 43.226)",
744 sidebarRowHover: "oklch(0.356163 0.042933 49.385)",
745 sidebarRowActive: "oklch(0.396617 0.051353 50.201)",
746 sidebarRowSelected: "oklch(0.416477 0.055442 50.489)",
747 sidebarBorder: "oklch(0.560372 0.016998 36.179)",
748 terminalBackground: "oklch(0.245899 0.019144 42.044)",
749 terminalForeground: "oklch(0.990339 0.008411 325.64)",
750 terminalCursor: "oklch(0.762174 0.124117 52.082)",
751 terminalSelection: "oklch(0.442681 0.0608 50.795)",
752 terminalScrollbar: "oklch(0.587861 0.010463 20.444)",
753 terminalScrollbarHover: "oklch(0.682876 0.009156 9.796)",
754 },
755 },
756 sidebarArtwork: true,
757};
758
759export const IRIS_THEME: ThemeDefinition = {
760 id: "iris",
761 label: "Iris",
762 appearance: "light",
763 colors: {
764 canvas: "oklch(0.976531 0.003855 303.226)",
765 chrome: "oklch(0.976531 0.003855 303.226)",
766 toolbar: "oklch(0.976531 0.003855 303.226)",
767 toolbarForeground: "oklch(0.222003 0.03479 328.979)",
768 toolbarBorder: "oklch(0.914882 0.022965 299.986)",
769 toolbarControl: "oklch(0.941387 0.014687 300.474)",
770 toolbarControlForeground: "oklch(0.222003 0.03479 328.979)",
771 toolbarControlHover: "oklch(0.914882 0.022965 299.986)",
772 surface: "oklch(0.976531 0.003855 303.226)",
773 surfaceRaised: "oklch(0.953326 0.004536 307.676)",
774 surfaceOverlay: "oklch(0.936665 0.005041 310.132)",
775 text: "oklch(0.222003 0.03479 328.979)",
776 textMuted: "oklch(0.543042 0.018894 325.652)",
777 border: "oklch(0.869608 0.018226 303.859)",
778 input: "oklch(0.834773 0.023405 303.676)",
779 focus: "oklch(0.525348 0.15373 294.176)",
780 accent: "oklch(0.525348 0.15373 294.176)",
781 accentForeground: "oklch(0.990339 0.008411 325.64)",
782 secondary: "oklch(0.941387 0.014687 300.474)",
783 secondaryForeground: "oklch(0.222003 0.03479 328.979)",
784 muted: "oklch(0.950194 0.011956 300.733)",
785 mutedForeground: "oklch(0.529955 0.022319 321.556)",
786 placeholder: "oklch(0.532177 0.019333 325.784)",
787 secondaryLabel: "oklch(0.543042 0.018894 325.652)",
788 iconMuted: "oklch(0.543042 0.018894 325.652)",
789 error: "oklch(0.637823 0.237287 25.436)",
790 errorForeground: "oklch(0.509494 0.208583 28.513)",
791 errorSurface: "oklch(0.941043 0.019582 4.235)",
792 warning: "oklch(0.772406 0.172798 65.367)",
793 warningForeground: "oklch(0.549154 0.156188 45.359)",
794 warningSurface: "oklch(0.957054 0.016197 69.932)",
795 update: "oklch(0.525348 0.15373 294.176)",
796 updateForeground: "oklch(0.389926 0.10825 294.547)",
797 updateSurface: "oklch(0.90602 0.025754 299.867)",
798 accentSurface: "oklch(0.914882 0.022965 299.986)",
799 accentSurfaceForeground: "oklch(0.222003 0.03479 328.979)",
800 messageSurface: "oklch(0.897143 0.028558 299.758)",
801 messageForeground: "oklch(0.222003 0.03479 328.979)",
802 messageAction: "oklch(0.516084 0.185229 340.776)",
803 messageActionForeground: "oklch(0.990339 0.008411 325.64)",
804 messageActionHover: "oklch(0.471003 0.16748 340.687)",
805 codeBackground: "oklch(0.95997 0.004338 306.542)",
806 codeForeground: "oklch(0.222003 0.03479 328.979)",
807 sidebar: "oklch(0.941387 0.014687 300.474)",
808 sidebarForeground: "oklch(0.222003 0.03479 328.979)",
809 sidebarMutedForeground: "oklch(0.518417 0.023683 320.681)",
810 sidebarControlSurface: "oklch(0.890512 0.0155 303.803)",
811 sidebarRowHover: "oklch(0.892522 0.030022 299.704)",
812 sidebarRowActive: "oklch(0.85971 0.040501 299.36)",
813 sidebarRowSelected: "oklch(0.843236 0.045818 299.198)",
814 sidebarBorder: "oklch(0.864805 0.015938 305.371)",
815 terminalBackground: "oklch(0.976531 0.003855 303.226)",
816 terminalForeground: "oklch(0.222003 0.03479 328.979)",
817 terminalCursor: "oklch(0.525348 0.15373 294.176)",
818 terminalSelection: "oklch(0.897143 0.028558 299.758)",
819 terminalScrollbar: "oklch(0.828195 0.008526 318.858)",
820 terminalScrollbarHover: "oklch(0.758596 0.010892 321.538)",
821 },
822 variants: {
823 dark: {
824 canvas: "oklch(0.225975 0.031062 293.741)",
825 chrome: "oklch(0.225975 0.031062 293.741)",
826 toolbar: "oklch(0.225975 0.031062 293.741)",
827 toolbarForeground: "oklch(0.990339 0.008411 325.64)",
828 toolbarBorder: "oklch(0.395417 0.085554 294.182)",
829 toolbarControl: "oklch(0.325405 0.063614 294.23)",
830 toolbarControlForeground: "oklch(0.990339 0.008411 325.64)",
831 toolbarControlHover: "oklch(0.372436 0.07841 294.204)",
832 surface: "oklch(0.225975 0.031062 293.741)",
833 surfaceRaised: "oklch(0.335291 0.026008 296.394)",
834 surfaceOverlay: "oklch(0.386739 0.024023 297.509)",
835 text: "oklch(0.990339 0.008411 325.64)",
836 textMuted: "oklch(0.640465 0.016197 304.171)",
837 border: "oklch(0.40874 0.058536 295.893)",
838 input: "oklch(0.46756 0.065775 296.265)",
839 focus: "oklch(0.671712 0.169136 293.929)",
840 accent: "oklch(0.671712 0.169136 293.929)",
841 accentForeground: "oklch(0.222003 0.03479 328.979)",
842 secondary: "oklch(0.325405 0.063614 294.23)",
843 secondaryForeground: "oklch(0.990339 0.008411 325.64)",
844 muted: "oklch(0.291515 0.05276 294.209)",
845 mutedForeground: "oklch(0.663321 0.025932 301.862)",
846 placeholder: "oklch(0.706249 0.014508 306.607)",
847 secondaryLabel: "oklch(0.640465 0.016197 304.171)",
848 iconMuted: "oklch(0.640465 0.016197 304.171)",
849 error: "oklch(0.655108 0.221148 23.473)",
850 errorForeground: "oklch(0.702184 0.189226 22.228)",
851 errorSurface: "oklch(0.291658 0.054707 352.238)",
852 warning: "oklch(0.772406 0.172798 65.367)",
853 warningForeground: "oklch(0.829017 0.171221 81.038)",
854 warningSurface: "oklch(0.318952 0.033845 51.646)",
855 update: "oklch(0.671712 0.169136 293.929)",
856 updateForeground: "oklch(0.785032 0.108439 296.344)",
857 updateSurface: "oklch(0.381668 0.081286 294.195)",
858 accentSurface: "oklch(0.372436 0.07841 294.204)",
859 accentSurfaceForeground: "oklch(0.990339 0.008411 325.64)",
860 messageSurface: "oklch(0.399975 0.086965 294.177)",
861 messageForeground: "oklch(0.990339 0.008411 325.64)",
862 messageAction: "oklch(0.789904 0.130063 337.621)",
863 messageActionForeground: "oklch(0.222003 0.03479 328.979)",
864 messageActionHover: "oklch(0.813537 0.114101 337.23)",
865 codeBackground: "oklch(0.281873 0.028308 295.193)",
866 codeForeground: "oklch(0.990339 0.008411 325.64)",
867 sidebar: "oklch(0.266743 0.044689 294.138)",
868 sidebarForeground: "oklch(0.990339 0.008411 325.64)",
869 sidebarMutedForeground: "oklch(0.668773 0.021522 302.949)",
870 sidebarControlSurface: "oklch(0.399977 0.035678 297.031)",
871 sidebarRowHover: "oklch(0.320808 0.062152 294.23)",
872 sidebarRowActive: "oklch(0.355677 0.073167 294.217)",
873 sidebarRowSelected: "oklch(0.372806 0.078525 294.203)",
874 sidebarBorder: "oklch(0.545895 0.027522 299.871)",
875 terminalBackground: "oklch(0.225975 0.031062 293.741)",
876 terminalForeground: "oklch(0.990339 0.008411 325.64)",
877 terminalCursor: "oklch(0.671712 0.169136 293.929)",
878 terminalSelection: "oklch(0.395417 0.085554 294.182)",
879 terminalScrollbar: "oklch(0.578663 0.017888 302.229)",
880 terminalScrollbarHover: "oklch(0.676012 0.015271 305.433)",
881 },
882 },
883 sidebarArtwork: true,
884};
885
886export const BUILT_IN_THEMES: ReadonlyArray<ThemeDefinition> = [
887 T3_CHAT_THEME,
888 GROVE_THEME,
889 OCEAN_THEME,
890 EMBER_THEME,
891 IRIS_THEME,
892];
893
894export function getThemeColorsForAppearance(
895 theme: ThemeDefinition,
896 appearance: ThemeAppearance,
897): ThemeColors | null {
898 if (theme.appearance === appearance) return theme.colors;
899 return theme.variants?.[appearance] ?? null;
900}