Skip to content

An open source design system that's fully customizable and agent ready

TypeScript

feat(theme-gothic): dark-only refinements with dusty pastel palette (#2128)

rubyycheungaa51bd47d156
diff --git a/apps/sandbox/src/app/(fullscreen)/pages/gothic-palette/page.tsx b/apps/sandbox/src/app/(fullscreen)/pages/gothic-palette/page.tsx
new file mode 100644
index 0000000000..ce7138e2bb
--- /dev/null
+++ b/apps/sandbox/src/app/(fullscreen)/pages/gothic-palette/page.tsx
@@ -0,0 +1,100 @@
+'use client';
+
+import {XDSVStack} from '@xds/core/Layout';
+import {gothicTheme} from '@xds/theme-gothic/built';
+import {ThemePalettePreview} from '@/components/ThemePalettePreview';
+import type {TonalColor} from '@/components/ThemePalettePreview';
+
+const GOTHIC =
+ '"Manufacturing Consent", "UnifrakturMaguntia", "Old English Text MT", serif';
+
+const TONAL_COLORS: TonalColor[] = [
+ {name: 'Gothic Neutral', sourceHex: '#96A0AB', note: 'cool blue-gray'},
+ {name: 'Green', sourceHex: '#b3c79a', semantic: 'Success / sage moss'},
+ {name: 'Red', sourceHex: '#c6a6a2', semantic: 'Error / dusty rose'},
+ {name: 'Yellow', sourceHex: '#d3c490', semantic: 'Warning / aged gold'},
+ {name: 'Blue', sourceHex: '#a3b5d6', note: 'periwinkle midnight'},
+ {name: 'Purple', sourceHex: '#b29bc4', note: 'muted plum'},
+ {name: 'Pink', sourceHex: '#c89aab', note: 'dusty rose'},
+ {name: 'Cyan', sourceHex: '#a3c2cf', note: 'cathedral mist'},
+ {name: 'Orange', sourceHex: '#d3b89a', note: 'warm tan'},
+ {name: 'Teal', sourceHex: '#a3c2b6', note: 'sage verdigris'},
+];
+
+const CORE = [
+ {hex: '#101314', name: 'Body / Surface'},
+ {hex: '#1a1d20', name: 'Card'},
+ {hex: '#24292D', name: 'Popover'},
+ {hex: '#495056', name: 'Border emp.'},
+ {hex: '#96A0AB', name: 'Text secondary'},
+ {hex: '#E8F1F6', name: 'Text primary'},
+];
+
+const sectionTitle: React.CSSProperties = {
+ fontSize: 13,
+ fontWeight: 600,
+ margin: 0,
+ marginBottom: 12,
+};
+
+function DisplayTextSection() {
+ return (
+ <div>
+ <h3 style={sectionTitle}>Display Text (Manufacturing Consent)</h3>
+ <XDSVStack gap={2}>
+ <span
+ style={{
+ fontFamily: GOTHIC,
+ fontSize: 72,
+ fontWeight: 400,
+ lineHeight: 1.1,
+ }}>
+ Display 1
+ </span>
+ <span
+ style={{
+ fontFamily: GOTHIC,
+ fontSize: 56,
+ fontWeight: 400,
+ lineHeight: 1.15,
+ }}>
+ Display 2
+ </span>
+ <span
+ style={{
+ fontFamily: GOTHIC,
+ fontSize: 44,
+ fontWeight: 400,
+ lineHeight: 1.2,
+ }}>
+ Display 3
+ </span>
+ <span
+ style={{
+ fontFamily: GOTHIC,
+ fontSize: 36,
+ fontWeight: 400,
+ lineHeight: 1.25,
+ color: 'var(--color-text-secondary)',
+ marginTop: 12,
+ }}>
+ Little joys, everywhere you go
+ </span>
+ </XDSVStack>
+ </div>
+ );
+}
+
+export default function GothicPalettePage() {
+ return (
+ <ThemePalettePreview
+ theme={gothicTheme}
+ title="Gothic Theme Palette"
+ subtitle="Dark-only theme — deep blue-gray surfaces, distressed display heading, pastel categorical accents that glow against the dark page like illuminated panels."
+ tonalColors={TONAL_COLORS}
+ coreSwatches={CORE}
+ singleMode="dark"
+ leadingExtras={<DisplayTextSection />}
+ />
+ );
+}
diff --git a/apps/sandbox/src/app/layout.tsx b/apps/sandbox/src/app/layout.tsx
index 28ca633de2..b67b1f13f5 100644
--- a/apps/sandbox/src/app/layout.tsx
+++ b/apps/sandbox/src/app/layout.tsx
@@ -11,9 +11,15 @@ export default function RootLayout({children}: {children: React.ReactNode}) {
return (
<html lang="en">
<head>
+ <link rel="preconnect" href="https://fonts.googleapis.com" />
+ <link
+ rel="preconnect"
+ href="https://fonts.gstatic.com"
+ crossOrigin=""
+ />
<link
rel="stylesheet"
- href="https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700&family=Poppins:wght@400;500;600;700&family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap"
+ href="https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700&family=Poppins:wght@400;500;600;700&family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&family=Fustat:wght@400;500;600;700&family=Manufacturing+Consent&family=JetBrains+Mono:wght@400;500;600;700&display=swap"
/>
{/* Prevent PreviewShell toolbar flash when loaded inside an iframe.
Runs before paint so the toolbar is never visible in embed contexts. */}
diff --git a/apps/sandbox/src/app/sandboxPages.ts b/apps/sandbox/src/app/sandboxPages.ts
index 548b939f59..41a960e2e8 100644
--- a/apps/sandbox/src/app/sandboxPages.ts
+++ b/apps/sandbox/src/app/sandboxPages.ts
@@ -121,6 +121,12 @@ export const categories: SandboxCategory[] = [
description:
'Y2K pop theme — sharp corners, cream body, neon lime accent, Crimson Text display type',
},
+ {
+ name: 'Gothic Palette',
+ href: '/pages/gothic-palette/',
+ description:
+ 'Gothic dark-only theme — atmospheric blue-gray, distressed display heading, pastel categorical accents',
+ },
{
name: 'Color Studio',
href: '/pages/color-studio/',
diff --git a/apps/sandbox/src/components/ThemePalettePreview.tsx b/apps/sandbox/src/components/ThemePalettePreview.tsx
index 7d63e1b86e..b1e4d1db6c 100644
--- a/apps/sandbox/src/components/ThemePalettePreview.tsx
+++ b/apps/sandbox/src/components/ThemePalettePreview.tsx
@@ -194,6 +194,12 @@ export interface ThemePalettePreviewProps {
leadingExtras?: React.ReactNode;
/** Hide the title, subtitle, and tonal section (useful when embedded in another layout) */
componentPreviewOnly?: boolean;
+ /**
+ * Render only one mode column instead of side-by-side light + dark.
+ * Useful for single-mode themes (e.g. dark-only) where both columns
+ * would render identically.
+ */
+ singleMode?: Mode;
}
type Mode = 'light' | 'dark';
@@ -851,20 +857,37 @@ function ModeColumn({
coreSwatches,
extraSections,
leadingExtras,
+ bare = false,
}: {
theme: XDSDefinedTheme;
mode: Mode;
coreSwatches?: CoreSwatch[];
extraSections?: React.ReactNode;
leadingExtras?: React.ReactNode;
+ /**
+ * When true, render the column as a transparent layout container
+ * (no background, border, or padding) — the outer page provides the
+ * surface. Used by single-mode previews to avoid a redundant frame.
+ */
+ bare?: boolean;
}) {
+ const columnStyle: React.CSSProperties = bare
+ ? {
+ display: 'flex',
+ flexDirection: 'column',
+ gap: 28,
+ }
+ : S.modeCol(VAR_SURFACES.body, VAR_SURFACES.textPrimary);
+
return (
<XDSTheme theme={theme} mode={mode}>
<XDSLayerProvider>
- <div style={S.modeCol(VAR_SURFACES.body, VAR_SURFACES.textPrimary)}>
- <p style={S.modeLabel}>
- {mode === 'light' ? 'Light Mode' : 'Dark Mode'}
- </p>
+ <div style={columnStyle}>
+ {!bare && (
+ <p style={S.modeLabel}>
+ {mode === 'light' ? 'Light Mode' : 'Dark Mode'}
+ </p>
+ )}
{coreSwatches && coreSwatches.length > 0 && <CoreSection swatches={coreSwatches} />}
{leadingExtras}
<TextRampSection />
@@ -898,10 +921,27 @@ export function ThemePalettePreview({
extraSections,
leadingExtras,
componentPreviewOnly = false,
+ singleMode,
}: ThemePalettePreviewProps) {
- if (componentPreviewOnly) {
+ const columnsStyle: React.CSSProperties = singleMode
+ ? {display: 'block'}
+ : S.twoCol;
+
+ const renderColumns = () => {
+ if (singleMode) {
+ return (
+ <ModeColumn
+ theme={theme}
+ mode={singleMode}
+ coreSwatches={coreSwatches}
+ extraSections={extraSections}
+ leadingExtras={leadingExtras}
+ bare
+ />
+ );
+ }
return (
- <div style={S.twoCol}>
+ <>
<ModeColumn
theme={theme}
mode="light"
@@ -916,34 +956,27 @@ export function ThemePalettePreview({
extraSections={extraSections}
leadingExtras={leadingExtras}
/>
- </div>
+ </>
);
+ };
+
+ if (componentPreviewOnly) {
+ return <div style={columnsStyle}>{renderColumns()}</div>;
}
+ // Page chrome (title/subtitle/tonal) uses the singleMode when set so the
+ // outer surface matches the rendered theme; otherwise default to light.
+ const chromeMode: Mode = singleMode ?? 'light';
+
return (
- <XDSTheme theme={theme} mode="light">
+ <XDSTheme theme={theme} mode={chromeMode}>
<XDSLayerProvider>
<div style={{...S.page, margin: -0, position: 'relative', zIndex: 1}}>
<div style={S.inner}>
<h1 style={S.title}>{title}</h1>
<p style={S.subtitle}>{subtitle}</p>
<TonalSection colors={tonalColors} />
- <div style={S.twoCol}>
- <ModeColumn
- theme={theme}
- mode="light"
- coreSwatches={coreSwatches}
- extraSections={extraSections}
- leadingExtras={leadingExtras}
- />
- <ModeColumn
- theme={theme}
- mode="dark"
- coreSwatches={coreSwatches}
- extraSections={extraSections}
- leadingExtras={leadingExtras}
- />
- </div>
+ <div style={columnsStyle}>{renderColumns()}</div>
</div>
</div>
</XDSLayerProvider>
diff --git a/packages/themes/gothic/README.md b/packages/themes/gothic/README.md
index 77018bd58c..ace3fb803b 100644
--- a/packages/themes/gothic/README.md
+++ b/packages/themes/gothic/README.md
@@ -1,6 +1,8 @@
# @xds/theme-gothic
-Dark gothic theme with deep blue-gray tones and blackletter headings. Uses Manufacturing Consent for headings, Fustat for body text, and [Lucide](https://lucide.dev) icons.
+**Dark-only** atmospheric gothic theme for XDS — deep blue-gray surfaces, distressed display heading, and pastel categorical accents that glow against the dark page like illuminated panels. Uses Manufacturing Consent for headings, Fustat for body text, and [Lucide](https://lucide.dev) icons.
+
+> Gothic is a single-mode theme — it always renders dark, regardless of the user's system color preference. For best browser-chrome integration (scrollbars, native form controls), pass `mode="dark"` to your `XDSTheme` provider.
## Install
@@ -17,7 +19,11 @@ import {XDSTheme} from '@xds/core/theme';
import {gothicTheme} from '@xds/theme-gothic/built';
function App() {
- return <XDSTheme theme={gothicTheme}>{/* your app */}</XDSTheme>;
+ return (
+ <XDSTheme theme={gothicTheme} mode="dark">
+ {/* your app */}
+ </XDSTheme>
+ );
}
```
@@ -39,15 +45,31 @@ Add the theme CSS to your stylesheet:
@import '@xds/theme-gothic/theme.css';
```
+## Aesthetic
+
+Gothic is dark-only by design — every token is a single value, and the
+output CSS contains no `light-dark()`, so the theme renders identically
+whether the user prefers light or dark.
+
+| Aspect | Choice |
+| ------------ | ------------------------------------------------------ |
+| Mode | Dark only — no light variant |
+| Neutral | Cool blue-gray (#101314 → #E8F1F6) |
+| Status | Forest moss, blood crimson, candlelight amber |
+| Categorical | Pastel-on-dark — light backgrounds, dark text |
+| Radius | Subtle rounding (2–24px) |
+| Motion | Slower / theatrical (150ms → 800ms, 0.75 ratio) |
+| Type scale | 14px base, 1.2 ratio |
+
## Fonts
This theme uses custom typefaces:
-| Role | Font |
-| ------- | --------------------- |
-| Body | Fustat |
-| Heading | Manufacturing Consent |
-| Code | JetBrains Mono |
+| Role | Font | Vibe |
+| ------- | --------------------- | -------------------------- |
+| Body | Fustat | Clean modern sans |
+| Heading | Manufacturing Consent | Distressed display |
+| Code | JetBrains Mono | Crisp, monospaced |
**These fonts must be loaded separately.** The theme references them by name but does not bundle the font files.
@@ -61,4 +83,22 @@ Add this to your HTML `<head>`:
href="https://fonts.googleapis.com/css2?family=Fustat:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&family=Manufacturing+Consent&display=swap" />
```
-Without this, the theme falls back to system fonts.
+Without this, the theme falls back to system fonts (heading falls through Manufacturing Consent → UnifrakturMaguntia → Old English Text MT → serif).
+
+## Tonal palettes
+
+The theme exports raw tonal palettes for custom components or data
+visualization. Each palette has 21 tone steps (0–100 in 5s):
+
+```tsx
+import {gothicPalettes} from '@xds/theme-gothic';
+
+// e.g. cathedral plum at tone 50
+const plum = gothicPalettes.purple[50]; // '#a363bd'
+
+// or use the metadata for derived tools
+const {hue, chroma} = gothicPalettes.neutral; // {hue: 210, chroma: 4}
+```
+
+Available palettes: `neutral`, `blue`, `cyan`, `green`, `orange`, `pink`,
+`purple`, `red`, `teal`, `yellow`.
diff --git a/packages/themes/gothic/src/gothicTheme.ts b/packages/themes/gothic/src/gothicTheme.ts
index 220c38f6e0..ce67ef7cad 100644
--- a/packages/themes/gothic/src/gothicTheme.ts
+++ b/packages/themes/gothic/src/gothicTheme.ts
@@ -1,32 +1,43 @@
/**
- * Gothic Theme
+ * Gothic Theme — dark only
+ *
+ * A dark-only theme with deep blue-gray tones and a distressed display
+ * heading. Inspired by ink, manuscript, and noir typography.
*
- * A dark-first theme with deep blue-gray tones and blackletter headings.
* Core palette: #E8F1F6, #96A0AB, #495056, #24292D, #101314
+ * Categorical colors follow a pastel-on-dark pattern (light backgrounds
+ * with dark text) — same in any system color preference.
+ *
* Uses Manufacturing Consent for headings and Fustat for body text.
*/
import {defineTheme, defineSyntaxTheme} from '@xds/core/theme';
import {gothicIconRegistry} from './icons';
-/** Gothic syntax palette — cool, muted tones for dark backgrounds. */
+/**
+ * Gothic syntax palette — atmospheric tones drawn from the gothic
+ * categorical palette: deep purples (cathedral), blood crimson (tags),
+ * aged gold (numbers), forest moss (strings), midnight indigo (functions).
+ *
+ * Single values (no tuples) since this is a dark-only theme.
+ */
const gothicSyntax = defineSyntaxTheme({
name: 'xds-gothic',
tokens: {
- keyword: ['#7c3aed', '#a78bfa'],
- string: ['#16653a', '#6ee7a0'],
- comment: ['#495056', '#495056'],
- number: ['#b45309', '#fbbf24'],
- function: ['#2563eb', '#60a5fa'],
- type: ['#7c3aed', '#c4b5fd'],
- variable: ['#101314', '#E8F1F6'],
- operator: ['#495056', '#96A0AB'],
- constant: ['#b45309', '#fbbf24'],
- tag: ['#dc2626', '#fca5a5'],
- attribute: ['#a16207', '#fde68a'],
- property: ['#0d9488', '#5eead4'],
- punctuation: ['#96A0AB', '#495056'],
- background: ['#f8f9fa', '#101314'],
+ keyword: '#c39adb', // Cathedral plum
+ string: '#a3c987', // Forest moss
+ comment: '#6b7079', // Faded ink
+ number: '#dec074', // Aged gold
+ function: '#8aa1d8', // Midnight indigo
+ type: '#c39adb', // Cathedral plum
+ variable: '#E8F1F6', // Parchment
+ operator: '#96A0AB', // Mid neutral
+ constant: '#e6b85e', // Candlelight amber
+ tag: '#d97580', // Blood crimson
+ attribute: '#dec074', // Aged gold
+ property: '#7cc5b3', // Verdigris
+ punctuation: '#7a8290', // Mid neutral
+ background: '#101314',
},
});
@@ -40,10 +51,12 @@ export const gothicTheme = defineTheme({
fallbacks:
'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif',
},
+ // Headings (h1-h6) use Fustat to match the body — Manufacturing Consent
+ // is reserved for display sizes only (see component overrides below).
heading: {
- family: 'Manufacturing Consent',
+ family: 'Fustat',
fallbacks:
- '"UnifrakturMaguntia", "Old English Text MT", serif',
+ '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif',
weights: {3: 'bold', 4: 'bold'},
},
code: {
@@ -52,129 +65,138 @@ export const gothicTheme = defineTheme({
},
},
- motion: {fast: 125, medium: 300, slow: 700, ratio: 0.75},
+ // Slower, theatrical motion — gothic doesn't rush.
+ motion: {fast: 150, medium: 350, slow: 800, ratio: 0.75},
syntax: gothicSyntax,
tokens: {
// =========================================================================
- // Colors — dark gothic palette
+ // Colors — gothic dark palette (single values, dark-only)
// Core: #E8F1F6, #96A0AB, #495056, #24292D, #101314
// =========================================================================
// Core semantic
- '--color-accent': ['#24292D', '#E8F1F6'],
- '--color-accent-muted': ['#24292D14', '#E8F1F620'],
- '--color-neutral': ['#24292D0F', '#E8F1F61A'],
- '--color-background-surface': ['#FFFFFF', '#101314'],
- '--color-background-body': ['#f0f3f5', '#101314'],
- '--color-overlay': ['#10131480', '#101314CC'],
- '--color-overlay-hover': ['#1013140D', '#E8F1F60D'],
- '--color-overlay-pressed': ['#1013141A', '#E8F1F61A'],
- '--color-background-muted': ['#f0f3f5', '#24292D'],
+ '--color-accent': '#E8F1F6',
+ '--color-accent-muted': '#E8F1F620',
+ '--color-neutral': '#E8F1F61A',
+ '--color-background-surface': '#101314',
+ '--color-background-body': '#101314',
+ '--color-overlay': '#101314CC',
+ '--color-overlay-hover': '#E8F1F60D',
+ '--color-overlay-pressed': '#E8F1F61A',
+ '--color-background-muted': '#24292D',
// Text
- '--color-text-primary': ['#101314', '#E8F1F6'],
- '--color-text-secondary': ['#495056', '#96A0AB'],
- '--color-text-disabled': ['#96A0AB', '#495056'],
- '--color-text-accent': ['#24292D', '#E8F1F6'],
+ '--color-text-primary': '#E8F1F6',
+ '--color-text-secondary': '#96A0AB',
+ '--color-text-disabled': '#495056',
+ '--color-text-accent': '#E8F1F6',
'--color-on-dark': '#E8F1F6',
'--color-on-light': '#101314',
- '--color-on-accent': ['#FFFFFF', '#101314'],
- '--color-on-success': ['#FFFFFF', '#101314'],
- '--color-on-error': ['#FFFFFF', '#101314'],
- '--color-on-warning': ['#101314', '#101314'],
+ '--color-on-accent': '#101314',
+ '--color-on-success': '#101314',
+ '--color-on-error': '#101314',
+ '--color-on-warning': '#101314',
// Icon
- '--color-icon-accent': ['#24292D', '#E8F1F6'],
- '--color-icon-primary': ['#101314', '#E8F1F6'],
- '--color-icon-secondary': ['#495056', '#96A0AB'],
- '--color-icon-disabled': ['#96A0AB', '#495056'],
+ '--color-icon-accent': '#E8F1F6',
+ '--color-icon-primary': '#E8F1F6',
+ '--color-icon-secondary': '#96A0AB',
+ '--color-icon-disabled': '#495056',
// Surface variants
- '--color-background-card': ['#FFFFFF', '#24292D'],
- '--color-background-popover': ['#FFFFFF', '#24292D'],
- '--color-background-inverted': ['#101314', '#E8F1F6'],
-
- // Status / Sentiment
- '--color-success': ['#4D9900', '#6dbf2a'],
- '--color-success-muted': ['#4D990020', '#6dbf2a20'],
- '--color-error': ['#FD0000', '#ff5c5c'],
- '--color-error-muted': ['#FD000020', '#ff5c5c20'],
- '--color-warning': ['#FFB600', '#ffc940'],
- '--color-warning-muted': ['#FFB60020', '#ffc94020'],
+ '--color-background-card': '#1a1d20',
+ '--color-background-popover': '#24292D',
+ '--color-background-inverted': '#E8F1F6',
+
+ // Status / Sentiment — dusty pastels matching the categorical
+ // pattern. Used for status surfaces, destructive button bg, etc.
+ '--color-success': '#b3c79a', // sage moss
+ '--color-success-muted': '#b3c79a',
+ '--color-error': '#c6a6a2', // dusty rose
+ '--color-error-muted': '#c6a6a2',
+ '--color-warning': '#d3c490', // aged gold
+ '--color-warning-muted': '#d3c490',
// Border
- '--color-border': ['#E8F1F6', '#E8F1F61A'],
- '--color-border-emphasized': ['#96A0AB', '#495056'],
+ '--color-border': '#E8F1F61A',
+ '--color-border-emphasized': '#495056',
// Effects
- '--color-skeleton': ['#96A0AB', '#495056'],
- '--color-shadow': ['#1013141A', '#0000004D'],
- '--color-tint-hover': ['black', 'white'],
-
- // Categorical — Blue
- '--color-background-blue': ['#2563eb33', '#60a5fa33'],
- '--color-border-blue': ['#2563eb', '#60a5fa'],
- '--color-icon-blue': ['#2563eb', '#60a5fa'],
- '--color-text-blue': ['#1d4ed8', '#93c5fd'],
-
- // Categorical — Cyan
- '--color-background-cyan': ['#0891b233', '#22d3ee33'],
- '--color-border-cyan': ['#0891b2', '#22d3ee'],
- '--color-icon-cyan': ['#0891b2', '#22d3ee'],
- '--color-text-cyan': ['#0e7490', '#67e8f9'],
-
- // Categorical — Gray
- '--color-background-gray': ['#49505633', '#49505633'],
- '--color-border-gray': ['#495056', '#96A0AB'],
- '--color-icon-gray': ['#495056', '#96A0AB'],
- '--color-text-gray': ['#101314', '#E8F1F6'],
-
- // Categorical — Green
- '--color-background-green': ['#4D990033', '#6dbf2a33'],
- '--color-border-green': ['#4D9900', '#6dbf2a'],
- '--color-icon-green': ['#4D9900', '#6dbf2a'],
- '--color-text-green': ['#3d7a00', '#80d43a'],
-
- // Categorical — Orange
- '--color-background-orange': ['#ea580c33', '#fb923c33'],
- '--color-border-orange': ['#ea580c', '#fb923c'],
- '--color-icon-orange': ['#ea580c', '#fb923c'],
- '--color-text-orange': ['#c2410c', '#fdba74'],
-
- // Categorical — Pink
- '--color-background-pink': ['#db277833', '#f472b633'],
- '--color-border-pink': ['#db2778', '#f472b6'],
- '--color-icon-pink': ['#db2778', '#f472b6'],
- '--color-text-pink': ['#be185d', '#f9a8d4'],
-
- // Categorical — Purple
- '--color-background-purple': ['#7c3aed33', '#a78bfa33'],
- '--color-border-purple': ['#7c3aed', '#a78bfa'],
- '--color-icon-purple': ['#7c3aed', '#a78bfa'],
- '--color-text-purple': ['#6d28d9', '#c4b5fd'],
-
- // Categorical — Red
- '--color-background-red': ['#FD000033', '#ff5c5c33'],
- '--color-border-red': ['#FD0000', '#ff5c5c'],
- '--color-icon-red': ['#FD0000', '#ff5c5c'],
- '--color-text-red': ['#cc0000', '#ff7a7a'],
-
- // Categorical — Teal
- '--color-background-teal': ['#0d948833', '#5eead433'],
- '--color-border-teal': ['#0d9488', '#5eead4'],
- '--color-icon-teal': ['#0d9488', '#5eead4'],
- '--color-text-teal': ['#0f766e', '#99f6e4'],
-
- // Categorical — Yellow
- '--color-background-yellow': ['#FFB60033', '#ffc94033'],
- '--color-border-yellow': ['#FFB600', '#ffc940'],
- '--color-icon-yellow': ['#FFB600', '#ffc940'],
- '--color-text-yellow': ['#cc9200', '#ffd960'],
+ '--color-skeleton': '#495056',
+ '--color-shadow': '#0000004D',
+ '--color-tint-hover': 'white',
// =========================================================================
- // Radius — subtle rounding
+ // Categorical — dusty pastel-on-dark pattern
+ // Hand-tuned dusty pastels (T75 with reduced chroma) — confident
+ // but never bright. Neutral is a dark slate with white text — the
+ // "no-color" variant earns its hierarchy by matching the page mood.
+ // =========================================================================
+
+ // Blue (periwinkle midnight)
+ '--color-background-blue': '#a3b5d6',
+ '--color-border-blue': '#8696b8',
+ '--color-icon-blue': '#2a3b6e',
+ '--color-text-blue': '#1f2c54',
+
+ // Cyan (cathedral mist)
+ '--color-background-cyan': '#a3c2cf',
+ '--color-border-cyan': '#86a4b1',
+ '--color-icon-cyan': '#2a5e75',
+ '--color-text-cyan': '#204858',
+
+ // Gray (dark slate — special: dark bg + light text)
+ '--color-background-gray': '#3d4248',
+ '--color-border-gray': '#5d646b',
+ '--color-icon-gray': '#E8F1F6',
+ '--color-text-gray': '#E8F1F6',
+
+ // Green (sage moss)
+ '--color-background-green': '#b3c79a',
+ '--color-border-green': '#96a880',
+ '--color-icon-green': '#3a5e2c',
+ '--color-text-green': '#244023',
+
+ // Orange (warm tan)
+ '--color-background-orange': '#d3b89a',
+ '--color-border-orange': '#b6987d',
+ '--color-icon-orange': '#8a4818',
+ '--color-text-orange': '#6e3812',
+
+ // Pink (dusty rose)
+ '--color-background-pink': '#c89aab',
+ '--color-border-pink': '#aa7d8e',
+ '--color-icon-pink': '#8d2d4c',
+ '--color-text-pink': '#71223c',
+
+ // Purple (muted plum)
+ '--color-background-purple': '#b29bc4',
+ '--color-border-purple': '#947da6',
+ '--color-icon-purple': '#5a2370',
+ '--color-text-purple': '#481b58',
+
+ // Red (dusty rose)
+ '--color-background-red': '#c6a6a2',
+ '--color-border-red': '#a48581',
+ '--color-icon-red': '#5e3a35',
+ '--color-text-red': '#4a2520',
+
+ // Teal (sage verdigris)
+ '--color-background-teal': '#a3c2b6',
+ '--color-border-teal': '#86a499',
+ '--color-icon-teal': '#1f5e52',
+ '--color-text-teal': '#174a40',
+
+ // Yellow (aged gold)
+ '--color-background-yellow': '#d3c490',
+ '--color-border-yellow': '#b6a775',
+ '--color-icon-yellow': '#876515',
+ '--color-text-yellow': '#6c5010',
+
+ // =========================================================================
+ // Radius — subtle rounding (original gothic)
// =========================================================================
'--radius-none': '0.125rem',
'--radius-inner': '0.25rem',
@@ -184,36 +206,148 @@ export const gothicTheme = defineTheme({
'--radius-full': '9999px',
// =========================================================================
- // Shadows — cool-toned
+ // Shadows — restrained, atmospheric
// =========================================================================
'--shadow-low':
- '0 2px 4px #1013140D, 0 4px 8px #1013141A',
+ '0 2px 4px #00000033, 0 4px 8px #00000040',
'--shadow-med':
- '0 2px 4px #1013140D, 0 4px 12px #1013141A',
+ '0 2px 4px #00000033, 0 4px 12px #00000040',
'--shadow-high':
- '0 4px 6px #1013141A, 0 12px 24px #10131426',
- '--shadow-inset-hover': 'inset 0px 0px 0px 2px #96A0AB30',
+ '0 4px 6px #00000040, 0 12px 24px #0000004D',
+ '--shadow-inset-hover': 'inset 0px 0px 0px 1px #96A0AB30',
'--shadow-inset-selected': 'inset 0px 0px 0px 2px #96A0AB50',
- '--shadow-inset-success': 'inset 0px 0px 0px 2px #4D990050',
- '--shadow-inset-warning': 'inset 0px 0px 0px 2px #FFB60050',
- '--shadow-inset-error': 'inset 0px 0px 0px 2px #FD000050',
+ '--shadow-inset-success': 'inset 0px 0px 0px 1px #87b06a50',
+ '--shadow-inset-warning': 'inset 0px 0px 0px 1px #d6b56a50',
+ '--shadow-inset-error': 'inset 0px 0px 0px 1px #d4485150',
},
components: {
button: {
+ // Primary inherits default — light pill with dark text via
+ // --color-accent / --color-on-accent (matches the cream badge).
+ // Secondary uses the dark-slate "neutral" badge treatment.
+ 'variant:secondary': {
+ backgroundColor: 'var(--color-background-gray)',
+ color: 'var(--color-text-gray)',
+ borderColor: 'transparent',
+ borderWidth: '0',
+ },
+ 'variant:ghost': {
+ ':hover': {
+ backgroundColor: 'var(--color-overlay-hover)',
+ },
+ },
+ // Destructive uses the dusty rose bg with dark warm-brown text
+ // (matches the red badge).
+ 'variant:destructive': {
+ backgroundColor: 'var(--color-error)',
+ color: 'var(--color-text-red)',
+ },
+ },
+
+ badge: {
base: {
- borderRadius: 'var(--radius-full)',
+ borderRadius: 'var(--radius-element)',
+ fontWeight: 'var(--font-weight-medium)',
},
- 'variant:secondary': {
- borderWidth: '1px',
- borderStyle: 'solid',
- borderColor: 'var(--color-border-emphasized)',
+ 'variant:info': {
+ backgroundColor: 'var(--color-background-blue)',
+ color: 'var(--color-text-blue)',
+ },
+ 'variant:neutral': {
+ backgroundColor: 'var(--color-background-gray)',
+ color: 'var(--color-text-gray)',
+ },
+ 'variant:success': {
+ backgroundColor: 'var(--color-background-green)',
+ color: 'var(--color-text-green)',
+ },
+ 'variant:warning': {
+ backgroundColor: 'var(--color-background-yellow)',
+ color: 'var(--color-text-yellow)',
+ },
+ 'variant:error': {
+ backgroundColor: 'var(--color-background-red)',
+ color: 'var(--color-text-red)',
+ },
+ },
+
+ banner: {
+ base: {
+ borderRadius: 'var(--radius-element)',
+ },
+ 'status:info': {
+ backgroundColor: 'var(--color-background-blue)',
+ '--color-text-primary': 'var(--color-text-blue)',
+ '--color-text-secondary': 'var(--color-text-blue)',
+ '--color-accent': 'var(--color-text-blue)',
+ },
+ 'status:success': {
+ backgroundColor: 'var(--color-background-green)',
+ '--color-text-primary': 'var(--color-text-green)',
+ '--color-text-secondary': 'var(--color-text-green)',
+ '--color-success': 'var(--color-text-green)',
+ },
+ 'status:warning': {
+ backgroundColor: 'var(--color-background-yellow)',
+ '--color-text-primary': 'var(--color-text-yellow)',
+ '--color-text-secondary': 'var(--color-text-yellow)',
+ '--color-warning': 'var(--color-text-yellow)',
+ },
+ 'status:error': {
+ backgroundColor: 'var(--color-background-red)',
+ '--color-text-primary': 'var(--color-text-red)',
+ '--color-text-secondary': 'var(--color-text-red)',
+ '--color-error': 'var(--color-text-red)',
},
},
card: {
base: {
padding: 'var(--spacing-3)',
+ borderRadius: 'var(--radius-container)',
+ },
+ // Categorical variants — flip --color-text-primary so child
+ // XDSText labels stay readable against the dusty pastel bg.
+ 'variant:blue': {
+ '--color-text-primary': 'var(--color-text-blue)',
+ '--color-text-secondary': 'var(--color-text-blue)',
+ },
+ 'variant:cyan': {
+ '--color-text-primary': 'var(--color-text-cyan)',
+ '--color-text-secondary': 'var(--color-text-cyan)',
+ },
+ 'variant:gray': {
+ '--color-text-primary': 'var(--color-text-gray)',
+ '--color-text-secondary': 'var(--color-text-gray)',
+ },
+ 'variant:green': {
+ '--color-text-primary': 'var(--color-text-green)',
+ '--color-text-secondary': 'var(--color-text-green)',
+ },
+ 'variant:orange': {
+ '--color-text-primary': 'var(--color-text-orange)',
+ '--color-text-secondary': 'var(--color-text-orange)',
+ },
+ 'variant:pink': {
+ '--color-text-primary': 'var(--color-text-pink)',
+ '--color-text-secondary': 'var(--color-text-pink)',
+ },
+ 'variant:purple': {
+ '--color-text-primary': 'var(--color-text-purple)',
+ '--color-text-secondary': 'var(--color-text-purple)',
+ },
+ 'variant:red': {
+ '--color-text-primary': 'var(--color-text-red)',
+ '--color-text-secondary': 'var(--color-text-red)',
+ },
+ 'variant:teal': {
+ '--color-text-primary': 'var(--color-text-teal)',
+ '--color-text-secondary': 'var(--color-text-teal)',
+ },
+ 'variant:yellow': {
+ '--color-text-primary': 'var(--color-text-yellow)',
+ '--color-text-secondary': 'var(--color-text-yellow)',
},
},
@@ -222,7 +356,131 @@ export const gothicTheme = defineTheme({
padding: 'var(--spacing-3)',
},
},
+
+ field: {
+ base: {
+ borderRadius: 'var(--radius-element)',
+ },
+ },
+
+ // Display sizes use Manufacturing Consent — the signature gothic
+ // display font, reserved for hero/marketing-scale text only.
+ text: {
+ 'type:display-1': {
+ fontFamily:
+ '"Manufacturing Consent", "UnifrakturMaguntia", "Old English Text MT", serif',
+ },
+ 'type:display-2': {
+ fontFamily:
+ '"Manufacturing Consent", "UnifrakturMaguntia", "Old English Text MT", serif',
+ },
+ 'type:display-3': {
+ fontFamily:
+ '"Manufacturing Consent", "UnifrakturMaguntia", "Old English Text MT", serif',
+ },
+ },
},
icons: gothicIconRegistry,
});
+
+/**
+ * Raw tonal palettes — every color at every tone step (0–100 in 5s).
+ * Use these for custom components or data visualization.
+ *
+ * Categorical hues (blue, green, etc.) follow gothic gem-tone hues.
+ * Neutral mirrors the original gothic blue-gray palette (H≈210).
+ */
+export const gothicPalettes = {
+ // Neutral — H=210 C=4 (cool blue-gray, original gothic)
+ neutral: {
+ hue: 210, chroma: 4,
+ 0: '#000000', 5: '#0a0d0f', 10: '#101314', 15: '#181c1f', 20: '#24292D',
+ 25: '#2c3236', 30: '#363c40', 35: '#40464b', 40: '#495056', 45: '#535a61',
+ 50: '#5d646b', 55: '#676f76', 60: '#727a82', 65: '#7e8690', 70: '#8a929c',
+ 75: '#96A0AB', 80: '#a8b1bb', 85: '#bbc3cb', 90: '#cdd5db', 95: '#E8F1F6',
+ 100: '#ffffff',
+ },
+ // Blue — H=255 C=20 (midnight indigo)
+ blue: {
+ hue: 255, chroma: 20,
+ 0: '#000000', 5: '#050930', 10: '#0c143f', 15: '#161e4d', 20: '#1f2c54',
+ 25: '#2a3565', 30: '#2a3b6e', 35: '#3a4783', 40: '#475497', 45: '#5462ab',
+ 50: '#6170bf', 55: '#6a85cf', 60: '#7793d6', 65: '#8aa1d8', 70: '#a3b5e0',
+ 75: '#b6c5e7', 80: '#c4d1ec', 85: '#d2dcef', 90: '#dde2f1', 95: '#e8ecf6',
+ 100: '#ffffff',
+ },
+ // Cyan — H=200 C=25 (cathedral mist)
+ cyan: {
+ hue: 200, chroma: 25,
+ 0: '#000000', 5: '#001724', 10: '#062436', 15: '#0d3046', 20: '#204858',
+ 25: '#1c4a66', 30: '#2a5e75', 35: '#3a6e85', 40: '#487d94', 45: '#598ea3',
+ 50: '#6a9eb1', 55: '#7ab0c0', 60: '#8cc3d8', 65: '#a0cce0', 70: '#b1d3e5',
+ 75: '#bcdaeb', 80: '#c5dfee', 85: '#cbe4f0', 90: '#d6e6ee', 95: '#e3eef3',
+ 100: '#ffffff',
+ },
+ // Green — H=140 C=18 (forest moss)
+ green: {
+ hue: 140, chroma: 18,
+ 0: '#000000', 5: '#0c1a08', 10: '#152511', 15: '#1c321a', 20: '#2c4a20',
+ 25: '#2c4d2a', 30: '#3a5e2c', 35: '#446a39', 40: '#557c44', 45: '#658d50',
+ 50: '#779e5d', 55: '#87b06a', 60: '#96bd76', 65: '#a3c987', 70: '#b5d397',
+ 75: '#bdd99e', 80: '#c8e0ad', 85: '#d4e6bd', 90: '#dde6d4', 95: '#eaf3df',
+ 100: '#ffffff',
+ },
+ // Orange — H=40 C=35 (rust copper)
+ orange: {
+ hue: 40, chroma: 35,
+ 0: '#000000', 5: '#1f0d00', 10: '#2c1606', 15: '#3a200d', 20: '#6e3812',
+ 25: '#5a371a', 30: '#8a4818', 35: '#9a5824', 40: '#a05728', 45: '#b66839',
+ 50: '#c87a4a', 55: '#d6905a', 60: '#dca275', 65: '#e1b288', 70: '#e8b894',
+ 75: '#ebbf9d', 80: '#eecfb5', 85: '#efddcd', 90: '#f3e5d8', 95: '#f9eee5',
+ 100: '#ffffff',
+ },
+ // Pink — H=345 C=22 (rose madder)
+ pink: {
+ hue: 345, chroma: 22,
+ 0: '#000000', 5: '#22060e', 10: '#2e0c16', 15: '#3a131e', 20: '#71223c',
+ 25: '#572235', 30: '#8d2d4c', 35: '#9b3358', 40: '#a04563', 45: '#a04a6e',
+ 50: '#b15876', 55: '#c26988', 60: '#cf7593', 65: '#d56891', 70: '#dc82a4',
+ 75: '#e094b1', 80: '#e7a5be', 85: '#ebb6ca', 90: '#eed6df', 95: '#f5e3eb',
+ 100: '#ffffff',
+ },
+ // Purple — H=290 C=30 (cathedral plum)
+ purple: {
+ hue: 290, chroma: 30,
+ 0: '#000000', 5: '#1e0c25', 10: '#2a1334', 15: '#371b43', 20: '#481b58',
+ 25: '#502163', 30: '#5a2370', 35: '#6e3088', 40: '#82409c', 45: '#9352ad',
+ 50: '#a363bd', 55: '#b06ec9', 60: '#bb7cd1', 65: '#c084d6', 70: '#c692db',
+ 75: '#cd9be0', 80: '#d2a3df', 85: '#dab3e6', 90: '#e6daee', 95: '#f0e6f4',
+ 100: '#ffffff',
+ },
+ // Red — H=15 C=12 (dusty rose) — gothic uses a desaturated rose
+ // family rather than vibrant crimson; #c6a6a2 sits near T80.
+ red: {
+ hue: 15, chroma: 12,
+ 0: '#000000', 5: '#1c0d09', 10: '#26140f', 15: '#301b16', 20: '#3a231d',
+ 25: '#452c25', 30: '#50352d', 35: '#5b3e36', 40: '#66483e', 45: '#725347',
+ 50: '#7d5e51', 55: '#896a5b', 60: '#957565', 65: '#a18170', 70: '#ad8d7b',
+ 75: '#b99a87', 80: '#c6a6a2', 85: '#d2b4af', 90: '#dec2bc', 95: '#ebd0ca',
+ 100: '#ffffff',
+ },
+ // Teal — H=170 C=20 (verdigris)
+ teal: {
+ hue: 170, chroma: 20,
+ 0: '#000000', 5: '#001b14', 10: '#062821', 15: '#0d3530', 20: '#174a40',
+ 25: '#194e44', 30: '#1f5e52', 35: '#2c6c5f', 40: '#3a7b6c', 45: '#498a7a',
+ 50: '#5aa091', 55: '#5db5a3', 60: '#6cbeab', 65: '#7cc5b3', 70: '#90d0c0',
+ 75: '#9fd4c5', 80: '#b1ddcf', 85: '#c0e1d6', 90: '#d4e7e2', 95: '#e1efe9',
+ 100: '#ffffff',
+ },
+ // Yellow — H=80 C=40 (aged gold)
+ yellow: {
+ hue: 80, chroma: 40,
+ 0: '#000000', 5: '#2c1d00', 10: '#3a2900', 15: '#4a3500', 20: '#6c5010',
+ 25: '#6c5010', 30: '#876515', 35: '#9c7b1f', 40: '#b18e2f', 45: '#c39e3e',
+ 50: '#cca74c', 55: '#d6b56a', 60: '#dec074', 65: '#e2c884', 70: '#e6d091',
+ 75: '#e9d29a', 80: '#ebd9a7', 85: '#ebe1c4', 90: '#f0e8d6', 95: '#f7f1e3',
+ 100: '#ffffff',
+ },
+} as const;
diff --git a/packages/themes/gothic/src/source.ts b/packages/themes/gothic/src/source.ts
index 343ad91f20..8821e2c9b8 100644
--- a/packages/themes/gothic/src/source.ts
+++ b/packages/themes/gothic/src/source.ts
@@ -1,2 +1,2 @@
-export {gothicTheme} from './gothicTheme';
+export {gothicTheme, gothicPalettes} from './gothicTheme';
export {gothicIconRegistry} from './icons';