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