-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.js
More file actions
177 lines (165 loc) · 7.04 KB
/
tailwind.config.js
File metadata and controls
177 lines (165 loc) · 7.04 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
/** @type {import('tailwindcss').Config} */
module.exports = {
darkMode: 'class',
content: ['./src/**/*.{html,ts}'],
theme: {
extend: {
screens: {
desk: '940px',
},
colors: {
// ── Surfaces ──────────────────────────────────────────────────────────
background: '#000000',
surface: '#0a0a0a',
'surface-dim': '#111111',
'surface-bright': '#1a1a1a',
'surface-container-lowest': '#000000',
'surface-container-low': '#0a0a0a',
'surface-container': '#111111',
'surface-container-high': '#1a1a1a',
'surface-container-highest': '#222222',
// ── Type ──────────────────────────────────────────────────────────────
'on-surface': '#ffffff',
'on-surface-variant': '#a3a3a3',
outline: '#737373',
'outline-variant': '#2a2a2a',
// ── Borders ───────────────────────────────────────────────────────────
border: '#1a1a1a',
'border-mid': '#2a2a2a',
'border-hi': '#404040',
// ── Kept as semantic aliases (used widely in templates) ───────────────
// neon → white (primary interactive highlight)
neon: '#ffffff',
'neon-bright': '#e5e5e5',
'neon-dim': '#a3a3a3',
primary: '#ffffff',
dark: '#000000',
// ── Legacy supporting palette (mapped to greys) ───────────────────────
'indigo-deep': '#222222',
'indigo-mid': '#333333',
'indigo-soft': '#666666',
'violet-deep': '#111111',
amber: { DEFAULT: '#e5e5e5', soft: '#a3a3a3' },
// ── Step colours (greyscale) ───────────────────────────────────────────
step: {
1: '#ffffff',
2: '#d4d4d4',
3: '#a3a3a3',
4: '#737373',
},
// ── Module colours (greyscale shades per module) ──────────────────────
module: {
rag: '#e5e5e5',
mem: '#d4d4d4',
router: '#a3a3a3',
eval: '#737373',
kernel: '#525252',
trace: '#404040',
},
},
fontFamily: {
display: ['"Space Grotesk"', 'system-ui', 'sans-serif'],
sans: ['"Space Grotesk"', 'system-ui', 'sans-serif'],
body: ['"IBM Plex Mono"', 'ui-monospace', 'monospace'],
mono: ['"IBM Plex Mono"', 'ui-monospace', 'monospace'],
editorial:['"Space Grotesk"', 'system-ui', 'sans-serif'],
},
backgroundImage: {
'dotted-grid':
'radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px)',
'dotted-grid-dim':
'radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px)',
'spectrum-headline': 'linear-gradient(90deg, #ffffff 0%, #a3a3a3 100%)',
'spectrum-warm': 'linear-gradient(90deg, #e5e5e5 0%, #737373 100%)',
},
backgroundSize: {
'dotted-grid': '24px 24px',
},
fontSize: {
'label-caps': ['11px', { lineHeight: '1', letterSpacing: '0.12em', fontWeight: '600' }],
'label-mono': ['13px', { lineHeight: '1', letterSpacing: '0.05em', fontWeight: '500' }],
'body-md': ['15px', { lineHeight: '1.6', fontWeight: '400' }],
'body-lg': ['17px', { lineHeight: '1.65', fontWeight: '400' }],
h3: ['22px', { lineHeight: '1.3', letterSpacing: '-0.01em', fontWeight: '600' }],
h2: ['30px', { lineHeight: '1.2', letterSpacing: '-0.02em', fontWeight: '700' }],
h1: ['46px', { lineHeight: '1.08', letterSpacing: '-0.03em', fontWeight: '700' }],
display: ['62px', { lineHeight: '1.04', letterSpacing: '-0.03em', fontWeight: '700' }],
},
borderRadius: {
DEFAULT: '0.375rem',
sm: '0.25rem',
md: '0.5rem',
lg: '0.75rem',
xl: '1rem',
'2xl':'1.5rem',
full: '9999px',
},
spacing: {
gutter: '20px',
'card-padding': '24px',
'container-margin': '32px',
},
maxWidth: {
'container-max': '1440px',
},
animation: {
'fade-in': 'fadeIn 0.5s ease-out forwards',
'fade-up': 'fadeUp 0.6s ease-out forwards',
shimmer: 'shimmer 2s linear infinite',
marquee: 'marquee 40s linear infinite',
'flow-dash': 'flowDash 2.4s linear infinite',
'float': 'float 6s ease-in-out infinite',
},
keyframes: {
fadeIn: {
'0%': { opacity: '0', transform: 'translateY(6px)' },
'100%': { opacity: '1', transform: 'translateY(0)' },
},
fadeUp: {
'0%': { opacity: '0', transform: 'translateY(20px)' },
'100%': { opacity: '1', transform: 'translateY(0)' },
},
shimmer: {
'0%': { transform: 'translateX(-100%)' },
'100%': { transform: 'translateX(100%)' },
},
marquee: {
'0%': { transform: 'translateX(0)' },
'100%': { transform: 'translateX(-50%)' },
},
flowDash: {
'0%': { strokeDashoffset: '24' },
'100%': { strokeDashoffset: '0' },
},
float: {
'0%, 100%': { transform: 'translateY(0)' },
'50%': { transform: 'translateY(-10px)' },
},
},
},
},
plugins: [
require('@tailwindcss/typography'),
function ({ addBase, theme }) {
addBase({
'.prose': {
'--tw-prose-body': theme('colors.on-surface-variant'),
'--tw-prose-headings': theme('colors.on-surface'),
'--tw-prose-lead': theme('colors.on-surface-variant'),
'--tw-prose-links': theme('colors.on-surface'),
'--tw-prose-bold': theme('colors.on-surface'),
'--tw-prose-counters': theme('colors.outline'),
'--tw-prose-bullets': theme('colors.outline'),
'--tw-prose-hr': theme('colors.border-mid'),
'--tw-prose-quotes': theme('colors.on-surface'),
'--tw-prose-quote-borders': theme('colors.border-hi'),
'--tw-prose-code': theme('colors.on-surface'),
'--tw-prose-pre-code': theme('colors.on-surface'),
'--tw-prose-pre-bg': theme('colors.surface-dim'),
'--tw-prose-th-borders': theme('colors.border-mid'),
'--tw-prose-td-borders': theme('colors.border'),
},
});
},
],
};