-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.js
More file actions
81 lines (80 loc) · 3.04 KB
/
tailwind.config.js
File metadata and controls
81 lines (80 loc) · 3.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
/** @type {import('tailwindcss').Config} */
export default {
darkMode: ['class'],
content: ['./src/**/*.{html,js,svelte,ts}'],
safelist: ['dark'],
theme: {
container: {
center: true,
padding: '2rem',
screens: {
'2xl': '1400px',
},
},
fontFamily: {
sans: ['"Geist"', '"Roboto"', 'sans-serif'],
mono: ['"Space Grotesk"', 'monospace'],
},
extend: {
colors: {
'main-text': 'rgb(var(--color-text-main) / <alpha-value>)',
'muted-text': 'rgb(var(--color-text-muted) / <alpha-value>)',
background: 'rgb(var(--color-background) / <alpha-value>)',
'elevation-1': 'rgb(var(--color-elevation-1) / <alpha-value>)',
'elevation-2': 'rgb(var(--color-elevation-2) / <alpha-value>)',
'elevation-3': 'rgb(var(--color-elevation-3) / <alpha-value>)',
'primary-action': 'rgb(var(--color-primary-action) / <alpha-value>)',
'on-primary-action': 'rgb(var(--color-on-primary-action) / <alpha-value>)',
'secondary-action': 'rgb(var(--color-secondary-action) / <alpha-value>)',
'on-secondary-action': 'rgb(var(--color-on-secondary-action) / <alpha-value>)',
warning: 'rgb(var(--color-warning) / <alpha-value>)',
'on-warning': 'rgb(var(--color-on-warning) / <alpha-value>)',
border: 'rgb(var(--color-border) / <alpha-value>)',
ring: 'rgb(var(--color-ring) / <alpha-value>)',
// For shadcn
input: 'rgb(var(--color-border) / <alpha-value>)',
foreground: 'rgb(var(--color-text-main) / <alpha-value>)',
primary: {
DEFAULT: 'rgb(var(--color-primary-action) / <alpha-value>)',
foreground: 'rgb(var(--color-on-primary-action) / <alpha-value>)',
},
secondary: {
DEFAULT: 'rgb(var(--color-secondary-action) / <alpha-value>)',
foreground: 'rgb(var(--color-on-secondary-action) / <alpha-value>)',
},
destructive: {
DEFAULT: 'rgb(var(--color-warning) / <alpha-value>)',
foreground: 'rgb(var(--color-on-warning) / <alpha-value>)',
},
muted: {
DEFAULT: 'rgb(var(--color-elevation-3) / <alpha-value>)',
foreground: 'rgb(var(--color-text-muted) / <alpha-value>)',
},
accent: {
DEFAULT: 'rgb(var(--color-elevation-3) / <alpha-value>)',
foreground: 'rgb(var(--color-text-main) / <alpha-value>)',
},
popover: {
DEFAULT: 'rgb(var(--color-elevation-2) / <alpha-value>)',
foreground: 'rgb(var(--color-text-main) / <alpha-value>)',
},
card: {
DEFAULT: 'rgb(var(--color-elevation-1) / <alpha-value>)',
foreground: 'rgb(var(--color-text-main) / <alpha-value>)',
},
},
borderRadius: {
lg: 'var(--radius)',
md: 'calc(var(--radius) - 2px)',
sm: 'calc(var(--radius) - 4px)',
},
spacing: {
contentDvh: 'calc(100dvh - 96px)',
},
screens: {
xs: '400px',
},
},
},
plugins: [require('@tailwindcss/typography')],
};