-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtailwind.config.js
More file actions
200 lines (188 loc) · 7.79 KB
/
Copy pathtailwind.config.js
File metadata and controls
200 lines (188 loc) · 7.79 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
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
module.exports = {
safelist: [
'text-ink',
'text-ink-mid',
'text-ink-muted',
'text-border-card',
'bg-accent',
'bg-topbar-hover',
],
darkMode: 'class',
content: [
'./src/**/*.html',
'./src/**/*.js',
'./src/**/*.jsx',
'./src/**/*.ts',
'./src/**/*.tsx',
],
future: {
removeDeprecatedGapUtilities: true,
},
theme: {
// screens: {
// sm: '640px',
// md: '768px',
// lg: '1024px',
// xl: '1280px',
// },
fontFamily: {
ui: ['Geist', 'system-ui', 'sans-serif'],
display: ['Fraunces', 'Georgia', 'serif'],
sketch: ['Caveat Brush', 'cursive'],
mono: ['Geist Mono', 'monospace'], // added — for coordinates, hex values, dimension chips
},
// borderWidth: {
// default: '1px',
// 0: '0',
// 2: '2px',
// 4: '4px',
// },
extend: {
colors: {
// ── existing palette ─────────────────────────────────────
primary: {
blue: '#0052CC',
red: '#BF2600',
},
cyan: '#9cdbff',
reds: {
r500: '#BF2600',
r400: '#DE350B',
r300: '#FF5630',
r200: '#FF7452',
r100: '#FF8F73',
r75: '#FFBDAD',
r50: '#FFEBE6',
},
yellows: {
y500: '#FF8B00',
y400: '#FF991F',
y300: '#FFAB00',
y200: '#FFC400',
y100: '#FFE380',
y75: '#FFF0B3',
y50: '#FFFAE6',
},
greens: {
g500: '#006644',
g400: '#00875A',
g300: '#36B37E',
g200: '#57D9A3',
g100: '#79F2C0',
g75: '#ABF5D1',
g50: '#E3FCEF',
},
teals: {
t500: '#008DA6',
t400: '#00A3BF',
t300: '#00B8D9',
t200: '#00C7E6',
t100: '#79E2F2',
t75: '#B3F5FF',
t50: '#E6FCFF',
},
blues: {
b500: '#0747A6',
b400: '#0052CC',
b300: '#0065FF',
b200: '#2684FF',
b100: '#4C9AFF',
b75: '#B3D4FF',
b50: '#DEEBFF',
},
purples: {
p500: '#403294',
p400: '#5243AA',
p300: '#6554C0',
p200: '#8777D9',
p100: '#998DD9',
p75: '#C0B6F2',
p50: '#EAE6FF',
},
neutrals: {
n900: '#091E42',
n700: '#253858',
n500: '#42526E',
n300: '#5E6C84',
n100: '#7A869A',
n80: '#97A0AF',
n60: '#B3BAC5',
n40: '#DFE1E6',
n20: '#F4F5F7',
},
// ── Warm Studio tokens ────────────────────────────────────
// Theming-relevant chrome tokens reference CSS variables (see
// :root + .dark in src/App.css) so a `.dark` class on <html>
// flips them with zero per-component edits. The variables hold
// space-separated RGB *channels* (e.g. `232 200 122`), wrapped
// here as `rgb(var(--x) / <alpha-value>)` so opacity modifiers
// like `bg-accent/30` keep working. Light/dark values live in
// App.css, not here.
// Canvas & surfaces
canvas: 'rgb(var(--color-canvas) / <alpha-value>)', // main canvas bg — the parchment
sidebar: 'rgb(var(--color-sidebar) / <alpha-value>)', // left/right panel bg
'card-bg': 'rgb(var(--color-card) / <alpha-value>)', // default shape/card fill
// Chrome
topbar: 'rgb(var(--color-topbar) / <alpha-value>)', // espresso top bar
'topbar-hover': 'rgb(var(--color-topbar-hover) / <alpha-value>)', // tool hover bg in topbar
// Accent — amber replaces blue as the interaction color
accent: {
DEFAULT: 'rgb(var(--color-accent) / <alpha-value>)', // active tools, buttons, selections → bg-accent
dark: 'rgb(var(--color-accent-dark) / <alpha-value>)', // highlighted card borders → bg-accent-dark
glow: 'var(--color-accent-glow)', // focus rings → (use in CSS, not as a utility)
},
// Text — all warm undertones, no cool grays
ink: {
DEFAULT: 'rgb(var(--color-ink) / <alpha-value>)', // primary text, near-black → text-ink
mid: 'rgb(var(--color-ink-mid) / <alpha-value>)', // secondary text → text-ink-mid
muted: 'rgb(var(--color-ink-muted) / <alpha-value>)', // labels, hints, placeholders → text-ink-muted
},
// Borders
border: {
panel: 'rgb(var(--color-border-panel) / <alpha-value>)', // sidebar/panel dividers → border-border-panel
card: 'rgb(var(--color-border-card) / <alpha-value>)', // card outlines, grid dots → border-border-card
},
// Canvas element fill palette (for shape fill picker)
fill: {
amber: '#E8C87A',
coral: '#E87A6A',
teal: '#7AC4A8',
blue: '#7A9AE8',
purple: '#A87AE8',
dark: '#3A342C',
neutral: '#C4B89A',
},
// Sticky note backgrounds
sticky: {
yellow: '#F2DC90',
coral: '#F2A090',
},
},
// ── box shadows ───────────────────────────────────────────────
// Offset flat shadow = physical index card feel (no blur = no softness)
boxShadow: {
card: '3px 3px 0 rgb(var(--color-border-card))', // default card lift
'card-accent': '3px 3px 0 rgb(var(--color-accent-dark))', // highlighted/selected card
focus: '0 0 0 2px var(--color-accent-glow)', // amber focus ring
sticky: '2px 2px 8px rgba(0, 0, 0, 0.10)', // sticky note
},
// ── border radius ─────────────────────────────────────────────
borderRadius: {
card: '4px', // cards/shapes — intentionally NOT rounded
pill: '100px', // zoom bar, tags
},
spacing: {
96: '24rem',
128: '32rem',
},
screens: {
tablet: '640px',
'tablet-landscape': '768px',
laptop: '1024px',
desktop: '1280px',
'big-desktop': '1536px',
'ultra-desktop': '1792px',
},
},
},
}