-
-
Notifications
You must be signed in to change notification settings - Fork 109
Expand file tree
/
Copy pathtailwind.config.js
More file actions
111 lines (111 loc) · 3.93 KB
/
Copy pathtailwind.config.js
File metadata and controls
111 lines (111 loc) · 3.93 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
/** @type {import('tailwindcss').Config} */
export default {
content: [
'./apps/desktop/src/renderer/index.html',
'./apps/web/index.html',
'./packages/app-core/src/**/*.{ts,tsx}'
],
theme: {
extend: {
colors: {
// All colors resolve to CSS custom properties defined in index.css.
// Values are space-separated RGB triplets so Tailwind's opacity
// modifiers (e.g. `bg-paper-100/50`) keep working.
paper: {
50: 'rgb(var(--z-bg-softer) / <alpha-value>)',
100: 'rgb(var(--z-bg) / <alpha-value>)',
200: 'rgb(var(--z-bg-1) / <alpha-value>)',
300: 'rgb(var(--z-bg-2) / <alpha-value>)',
400: 'rgb(var(--z-bg-3) / <alpha-value>)',
500: 'rgb(var(--z-bg-4) / <alpha-value>)'
},
ink: {
900: 'rgb(var(--z-fg) / <alpha-value>)',
800: 'rgb(var(--z-fg-1) / <alpha-value>)',
700: 'rgb(var(--z-fg-2) / <alpha-value>)',
600: 'rgb(var(--z-grey-2) / <alpha-value>)',
500: 'rgb(var(--z-grey-1) / <alpha-value>)',
400: 'rgb(var(--z-grey-0) / <alpha-value>)',
300: 'rgb(var(--z-grey-dim) / <alpha-value>)'
},
accent: {
DEFAULT: 'rgb(var(--z-accent) / <alpha-value>)',
soft: 'rgb(var(--z-accent-soft) / <alpha-value>)',
muted: 'rgb(var(--z-accent-muted) / <alpha-value>)'
},
// Themed semantic colors — follow the active theme via the same
// CSS custom properties, so danger/success/warning are no longer
// hardcoded to Tailwind's static red/green/yellow.
danger: 'rgb(var(--z-red) / <alpha-value>)',
success: 'rgb(var(--z-green) / <alpha-value>)',
warning: 'rgb(var(--z-yellow) / <alpha-value>)'
},
borderRadius: {
// Scale every rounded-* by --z-radius-scale (default 1) so one var can
// square all corners (Quick tweaks → Square corners sets it to 0).
// rounded-none / rounded-full keep Tailwind defaults, so pills and
// circles stay round.
DEFAULT: 'calc(0.25rem * var(--z-radius-scale, 1))',
sm: 'calc(0.125rem * var(--z-radius-scale, 1))',
md: 'calc(0.375rem * var(--z-radius-scale, 1))',
lg: 'calc(0.5rem * var(--z-radius-scale, 1))',
xl: 'calc(0.75rem * var(--z-radius-scale, 1))',
'2xl': 'calc(1rem * var(--z-radius-scale, 1))',
'3xl': 'calc(1.5rem * var(--z-radius-scale, 1))'
},
fontFamily: {
sans: [
'-apple-system',
'BlinkMacSystemFont',
'"SF Pro Text"',
'"Inter"',
'system-ui',
'sans-serif'
],
serif: [
'"Iowan Old Style"',
'"Source Serif Pro"',
'Georgia',
'serif'
],
mono: [
'"JetBrains Mono"',
'"SF Mono"',
'Menlo',
'monospace'
]
},
boxShadow: {
panel:
'0 1px 0 0 rgb(var(--z-shadow) / 0.04), 0 8px 28px -12px rgb(var(--z-shadow) / 0.18)',
float: '0 20px 60px -20px rgb(var(--z-shadow) / 0.28)'
},
// Type scale. Tailwind's built-in steps (xs=12, sm=14, base=16, lg=18,
// xl=20, 2xl=24, 3xl=30) are kept; we add an 11px floor for genuinely
// secondary micro-text (uppercase labels, key hints, dense grids).
fontSize: {
'2xs': ['0.6875rem', { lineHeight: '1rem' }]
},
// Documented elevation scale — replaces ad-hoc z-[50/70/72/74].
zIndex: {
dropdown: '40',
palette: '50',
modal: '70',
nested: '75',
popover: '80',
toast: '90'
},
// Dialog width scale — Modal maps its `size` prop onto these.
maxWidth: {
'dialog-xs': '420px',
'dialog-sm': '440px',
'dialog-md': '560px',
'dialog-lg': '720px',
'dialog-xl': '900px',
'dialog-2xl': '1120px',
'dialog-3xl': '1360px'
}
}
},
plugins: []
}