-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathtailwind.config.js
More file actions
47 lines (46 loc) · 1.38 KB
/
Copy pathtailwind.config.js
File metadata and controls
47 lines (46 loc) · 1.38 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
/** @type {import('tailwindcss').Config} */
const tokenColor = (name) =>
`color-mix(in srgb, var(${name}) calc(<alpha-value> * 100%), transparent)`;
module.exports = {
darkMode: ['class'],
content: ['./src/renderer/**/*.{ts,tsx,js,jsx}'],
theme: {
extend: {
colors: {
brand: {
DEFAULT: tokenColor('--color-brand'),
dark: tokenColor('--color-brand-dark'),
light: tokenColor('--color-brand-light'),
},
accent: {
DEFAULT: tokenColor('--color-accent'),
light: tokenColor('--color-accent-light'),
},
signal: {
great: tokenColor('--color-signal-great'),
ok: tokenColor('--color-signal-ok'),
bad: tokenColor('--color-signal-bad'),
none: tokenColor('--color-signal-none'),
},
ink: {
DEFAULT: tokenColor('--color-ink'),
muted: tokenColor('--color-ink-muted'),
faint: tokenColor('--color-ink-faint'),
},
},
backgroundImage: {
// App-wide screen background: white fading to faint lavender
app: 'linear-gradient(to bottom, #f9f9f9, #f0f0ff)',
},
fontFamily: {
sans: 'var(--font-sans)',
},
borderRadius: {
lg: 'var(--radius-card)',
md: 'var(--radius-control)',
sm: 'calc(var(--radius-control) - 2px)',
},
},
},
plugins: [],
};