Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active
TypeScript aianthropicartifactsawsazurechatgptchatgpt-cloneclaudeclonedeepseekgeminigooglegpt-5librechatmcpo1openairesponses-apivisionwebui
🟨 feat: Add a ClickHouse Reference Theme (#16262)
Marco Beretta7c60a20275b3
diff --git a/e2e/specs/mock/scenarios/clickhouse-theme.spec.ts b/e2e/specs/mock/scenarios/clickhouse-theme.spec.tsnew file mode 100644index 0000000000..f4f205d576--- /dev/null+++ b/e2e/specs/mock/scenarios/clickhouse-theme.spec.ts@@ -0,0 +1,238 @@+import { randomUUID } from 'crypto';+import { expect, test } from '@playwright/test';+import type { Page } from '@playwright/test';+import type { IThemeRGB } from '../../../../packages/client/src/theme/types';+import { clickHouseTheme } from '../../../../packages/client/src/theme/themes/clickhouse';+import { defaultTheme } from '../../../../packages/client/src/theme/themes/default';+import { darkTheme } from '../../../../packages/client/src/theme/themes/dark';+import { deleteConversations, seedConversations, seedMessages, withMongo } from '../db';+import { getE2EUser } from '../../../setup/user';+import { themeValue } from './style.helpers';++/**+ * `clickHouseTheme` is the reference theme that proves the engine repaints the+ * app from data alone. A host hands it to `ThemeProvider`, which persists it as+ * the stored definition, so the scenarios supply it the same way and read what+ * the browser actually paints on real surfaces: the sidebar, the settings+ * dialog, and the error box an assistant turn falls back to. Message prose is+ * not one of them: it reads `--tw-prose-body`, which `client/src/style.css`+ * still declares as literals, so no theme reaches it yet.+ */++type Mode = 'light' | 'dark';+type Rgb = [number, number, number];++const MODES: Mode[] = ['light', 'dark'];+const THEME_PARAM = 'e2eThemeMode';+const USER_TEXT = 'How fast is the ingest pipeline today?';+const REPLY_TEXT = 'Ingest is steady at the usual rate.';+const ERROR_TEXT = 'The provider refused the request.';+const WCAG_AA_NORMAL = 4.5;++test.use({ viewport: { width: 1280, height: 800 } });++/** The mode rides in the URL so one init script can serve every navigation. */+async function installThemeBridge(page: Page, definition: unknown) {+ await page.addInitScript((stored) => {+ const mode = new URL(location.href).searchParams.get('e2eThemeMode');+ if (mode) {+ localStorage.setItem('color-theme', mode);+ }+ localStorage.setItem('navVisible', 'true');+ localStorage.removeItem('theme-colors');+ localStorage.removeItem('theme-name');+ if (stored) {+ localStorage.setItem('theme-definition', JSON.stringify(stored));+ localStorage.setItem('theme-source', 'definition');+ } else {+ localStorage.removeItem('theme-definition');+ localStorage.removeItem('theme-source');+ }+ }, definition ?? null);+}++const rgbCss = (triplet: string | undefined) => `rgb(${(triplet ?? '').split(' ').join(', ')})`;++const colorsFor = (mode: Mode): IThemeRGB => clickHouseTheme.modes[mode]?.colors ?? {};++function parseRgb(value: string): Rgb {+ const channels = value.match(/\d+(\.\d+)?/g)?.map(Number) ?? [];+ return [channels[0], channels[1], channels[2]];+}++function channel(value: number): number {+ const c = value / 255;+ return c <= 0.04045 ? c / 12.92 : Math.pow((c + 0.055) / 1.055, 2.4);+}++function contrast(a: Rgb, b: Rgb): number {+ const luminance = ([r, g, b]: Rgb) =>+ 0.2126 * channel(r) + 0.7152 * channel(g) + 0.0722 * channel(b);+ const [lighter, darker] = [luminance(a), luminance(b)].sort((x, y) => y - x);+ return (lighter + 0.05) / (darker + 0.05);+}++async function seedChat(title: string, withError = false): Promise<string> {+ const conversationId = randomUUID();+ const { email } = getE2EUser();+ await seedConversations(email, [{ conversationId, title, updatedAt: new Date() }]);+ const userMessageId = randomUUID();+ await seedMessages(email, conversationId, [+ {+ messageId: userMessageId,+ parentMessageId: '00000000-0000-0000-0000-000000000000',+ text: USER_TEXT,+ isCreatedByUser: true,+ sender: 'User',+ },+ ...(withError+ ? []+ : [+ {+ messageId: randomUUID(),+ parentMessageId: userMessageId,+ text: REPLY_TEXT,+ isCreatedByUser: false,+ sender: 'Mock Provider A',+ },+ ]),+ ]);+ if (withError) {+ /** `seedMessages` always writes `error: false`, so the errored turn goes in directly. */+ await withMongo(async (db) => {+ const user = await db.collection('users').findOne({ email });+ await db.collection('messages').insertOne({+ messageId: randomUUID(),+ parentMessageId: userMessageId,+ conversationId,+ user: String(user?._id),+ endpoint: 'openAI',+ text: ERROR_TEXT,+ isCreatedByUser: false,+ sender: 'Mock Provider A',+ error: true,+ unfinished: false,+ createdAt: new Date(Date.now() + 2000),+ updatedAt: new Date(Date.now() + 2000),+ __v: 0,+ });+ });+ }+ return conversationId;+}++const titleColor = (page: Page, title: string) =>+ page+ .getByTestId('convo-item')+ .filter({ hasText: title })+ .first()+ .getByText(title, { exact: true })+ .evaluate((node) => getComputedStyle(node).color);++test.describe('clickhouse reference theme', () => {+ test('the ClickHouse definition repaints the chat and the settings dialog in both modes @scenario:clickhouse-definition-repaints-chat-sidebar-and-dialog', async ({+ page,+ }) => {+ test.setTimeout(90000);+ const conversationId = await seedChat('ClickHouse repaint');+ await installThemeBridge(page, clickHouseTheme);++ try {+ for (const mode of MODES) {+ const colors = colorsFor(mode);+ await page.goto(`/c/${conversationId}?${THEME_PARAM}=${mode}`);+ await expect(page.getByText(REPLY_TEXT, { exact: true }).first()).toBeVisible({+ timeout: 20000,+ });++ await expect(page.locator('html')).toHaveAttribute('data-theme', 'clickhouse');+ await expect(page.locator('html')).toHaveClass(new RegExp(`\\b${mode}\\b`));+ expect(await themeValue(page, '--surface-primary')).toBe(colors['rgb-surface-primary']);+ expect(await themeValue(page, '--surface-primary-alt')).toBe(+ colors['rgb-surface-primary-alt'],+ );+ expect(await themeValue(page, '--theme-control-radius')).toBe('0.25rem');+ expect(await titleColor(page, 'ClickHouse repaint')).toBe(+ rgbCss(colors['rgb-text-primary']),+ );++ await page.getByTestId('nav-user').click();+ await page.getByRole('menuitem', { name: 'Settings' }).click();+ /** Headless UI puts `role="dialog"` on a box-less wrapper, so the painted+ * surface is read off the first opaque ancestor of the panel's heading. */+ const heading = page.getByRole('heading', { name: 'Settings', exact: true });+ await expect(heading).toBeVisible({ timeout: 10000 });+ const panelBackground = await heading.evaluate((node) => {+ for (let el: Element | null = node; el; el = el.parentElement) {+ const background = getComputedStyle(el).backgroundColor;+ if (background !== 'rgba(0, 0, 0, 0)' && background !== 'transparent') {+ return background;+ }+ }+ return '';+ });+ expect(panelBackground).toBe(rgbCss(colors['rgb-surface-dialog']));+ await page.keyboard.press('Escape');+ await expect(heading).toBeHidden();+ }+ } finally {+ await deleteConversations([conversationId]);+ }+ });++ test('an errored reply stays readable under the ClickHouse theme @scenario:clickhouse-error-notice-text-stays-readable', async ({+ page,+ }) => {+ test.setTimeout(90000);+ const conversationId = await seedChat('ClickHouse error notice', true);+ await installThemeBridge(page, clickHouseTheme);++ try {+ for (const mode of MODES) {+ const colors = colorsFor(mode);+ await page.goto(`/c/${conversationId}?${THEME_PARAM}=${mode}`);+ const notice = page.getByRole('alert').filter({ hasText: ERROR_TEXT }).first();+ await expect(notice).toBeVisible({ timeout: 20000 });++ const painted = await notice.evaluate((node) => {+ const style = getComputedStyle(node);+ return { color: style.color, background: style.backgroundColor };+ });+ expect(painted.background).toBe(rgbCss(colors['rgb-status-error-subtle']));+ expect(+ contrast(parseRgb(painted.color), parseRgb(painted.background)),+ ).toBeGreaterThanOrEqual(WCAG_AA_NORMAL);+ }+ } finally {+ await deleteConversations([conversationId]);+ }+ });++ test('a host with no theme definition keeps the LibreChat look @scenario:no-theme-definition-keeps-the-librechat-look', async ({+ page,+ }) => {+ test.setTimeout(90000);+ const conversationId = await seedChat('LibreChat default look');+ await installThemeBridge(page, null);++ try {+ for (const [mode, palette] of [+ ['light', defaultTheme],+ ['dark', darkTheme],+ ] as const) {+ await page.goto(`/c/${conversationId}?${THEME_PARAM}=${mode}`);+ await expect(page.getByText(REPLY_TEXT, { exact: true }).first()).toBeVisible({+ timeout: 20000,+ });++ await expect(page.locator('html')).not.toHaveAttribute('data-theme', 'clickhouse');+ expect(await themeValue(page, '--surface-primary')).toBe(palette['rgb-surface-primary']);+ expect(await titleColor(page, 'LibreChat default look')).toBe(+ rgbCss(palette['rgb-text-primary']),+ );+ }+ } finally {+ await deleteConversations([conversationId]);+ }+ });+});diff --git a/packages/client/src/theme/semanticTokens.spec.ts b/packages/client/src/theme/semanticTokens.spec.tsindex 928f46b15e..d2e7ec2f19 100644--- a/packages/client/src/theme/semanticTokens.spec.ts+++ b/packages/client/src/theme/semanticTokens.spec.ts@@ -2,6 +2,7 @@ import { join } from 'node:path';import { readFileSync } from 'node:fs';import type { IThemeRGB } from './types';import { highContrastDarkTheme, highContrastLightTheme } from './themes/highContrast';+import { clickHouseDarkTheme, clickHouseLightTheme } from './themes/clickhouse';import { defaultTheme } from './themes/default';import { darkTheme } from './themes/dark';@@ -235,6 +236,8 @@ describe.each([['dark', darkTheme],['high contrast light', highContrastLightTheme],['high contrast dark', highContrastDarkTheme],+ ['clickhouse light', clickHouseLightTheme],+ ['clickhouse dark', clickHouseDarkTheme],])('%s theme text contrast', (_name, theme: IThemeRGB) => {it('keeps neutral text at WCAG AA on every surface it renders on', () => {expect(belowAA(theme, neutralTextTokens, [...canvasSurfaces, 'rgb-surface-tertiary'])).toEqual(@@ -329,6 +332,8 @@ describe.each([['dark', darkTheme],['high contrast light', highContrastLightTheme],['high contrast dark', highContrastDarkTheme],+ ['clickhouse light', clickHouseLightTheme],+ ['clickhouse dark', clickHouseDarkTheme],])('%s series contrast', (_name, theme: IThemeRGB) => {it('keeps every series slot at the 3:1 mark floor on its consumer surfaces', () => {const failures = seriesTokens.flatMap((token) =>@@ -359,6 +364,8 @@ describe.each([['dark', darkTheme],['high contrast light', highContrastLightTheme],['high contrast dark', highContrastDarkTheme],+ ['clickhouse light', clickHouseLightTheme],+ ['clickhouse dark', clickHouseDarkTheme],])('%s skill indicators', (_name, theme: IThemeRGB) => {it('keeps informational marks at the 3:1 floor on every skill surface', () => {const indicator = toRgb(theme, 'rgb-status-info');@@ -387,6 +394,8 @@ describe.each([['dark', darkTheme],['high contrast light', highContrastLightTheme],['high contrast dark', highContrastDarkTheme],+ ['clickhouse light', clickHouseLightTheme],+ ['clickhouse dark', clickHouseDarkTheme],])('%s success fill', (_name, theme: IThemeRGB) => {it('carries its label at WCAG AA', () => {const ratio = contrast(@@ -441,6 +450,8 @@ describe.each([['dark', darkTheme],['high contrast light', highContrastLightTheme],['high contrast dark', highContrastDarkTheme],+ ['clickhouse light', clickHouseLightTheme],+ ['clickhouse dark', clickHouseDarkTheme],])('%s verified fill', (_name, theme: IThemeRGB) => {it('carries its check at the 3:1 mark floor', () => {const ratio = contrast(toRgb(theme, 'rgb-status-verified'), toRgb(theme, 'rgb-text-on-status'));@@ -495,6 +506,8 @@ describe.each([['dark', darkTheme],['high contrast light', highContrastLightTheme],['high contrast dark', highContrastDarkTheme],+ ['clickhouse light', clickHouseLightTheme],+ ['clickhouse dark', clickHouseDarkTheme],])('%s switch track', (_name, theme: IThemeRGB) => {it('keeps the unchecked track at the 3:1 mark floor against thumb and checked fill', () => {const track = toRgb(theme, 'rgb-switch-unchecked');diff --git a/packages/client/src/theme/themes/clickhouse.spec.tsx b/packages/client/src/theme/themes/clickhouse.spec.tsxnew file mode 100644index 0000000000..02cad177c3--- /dev/null+++ b/packages/client/src/theme/themes/clickhouse.spec.tsx@@ -0,0 +1,392 @@+import '@testing-library/jest-dom';+import { render, waitFor } from '@testing-library/react';+import type { ThemeMode, IThemeRGB } from '../types';+import {+ defaultAppearance,+ libreChatTheme,+ resolveTheme,+ themeColorTokens,+ validateThemeDefinition,+} from '../registry';+import { clickHouseDarkTheme, clickHouseLightTheme, clickHouseTheme } from './clickhouse';+import { ThemeProvider } from '../context/ThemeProvider';++type Rgb = [number, number, number];++/** A brand theme, not an accessibility mode: WCAG AA rather than AAA. */+const WCAG_AA_NORMAL = 4.5;+/** WCAG 1.4.11 non-text contrast, for control boundaries, rings, fills and marks. */+const WCAG_NON_TEXT = 3;++const canvasSurfaces: Array<keyof IThemeRGB> = [+ 'rgb-surface-primary',+ 'rgb-chart-widget-surface',+ 'rgb-surface-primary-alt',+ 'rgb-surface-secondary',+ 'rgb-surface-tertiary',+ 'rgb-surface-tertiary-alt',+ 'rgb-surface-dialog',+ 'rgb-surface-chat',+ 'rgb-surface-code',+ 'rgb-presentation',+];++/** Fills a row or menu item takes on hover or selection, which carry the+ * primary label. */+const interactiveFills: Array<keyof IThemeRGB> = [+ 'rgb-surface-active',+ 'rgb-surface-active-alt',+ 'rgb-surface-hover',+ 'rgb-surface-hover-alt',+ 'rgb-surface-composer-hover',+ 'rgb-surface-primary-contrast',+ 'rgb-surface-secondary-alt',+ 'rgb-header-primary',+ 'rgb-header-hover',+ 'rgb-header-button-hover',+];++const neutralTextTokens: Array<keyof IThemeRGB> = [+ 'rgb-text-primary',+ 'rgb-text-secondary',+ 'rgb-text-secondary-alt',+ 'rgb-text-tertiary',+ 'rgb-text-muted',+];++const syntaxTokens: Array<keyof IThemeRGB> = [+ 'rgb-syntax-text',+ 'rgb-syntax-comment',+ 'rgb-syntax-meta',+ 'rgb-syntax-builtin',+ 'rgb-syntax-keyword',+ 'rgb-syntax-string',+ 'rgb-syntax-attr',+ 'rgb-syntax-title',+];++const accentTokens: Array<keyof IThemeRGB> = [+ 'rgb-accent-primary',+ 'rgb-accent-primary-hover',+ 'rgb-link',+ 'rgb-link-hover',+ 'rgb-link-visited',+ 'rgb-brand-purple',+];++/** Painted under `text-on-status`, the single per-mode label. */+const solidFills: Array<keyof IThemeRGB> = [+ 'rgb-surface-submit',+ 'rgb-surface-submit-hover',+ 'rgb-surface-destructive',+ 'rgb-surface-destructive-hover',+ 'rgb-status-success-strong',+ 'rgb-status-info-strong',+ 'rgb-status-warning-strong',+ 'rgb-status-error-strong',+];++/** The roles whose only job is to outline a control. `border-light` through+ * `border-heavy` paint dividers and card edges, and `border-medium` also+ * outlines inputs such as `Select` and `InputNumber`: that one sits at 1.24:1+ * here and 1.52:1 in the LibreChat palette, a gap the registry has no+ * control-boundary role to close, so it is left to a follow-up rather than+ * asserted. */+const boundaryTokens: Array<keyof IThemeRGB> = [+ 'rgb-border-xheavy',+ 'rgb-border-destructive',+ 'rgb-ring-primary',+];++const seriesTokens = Array.from(+ { length: 8 },+ (_, index) => `rgb-series-${index + 1}` as keyof IThemeRGB,+);++const statusHues = ['success', 'info', 'warning', 'error', 'neutral'] as const;++/** Roles a reader would name as "the theme": if these match LibreChat's, the+ * reference theme proves nothing. Light `surface-primary` is the one exception:+ * Click UI's `background.default` and LibreChat's light canvas are both+ * #ffffff, which the definition test asserts rather than hides. */+const divergentTokens: Array<keyof IThemeRGB> = [+ 'rgb-surface-primary',+ 'rgb-surface-secondary',+ 'rgb-text-primary',+ 'rgb-text-secondary',+ 'rgb-border-light',+ 'rgb-accent-primary',+ 'rgb-surface-submit',+ 'rgb-link',+];++function toRgb(theme: IThemeRGB, token: keyof IThemeRGB): Rgb {+ const parts = theme[token]?.trim().split(/\s+/).map(Number);+ if (parts?.length !== 3 || parts.some(Number.isNaN)) {+ throw new Error(`theme token "${token}" is not an "R G B" triplet`);+ }+ return [parts[0], parts[1], parts[2]];+}++function channel(value: number): number {+ const c = value / 255;+ return c <= 0.04045 ? c / 12.92 : Math.pow((c + 0.055) / 1.055, 2.4);+}++function luminance([r, g, b]: Rgb): number {+ return 0.2126 * channel(r) + 0.7152 * channel(g) + 0.0722 * channel(b);+}++function contrast(a: Rgb, b: Rgb): number {+ const [lighter, darker] = [luminance(a), luminance(b)].sort((x, y) => y - x);+ return (lighter + 0.05) / (darker + 0.05);+}++function below(+ theme: IThemeRGB,+ minimum: number,+ foregrounds: Array<keyof IThemeRGB>,+ backgrounds: Array<keyof IThemeRGB>,+): string[] {+ return foregrounds.flatMap((foreground) =>+ backgrounds.flatMap((background) => {+ const ratio = contrast(toRgb(theme, foreground), toRgb(theme, background));+ return ratio < minimum+ ? [`${foreground} on ${background}: ${ratio.toFixed(2)}:1 (needs ${minimum}:1)`]+ : [];+ }),+ );+}++const modes: Array<[ThemeMode, IThemeRGB]> = [+ ['light', clickHouseLightTheme],+ ['dark', clickHouseDarkTheme],+];++describe.each(modes)('clickhouse %s palette', (_mode, theme) => {+ it('declares every registry token, so nothing falls back to the LibreChat palette', () => {+ expect(Object.keys(theme).sort()).toEqual([...themeColorTokens].sort());+ });++ it('keeps neutral text at WCAG AA on every canvas surface', () => {+ expect(below(theme, WCAG_AA_NORMAL, neutralTextTokens, canvasSurfaces)).toEqual([]);+ });++ it('keeps primary text at WCAG AA on hover, selected and header fills', () => {+ expect(below(theme, WCAG_AA_NORMAL, ['rgb-text-primary'], interactiveFills)).toEqual([]);+ });++ /** The chat error box, the route error boundary, the sign-in notices and the+ * deleted rows of a diff paint neutral copy on a status fill rather than on a+ * canvas. `text-muted` is left out because no consumer puts it on one. */+ it('keeps the text roles that meet status fills at WCAG AA on every one', () => {+ const fills = statusHues.map((hue) => `rgb-status-${hue}-subtle` as keyof IThemeRGB);+ const onStatusFills: Array<keyof IThemeRGB> = [+ 'rgb-text-primary',+ 'rgb-text-secondary',+ 'rgb-text-secondary-alt',+ 'rgb-text-tertiary',+ 'rgb-text-destructive',+ ];+ expect(below(theme, WCAG_AA_NORMAL, onStatusFills, fills)).toEqual([]);+ });++ it('keeps warning and destructive text at WCAG AA on canvas surfaces', () => {+ expect(+ below(theme, WCAG_AA_NORMAL, ['rgb-text-warning', 'rgb-text-destructive'], canvasSurfaces),+ ).toEqual([]);+ });++ it('keeps every status hue at WCAG AA against its own subtle fill', () => {+ const failures = statusHues.flatMap((hue) =>+ below(+ theme,+ WCAG_AA_NORMAL,+ [`rgb-status-${hue}` as keyof IThemeRGB],+ [`rgb-status-${hue}-subtle` as keyof IThemeRGB],+ ),+ );+ expect(failures).toEqual([]);+ });++ it('keeps accents and links at WCAG AA on the page', () => {+ expect(+ below(theme, WCAG_AA_NORMAL, accentTokens, ['rgb-surface-primary', 'rgb-surface-secondary']),+ ).toEqual([]);+ });++ it('keeps every syntax colour at WCAG AA on the code surface', () => {+ expect(below(theme, WCAG_AA_NORMAL, syntaxTokens, ['rgb-surface-code'])).toEqual([]);+ });++ it('keeps inverted and fixed pairs at WCAG AA', () => {+ expect(+ below(+ theme,+ WCAG_AA_NORMAL,+ ['rgb-text-inverted'],+ ['rgb-surface-inverted', 'rgb-surface-inverted-hover'],+ ),+ ).toEqual([]);+ expect(+ below(+ theme,+ WCAG_AA_NORMAL,+ ['rgb-text-fixed'],+ ['rgb-surface-fixed', 'rgb-surface-fixed-hover'],+ ),+ ).toEqual([]);+ });++ it('carries the status label at WCAG AA on every solid fill', () => {+ expect(below(theme, WCAG_AA_NORMAL, ['rgb-text-on-status'], solidFills)).toEqual([]);+ });++ it('keeps solid fills and the verified mark at the 3:1 floor against the page', () => {+ expect(+ below(+ theme,+ WCAG_NON_TEXT,+ [...solidFills, 'rgb-status-verified'],+ ['rgb-surface-primary', 'rgb-surface-secondary', 'rgb-surface-dialog'],+ ),+ ).toEqual([]);+ expect(below(theme, WCAG_NON_TEXT, ['rgb-text-on-status'], ['rgb-status-verified'])).toEqual(+ [],+ );+ });++ it('keeps control boundaries and rings at the 3:1 floor on every canvas', () => {+ expect(+ below(theme, WCAG_NON_TEXT, boundaryTokens, [+ 'rgb-surface-primary',+ 'rgb-surface-secondary',+ 'rgb-surface-tertiary',+ 'rgb-surface-dialog',+ ]),+ ).toEqual([]);+ });++ it('keeps every series mark at the 3:1 floor on the page and under the status label', () => {+ expect(+ below(theme, WCAG_NON_TEXT, seriesTokens, [+ 'rgb-surface-primary',+ 'rgb-surface-secondary',+ 'rgb-surface-tertiary',+ 'rgb-surface-chat',+ 'rgb-surface-dialog',+ 'rgb-text-on-status',+ ]),+ ).toEqual([]);+ });++ it('never reuses a reserved status colour for series identity', () => {+ const reserved = new Set(+ statusHues.map((hue) => theme[`rgb-status-${hue}` as keyof IThemeRGB]),+ );+ expect(seriesTokens.filter((token) => reserved.has(theme[token]))).toEqual([]);+ });+});++describe('clickhouse theme definition', () => {+ it('validates as a data-only theme definition', () => {+ expect(validateThemeDefinition(clickHouseTheme)).toEqual([]);+ });++ it.each(modes)('resolves %s mode to its own palette without fallback', (mode, palette) => {+ const resolved = resolveTheme(clickHouseTheme, mode);++ expect(resolved.name).toBe('clickhouse');+ expect(resolved.colors).toEqual(palette);+ expect(resolved.appearance).toMatchObject({+ controlRadius: '0.25rem',+ surfaceRadius: '0.5rem',+ largeSurfaceRadius: '0.75rem',+ roundControlRadius: '9999px',+ });+ expect(resolved.appearance.fontFamily).toMatch(/^"Inter", "SF Pro Display"/);+ });++ it.each(modes)('repaints the %s canvas, text, border and accent roles', (mode) => {+ const clickHouse = resolveTheme(clickHouseTheme, mode);+ const libreChat = resolveTheme(libreChatTheme, mode);+ const expectedShared = mode === 'light' ? ['rgb-surface-primary'] : [];++ expect(+ divergentTokens.filter((token) => clickHouse.colors[token] === libreChat.colors[token]),+ ).toEqual(expectedShared);+ expect(clickHouse.appearance.controlRadius).not.toBe(defaultAppearance.controlRadius);+ expect(clickHouse.appearance.surfaceRadius).not.toBe(defaultAppearance.surfaceRadius);+ expect(clickHouse.appearance.largeSurfaceRadius).not.toBe(defaultAppearance.largeSurfaceRadius);+ });++ it('keeps the brand yellow as the dark-mode accent and link', () => {+ expect(clickHouseDarkTheme['rgb-accent-primary']).toBe('250 255 105');+ expect(clickHouseDarkTheme['rgb-surface-submit']).toBe('250 255 105');+ expect(clickHouseDarkTheme['rgb-link']).toBe('250 255 105');+ });+});++describe('clickhouse theme at runtime', () => {+ const matchMedia = (): MediaQueryList =>+ ({+ matches: false,+ media: '',+ onchange: null,+ addEventListener: jest.fn(),+ removeEventListener: jest.fn(),+ addListener: jest.fn(),+ removeListener: jest.fn(),+ dispatchEvent: jest.fn(),+ }) as MediaQueryList;++ beforeEach(() => {+ localStorage.clear();+ document.documentElement.removeAttribute('class');+ document.documentElement.removeAttribute('style');+ document.documentElement.removeAttribute('data-theme');+ window.matchMedia = jest.fn(matchMedia);+ });++ const renderProvider = (initialTheme: ThemeMode, themeDefinition = clickHouseTheme) => (+ <ThemeProvider+ initialTheme={initialTheme}+ persistThemeDefinition={false}+ themeDefinition={themeDefinition}+ >+ {null}+ </ThemeProvider>+ );++ const property = (name: string) => document.documentElement.style.getPropertyValue(name);++ it('repaints the root from the definition in both modes and hands back to LibreChat', async () => {+ const { rerender } = render(renderProvider('light'));++ await waitFor(() => {+ expect(document.documentElement.dataset.theme).toBe('clickhouse');+ });+ expect(property('--surface-primary')).toBe(clickHouseLightTheme['rgb-surface-primary']);+ expect(property('--text-primary')).toBe(clickHouseLightTheme['rgb-text-primary']);+ expect(property('--theme-control-radius')).toBe('0.25rem');++ rerender(renderProvider('dark'));++ await waitFor(() => {+ expect(document.documentElement).toHaveClass('dark');+ });+ expect(property('--surface-primary')).toBe(clickHouseDarkTheme['rgb-surface-primary']);+ expect(property('--text-primary')).toBe(clickHouseDarkTheme['rgb-text-primary']);+ expect(property('--theme-control-radius')).toBe('0.25rem');++ rerender(renderProvider('dark', libreChatTheme));++ await waitFor(() => {+ expect(document.documentElement.dataset.theme).toBe('librechat');+ });+ const libreChatDark = resolveTheme(libreChatTheme, 'dark');+ expect(property('--surface-primary')).toBe(libreChatDark.colors['rgb-surface-primary']);+ expect(property('--text-primary')).toBe(libreChatDark.colors['rgb-text-primary']);+ expect(property('--theme-control-radius')).toBe(defaultAppearance.controlRadius);+ });+});diff --git a/packages/client/src/theme/themes/clickhouse.ts b/packages/client/src/theme/themes/clickhouse.tsnew file mode 100644index 0000000000..5b97ee452a--- /dev/null+++ b/packages/client/src/theme/themes/clickhouse.ts@@ -0,0 +1,284 @@+import type { ThemeDefinition, IThemeRGB } from '../types';++/**+ * ClickHouse reference theme, built from Click UI's design tokens+ * (github.com/ClickHouse/click-ui, `src/theme/tokens/variables.light.ts` and+ * `variables.dark.ts` at 7dad15bb978d03ba63575e1d4abc02b8927ee1cd).+ *+ * This is the deliberately different theme that proves the engine repaints the+ * app from data alone: no component reads it by name, and LibreChat's defaults+ * are untouched. Each comment names the Click UI token a value comes from; paths+ * without a prefix are under `global.color`, `palette.*` is Click UI's ramp.+ *+ * Both maps are complete, so nothing falls back to the LibreChat palette. Where+ * a verbatim Click UI value missed a contrast floor in `clickhouse.spec.ts` or+ * `semanticTokens.spec.ts`, the value moves along the same Click UI ramp and the+ * comment records the step and the ratio it replaced.+ *+ * `text-on-status` is one label per mode over every solid fill. Dark mode keeps+ * the brand yellow on `surface-submit`, which forces a near-black label, so the+ * destructive and `status-*-strong` fills there are the bright end of their+ * ramps, the same trade `highContrastDarkTheme` makes.+ */++export const clickHouseLightTheme: IThemeRGB = {+ // Text colors+ 'rgb-text-primary': '22 21 23', // #161517 (text.default)+ /** Secondary and tertiary copy also sit on the status fills (the chat error+ * box, the route error boundary, the sign-in notices, the deleted rows of a+ * diff), where text.muted #696e79 measures 4.05:1 on+ * feedback.danger.background. One step down the slate ramp is Click UI's own+ * feedback.neutral.foreground. `text-muted` never meets a status fill, so it+ * keeps text.muted. */+ 'rgb-text-secondary': '83 87 95', // #53575f (palette.slate.700)+ 'rgb-text-secondary-alt': '83 87 95', // #53575f (palette.slate.700)+ 'rgb-text-tertiary': '83 87 95', // #53575f (palette.slate.700)+ 'rgb-text-muted': '105 110 121', // #696e79 (text.muted)+ 'rgb-text-warning': '163 60 0', // #a33c00 (text.warning)+ 'rgb-text-destructive': '193 0 0', // #c10000 (text.danger)+ 'rgb-shimmer-base': '22 21 23', // #161517 (text.default, matching text-primary)+ 'rgb-shimmer-dip': '128 134 145', // #808691 (palette.slate.500)++ // Link and accent colors+ 'rgb-link': '29 100 236', // #1d64ec (palette.info.500, one step past text.link.default #437eef (3.84:1 on white))+ 'rgb-link-hover': '16 78 198', // #104ec6 (text.link.hover)+ 'rgb-link-visited': '136 0 204', // #8800cc (palette.violet.600)+ 'rgb-accent-primary': '21 21 21', // #151515 (accent.default)+ 'rgb-accent-primary-hover': '50 50 50', // #323232 (palette.neutral.712)++ // Ring colors+ 'rgb-ring-primary': '21 21 21', // #151515 (accent.default)++ // Header colors+ 'rgb-header-primary': '255 255 255', // #ffffff (background.default)+ 'rgb-header-hover': '246 247 250', // #f6f7fa (background.muted)+ 'rgb-header-button-hover': '246 247 250', // #f6f7fa (background.muted)++ // Surface colors+ 'rgb-surface-active': '230 231 233', // #e6e7e9 (palette.slate.100)+ 'rgb-surface-active-alt': '204 207 211', // #cccfd3 (palette.slate.200)+ 'rgb-surface-hover': '230 231 233', // #e6e7e9 (palette.slate.100)+ 'rgb-surface-hover-alt': '204 207 211', // #cccfd3 (palette.slate.200)+ 'rgb-surface-composer-hover': '230 231 233', // #e6e7e9 (palette.slate.100)+ 'rgb-surface-primary': '255 255 255', // #ffffff (background.default)+ 'rgb-chart-widget-surface': '255 255 255', // #ffffff (background.default)+ 'rgb-chart-widget-stroke': '230 231 233', // #e6e7e9 (stroke.default)+ 'rgb-surface-primary-alt': '246 247 250', // #f6f7fa (background.split)+ 'rgb-surface-primary-contrast': '230 231 233', // #e6e7e9 (palette.slate.100)+ 'rgb-surface-secondary': '246 247 250', // #f6f7fa (background.muted)+ 'rgb-surface-secondary-alt': '230 231 233', // #e6e7e9 (palette.slate.100)+ 'rgb-surface-tertiary': '246 247 250', // #f6f7fa (background.muted)+ 'rgb-surface-tertiary-alt': '255 255 255', // #ffffff (background.default)+ 'rgb-surface-dialog': '255 255 255', // #ffffff (background.default)+ 'rgb-surface-overlay': '83 87 95', // #53575f (palette.slate.700)+ 'rgb-surface-submit': '21 21 21', // #151515 (accent.default)+ 'rgb-surface-submit-hover': '50 50 50', // #323232 (palette.neutral.712)+ 'rgb-surface-destructive': '193 0 0', // #c10000 (palette.danger.600)+ 'rgb-surface-destructive-hover': '145 0 0', // #910000 (palette.danger.700)+ 'rgb-surface-chat': '255 255 255', // #ffffff (background.default)+ 'rgb-surface-code': '246 247 250', // #f6f7fa (background.muted)+ 'rgb-surface-inverted': '21 21 21', // #151515 (palette.neutral.900)+ 'rgb-surface-inverted-hover': '50 50 50', // #323232 (palette.neutral.712)+ 'rgb-text-inverted': '255 255 255', // #ffffff (palette.neutral.0)+ 'rgb-surface-fixed': '255 255 255', // #ffffff (palette.neutral.0, same in light and dark)+ 'rgb-surface-fixed-hover': '230 231 233', // #e6e7e9 (palette.slate.100, same in light and dark)+ 'rgb-text-fixed': '22 21 23', // #161517 (palette.slate.900, same in light and dark)++ // Border colors+ 'rgb-border-light': '230 231 233', // #e6e7e9 (stroke.default)+ 'rgb-border-medium': '230 231 233', // #e6e7e9 (stroke.default)+ 'rgb-border-medium-alt': '230 231 233', // #e6e7e9 (stroke.default)+ 'rgb-border-heavy': '179 182 189', // #b3b6bd (stroke.intense)+ 'rgb-border-xheavy': '128 134 145', // #808691 (palette.slate.500, two steps past stroke.intense #b3b6bd (2.03:1 on white))+ 'rgb-border-destructive': '193 0 0', // #c10000 (palette.danger.600)++ // Status colors+ 'rgb-status-success': '0 97 8', // #006108 (palette.success.800, one step past feedback.success.foreground #008a0b (4.27:1 on its fill))+ 'rgb-status-success-subtle': '229 255 232', // #e5ffe8 (feedback.success.background)+ 'rgb-status-success-border': '153 255 161', // #99ffa1 (palette.success.200)+ 'rgb-status-success-strong': '0 138 11', // #008a0b (feedback.success.foreground)+ 'rgb-status-info': '16 78 198', // #104ec6 (palette.info.600, two steps past feedback.info.foreground #437eef (3.32:1 on its fill))+ 'rgb-status-info-subtle': '231 239 253', // #e7effd (feedback.info.background)+ 'rgb-status-info-border': '161 190 247', // #a1bef7 (palette.info.200)+ 'rgb-status-info-strong': '16 78 198', // #104ec6 (palette.info.600)+ 'rgb-status-warning': '163 60 0', // #a33c00 (feedback.warning.foreground)+ 'rgb-status-warning-subtle': '255 226 209', // #ffe2d1 (feedback.warning.background)+ 'rgb-status-warning-border': '255 184 143', // #ffb88f (palette.warning.200)+ 'rgb-status-warning-strong': '163 60 0', // #a33c00 (palette.warning.700)+ 'rgb-status-error': '193 0 0', // #c10000 (feedback.danger.foreground)+ 'rgb-status-error-subtle': '255 221 221', // #ffdddd (feedback.danger.background)+ 'rgb-status-error-border': '255 152 152', // #ff9898 (palette.danger.200)+ 'rgb-status-error-strong': '193 0 0', // #c10000 (palette.danger.600)+ 'rgb-status-neutral': '83 87 95', // #53575f (feedback.neutral.foreground)+ 'rgb-status-neutral-subtle': '246 247 250', // #f6f7fa (feedback.neutral.background)+ 'rgb-status-neutral-border': '230 231 233', // #e6e7e9 (feedback.neutral.stroke)+ 'rgb-status-verified': '16 78 198', // #104ec6 (palette.info.600, matching status-info)+ 'rgb-text-on-status': '255 255 255', // #ffffff (palette.neutral.0)++ // Brand colors+ 'rgb-brand-purple': '136 0 204', // #8800cc (palette.violet.600)++ // Code syntax+ 'rgb-syntax-text': '22 21 23', // #161517 (text.default)+ 'rgb-syntax-comment': '105 110 121', // #696e79 (text.muted)+ 'rgb-syntax-meta': '83 87 95', // #53575f (palette.slate.700)+ 'rgb-syntax-builtin': '138 105 0', // #8a6900 (palette.sunrise.700)+ 'rgb-syntax-keyword': '16 78 198', // #104ec6 (palette.info.600)+ 'rgb-syntax-string': '0 97 8', // #006108 (palette.success.800)+ 'rgb-syntax-attr': '153 0 115', // #990073 (palette.fuchsia.700)+ 'rgb-syntax-title': '163 60 0', // #a33c00 (palette.warning.700)++ // Series+ 'rgb-series-1': '67 126 239', // #437eef (chart.default.blue)+ 'rgb-series-2': '245 90 0', // #f55a00 (palette.warning.500, one step past chart.default.orange #ff7729 (2.65:1 on white))+ 'rgb-series-3': '0 138 11', // #008a0b (palette.success.700, in place of chart.default.green #00e513 (1.72:1 on white))+ 'rgb-series-4': '251 50 201', // #fb32c9 (chart.default.fuchsia)+ 'rgb-series-5': '178 136 0', // #b28800 (palette.sunrise.600, in place of chart.default.yellow #eef400 (1.19:1 on white))+ 'rgb-series-6': '187 51 255', // #bb33ff (chart.default.violet)+ 'rgb-series-7': '0 133 153', // #008599 (palette.babyblue.600, in place of chart.default.babyblue #00cbeb (1.95:1 on white))+ 'rgb-series-8': '8 155 131', // #089b83 (chart.default.teal)++ // Switch+ 'rgb-switch-unchecked': '128 134 145', // #808691 (palette.slate.500)++ // Presentation+ 'rgb-presentation': '255 255 255', // #ffffff (background.default)+};++export const clickHouseDarkTheme: IThemeRGB = {+ // Text colors+ 'rgb-text-primary': '255 255 255', // #ffffff (text.default)+ 'rgb-text-secondary': '179 182 189', // #b3b6bd (text.muted)+ 'rgb-text-secondary-alt': '179 182 189', // #b3b6bd (text.muted)+ 'rgb-text-tertiary': '179 182 189', // #b3b6bd (text.muted)+ 'rgb-text-muted': '179 182 189', // #b3b6bd (text.muted)+ 'rgb-text-warning': '255 184 143', // #ffb88f (text.warning)+ 'rgb-text-destructive': '255 186 186', // #ffbaba (text.danger)+ 'rgb-shimmer-base': '255 255 255', // #ffffff (text.default, matching text-primary)+ 'rgb-shimmer-dip': '179 182 189', // #b3b6bd (text.muted)++ // Link and accent colors+ 'rgb-link': '250 255 105', // #faff69 (text.link.default)+ 'rgb-link-hover': '254 255 194', // #feffc2 (text.link.hover)+ 'rgb-link-visited': '204 102 255', // #cc66ff (palette.violet.300)+ 'rgb-accent-primary': '250 255 105', // #faff69 (accent.default)+ 'rgb-accent-primary-hover': '253 255 163', // #fdffa3 (palette.brand.200)++ // Ring colors+ 'rgb-ring-primary': '250 255 105', // #faff69 (outline.default)++ // Header colors+ 'rgb-header-primary': '31 31 28', // #1f1f1c (background.default)+ 'rgb-header-hover': '40 40 40', // #282828 (background.muted)+ 'rgb-header-button-hover': '40 40 40', // #282828 (background.muted)++ // Surface colors+ 'rgb-surface-active': '65 65 65', // #414141 (palette.neutral.700)+ 'rgb-surface-active-alt': '50 50 50', // #323232 (palette.neutral.712)+ 'rgb-surface-hover': '50 50 50', // #323232 (palette.neutral.712)+ 'rgb-surface-hover-alt': '65 65 65', // #414141 (palette.neutral.700)+ 'rgb-surface-composer-hover': '50 50 50', // #323232 (palette.neutral.712)+ 'rgb-surface-primary': '31 31 28', // #1f1f1c (background.default)+ 'rgb-chart-widget-surface': '40 40 40', // #282828 (background.muted)+ 'rgb-chart-widget-stroke': '50 50 50', // #323232 (stroke.default)+ 'rgb-surface-primary-alt': '40 40 40', // #282828 (background.split)+ 'rgb-surface-primary-contrast': '50 50 50', // #323232 (palette.neutral.712)+ 'rgb-surface-secondary': '40 40 40', // #282828 (background.muted)+ 'rgb-surface-secondary-alt': '50 50 50', // #323232 (palette.neutral.712)+ 'rgb-surface-tertiary': '40 40 40', // #282828 (background.muted)+ 'rgb-surface-tertiary-alt': '50 50 50', // #323232 (palette.neutral.712)+ 'rgb-surface-dialog': '31 31 28', // #1f1f1c (background.default)+ 'rgb-surface-overlay': '0 0 0', // #000000 (palette.utility black)+ 'rgb-surface-submit': '250 255 105', // #faff69 (accent.default)+ 'rgb-surface-submit-hover': '253 255 163', // #fdffa3 (palette.brand.200)+ 'rgb-surface-destructive': '255 117 117', // #ff7575 (palette.danger.300)+ 'rgb-surface-destructive-hover': '255 152 152', // #ff9898 (palette.danger.200)+ 'rgb-surface-chat': '31 31 28', // #1f1f1c (background.default)+ 'rgb-surface-code': '40 40 40', // #282828 (codeblock.darkMode.background.default)+ 'rgb-surface-inverted': '255 255 255', // #ffffff (palette.neutral.0)+ 'rgb-surface-inverted-hover': '223 223 223', // #dfdfdf (palette.neutral.200)+ 'rgb-text-inverted': '21 21 21', // #151515 (palette.neutral.900)+ 'rgb-surface-fixed': '255 255 255', // #ffffff (palette.neutral.0, same in light and dark)+ 'rgb-surface-fixed-hover': '230 231 233', // #e6e7e9 (palette.slate.100, same in light and dark)+ 'rgb-text-fixed': '22 21 23', // #161517 (palette.slate.900, same in light and dark)++ // Border colors+ 'rgb-border-light': '50 50 50', // #323232 (stroke.default)+ 'rgb-border-medium': '50 50 50', // #323232 (stroke.default)+ 'rgb-border-medium-alt': '50 50 50', // #323232 (stroke.default)+ 'rgb-border-heavy': '65 65 65', // #414141 (stroke.intense)+ 'rgb-border-xheavy': '128 128 128', // #808080 (palette.neutral.500, three steps past stroke.intense #414141 (1.62:1 on the canvas))+ 'rgb-border-destructive': '255 117 117', // #ff7575 (palette.danger.300)++ // Status colors+ 'rgb-status-success': '204 255 208', // #ccffd0 (feedback.success.foreground)+ 'rgb-status-success-subtle': '0 66 6', // #004206 (feedback.success.background)+ 'rgb-status-success-border': '0 97 8', // #006108 (palette.success.800)+ 'rgb-status-success-strong': '0 229 19', // #00e513 (palette.success.500)+ 'rgb-status-info': '208 223 251', // #d0dffb (feedback.info.foreground)+ 'rgb-status-info-subtle': '13 62 155', // #0d3e9b (feedback.info.background)+ 'rgb-status-info-border': '16 78 198', // #104ec6 (palette.info.600)+ 'rgb-status-info-strong': '109 155 243', // #6d9bf3 (palette.info.300)+ 'rgb-status-warning': '255 184 143', // #ffb88f (feedback.warning.foreground)+ 'rgb-status-warning-subtle': '122 45 0', // #7a2d00 (feedback.warning.background)+ 'rgb-status-warning-border': '163 60 0', // #a33c00 (palette.warning.700)+ 'rgb-status-warning-strong': '255 148 87', // #ff9457 (palette.warning.300)+ 'rgb-status-error': '255 186 186', // #ffbaba (feedback.danger.foreground)+ 'rgb-status-error-subtle': '97 0 0', // #610000 (feedback.danger.background)+ 'rgb-status-error-border': '145 0 0', // #910000 (palette.danger.700)+ 'rgb-status-error-strong': '255 117 117', // #ff7575 (palette.danger.300)+ 'rgb-status-neutral': '249 249 249', // #f9f9f9 (feedback.neutral.foreground)+ 'rgb-status-neutral-subtle': '65 65 65', // #414141 (feedback.neutral.background)+ 'rgb-status-neutral-border': '50 50 50', // #323232 (feedback.neutral.stroke)+ 'rgb-status-verified': '109 155 243', // #6d9bf3 (palette.info.300, matching status-info-strong)+ 'rgb-text-on-status': '29 29 29', // #1d1d1d (iconButton.badge.foreground, the label Click UI sets on its yellow)++ // Brand colors+ 'rgb-brand-purple': '204 102 255', // #cc66ff (palette.violet.300)++ // Code syntax+ 'rgb-syntax-text': '255 255 255', // #ffffff (codeblock.darkMode.text.default)+ 'rgb-syntax-comment': '179 182 189', // #b3b6bd (text.muted)+ 'rgb-syntax-meta': '154 158 167', // #9a9ea7 (palette.slate.400)+ 'rgb-syntax-builtin': '255 195 0', // #ffc300 (chart.default.sunrise)+ 'rgb-syntax-keyword': '109 155 243', // #6d9bf3 (palette.info.300)+ 'rgb-syntax-string': '102 255 115', // #66ff73 (palette.success.300)+ 'rgb-syntax-attr': '251 100 214', // #fb64d6 (chart.default.fuchsia)+ 'rgb-syntax-title': '255 119 41', // #ff7729 (chart.default.orange)++ // Series+ 'rgb-series-1': '67 126 239', // #437eef (chart.default.blue)+ 'rgb-series-2': '255 119 41', // #ff7729 (chart.default.orange)+ 'rgb-series-3': '51 255 68', // #33ff44 (chart.default.green)+ 'rgb-series-4': '251 100 214', // #fb64d6 (chart.default.fuchsia)+ 'rgb-series-5': '255 195 0', // #ffc300 (chart.default.sunrise)+ 'rgb-series-6': '187 51 255', // #bb33ff (chart.default.violet)+ 'rgb-series-7': '0 203 235', // #00cbeb (chart.default.babyblue)+ 'rgb-series-8': '109 248 225', // #6df8e1 (chart.default.teal)++ // Switch+ 'rgb-switch-unchecked': '128 128 128', // #808080 (palette.neutral.500)++ // Presentation+ 'rgb-presentation': '31 31 28', // #1f1f1c (background.default)+};++/** Click UI's radius scale (`border.radii` 1, 2, 3 and full) and its regular+ * family (`typography.font.families.regular`). */+const clickHouseAppearance = {+ controlRadius: '0.25rem',+ surfaceRadius: '0.5rem',+ largeSurfaceRadius: '0.75rem',+ roundControlRadius: '9999px',+ fontFamily:+ '"Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',+};++export const clickHouseTheme: ThemeDefinition = Object.freeze({+ version: 1,+ name: 'clickhouse',+ modes: {+ light: { colors: clickHouseLightTheme, appearance: clickHouseAppearance },+ dark: { colors: clickHouseDarkTheme, appearance: clickHouseAppearance },+ },+});diff --git a/packages/client/src/theme/themes/index.ts b/packages/client/src/theme/themes/index.tsindex 39d5d1631e..3b8c13fc21 100644--- a/packages/client/src/theme/themes/index.ts+++ b/packages/client/src/theme/themes/index.ts@@ -1,3 +1,4 @@export { defaultTheme } from './default';export { darkTheme } from './dark';export { highContrastDarkTheme, highContrastLightTheme } from './highContrast';+export { clickHouseDarkTheme, clickHouseLightTheme, clickHouseTheme } from './clickhouse';