Repository navigation
Expand file tree
/
Copy pathtailwind.config.js
More file actions
69 lines (64 loc) · 3.18 KB
/
Copy pathtailwind.config.js
File metadata and controls
69 lines (64 loc) · 3.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/** @type {import('tailwindcss').Config} */
export default {
content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}'],
theme: {
fontFamily: {
sans: ['Plus Jakarta Sans Variable', 'Plus Jakarta Sans', 'sans-serif'],
heading: ['Besley Variable', 'Besley', 'serif'],
body: ['Plus Jakarta Sans Variable', 'Plus Jakarta Sans', 'sans-serif'],
mono: ['ui-monospace', 'SFMono-Regular', 'monospace'],
},
extend: {
colors: {
// ar.io brand colors (light mode)
primary: 'rgb(var(--color-primary) / <alpha-value>)',
'primary-foreground': 'rgb(var(--color-card) / <alpha-value>)', // Text on primary backgrounds
lavender: 'rgb(var(--color-lavender) / <alpha-value>)',
foreground: 'rgb(var(--color-foreground) / <alpha-value>)',
background: 'rgb(var(--color-background) / <alpha-value>)',
card: 'rgb(var(--color-card) / <alpha-value>)',
border: 'rgb(var(--color-border) / <alpha-value>)',
'code-surface': 'rgb(var(--color-code-surface) / <alpha-value>)', // Code block backgrounds
// Legacy mappings for gradual migration (will be removed)
// These map old token names to new values for compatibility
page: 'rgb(var(--color-background) / <alpha-value>)',
canvas: 'rgb(var(--color-card) / <alpha-value>)',
surface: 'rgb(var(--color-background) / <alpha-value>)',
'surface-elevated': 'rgb(var(--color-card) / <alpha-value>)',
'header-bg': 'rgb(var(--color-background) / <alpha-value>)',
default: 'rgb(var(--color-border) / <alpha-value>)',
'fg-muted': 'rgb(var(--color-foreground) / <alpha-value>)',
link: 'rgb(var(--color-foreground) / 0.8)',
// Status colors (semantic colors with opacity support)
error: 'rgb(var(--color-error) / <alpha-value>)',
success: 'rgb(var(--color-success) / <alpha-value>)',
warning: 'rgb(var(--color-warning) / <alpha-value>)',
info: 'rgb(var(--color-info) / <alpha-value>)',
// Extended brand palette (brand kit 2026-08-07)
'deep-dark': 'rgb(var(--color-deep-dark) / <alpha-value>)',
'accent-lavender': 'rgb(var(--color-accent-lavender) / <alpha-value>)',
'lavender-wash': 'rgb(var(--color-lavender-wash) / <alpha-value>)',
'warm-neutral': 'rgb(var(--color-warm-neutral) / <alpha-value>)',
'subtle-border': 'rgb(var(--color-subtle-border) / <alpha-value>)',
},
/*
* Brand radii. The kit specifies cards at 20-24px, large panels at 2rem,
* framed heroes at 2.5rem, pills at 9999px. `rounded-2xl` is this app's
* de-facto card radius (540+ usages), so it is redefined from Tailwind's
* default 16px to 20px — the bottom of the brand range — which brings
* every existing card into spec without touching 540 call sites.
*/
borderRadius: {
'2xl': '1.25rem', // 20px - cards (overrides Tailwind's 1rem)
'3xl': '1.5rem', // 24px - top of the brand card range
panel: '2rem', // 32px - large panels
hero: '2.5rem', // 40px - framed hero frames
},
// Brand site rail.
maxWidth: {
site: '1400px',
},
},
},
plugins: [],
};