-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.js
More file actions
102 lines (102 loc) · 3.35 KB
/
Copy pathtailwind.config.js
File metadata and controls
102 lines (102 loc) · 3.35 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
/** @type {import('tailwindcss').Config} */
// Mirrors the ZenNotes shared token scales (apps/web/tailwind.config.js) so the
// app-core UI renders identically, plus additive mobile utilities (safe-area
// spacing, 44pt touch targets). No token overrides.
export default {
content: [
'./index.html',
'./src/**/*.{ts,tsx}',
'../../opensource/zennotes/packages/app-core/src/**/*.{ts,tsx}'
],
theme: {
extend: {
colors: {
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>)'
},
danger: 'rgb(var(--z-red) / <alpha-value>)',
success: 'rgb(var(--z-green) / <alpha-value>)',
warning: 'rgb(var(--z-yellow) / <alpha-value>)'
},
borderRadius: {
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)'
},
fontSize: {
'2xs': ['0.6875rem', { lineHeight: '1rem' }]
},
zIndex: {
dropdown: '40',
palette: '50',
modal: '70',
nested: '75',
popover: '80',
toast: '90'
},
maxWidth: {
'dialog-xs': '420px',
'dialog-sm': '440px',
'dialog-md': '560px',
'dialog-lg': '720px',
'dialog-xl': '900px',
'dialog-2xl': '1120px',
'dialog-3xl': '1360px'
},
spacing: {
'safe-top': 'env(safe-area-inset-top)',
'safe-bottom': 'env(safe-area-inset-bottom)',
'safe-left': 'env(safe-area-inset-left)',
'safe-right': 'env(safe-area-inset-right)',
touch: '44px'
},
minHeight: {
touch: '44px'
},
minWidth: {
touch: '44px'
}
}
},
plugins: []
}