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