-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathtailwind.config.js
149 lines (133 loc) · 4.19 KB
/
tailwind.config.js
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
/** @type {import('tailwindcss').Config} */
module.exports = {
darkMode: ['selector', '[data-mode="dark"]'],
content: ['./src/**/*.{html,ts}'],
theme: {
extend: {
colors: {
light: {
// primary
primary: '#4338ca',
'on-primary': '#ffffff',
'primary-container': '#e2dfff',
'on-primary-container': '#0f0069',
// secondary
secondary: '#EC4899',
'on-secondary': '#ffffff',
'secondary-container': '#ffd9e4',
'on-secondary-container': '#3e0022',
// tertiary
tertiary: '#6d5e00',
'on-tertiary': '#ffffff',
'tertiary-container': '#fce265',
'on-tertiary-container': '#211b00',
// error
error: '#ba1a1a',
'on-error': '#ffffff',
'error-container': '#ffdad6',
'on-error-container': '#410002',
// background
background: '#fffbff',
'on-background': '#1b0261',
// surface
surface: '#e0dbdf',
'surface-variant': '#f3f4f6',
'on-surface': '#1C1B1F',
'on-surface-variant': '#E7E0EC',
'surface-tint': '#D0BCFF',
// outline
outline: '#787680',
'outline-variant': '#c8c5d0',
// inverse
'inverse-surface': '#302175',
'inverse-primary': '#c3c0ff',
'inverse-on-surface': '#f4eeff',
// misc
shadow: '#000000',
scrim: '#000000',
},
dark: {
primary: '#c3c0ff',
'on-primary': '#1d00a5',
'primary-container': '#3323cc',
'on-primary-container': '#e2dfff',
// secondary
secondary: '#ffb0cd',
'on-secondary': '#640039',
'secondary-container': '#8c0053',
'on-secondary-container': '#ffd9e4',
// tertiary
tertiary: '#dfc64c',
'tertiary-container': '#524600',
'on-tertiary': '#393000',
'on-tertiary-container': '#fce265',
// error
error: '#ffb4ab',
'error-container': '#93000a',
'on-error': '#690005',
'on-error-container': '#ffdad6',
// background
background: '#1C1B1F',
'on-background': '#e5deff',
// surface
surface: '#0d0c0f',
'surface-variant': '#323236',
'on-surface': '#E6E1E5',
'on-surface-variant': '#CAC4D0',
'surface-tint': '#D0BCFF',
// outline
outline: '#928f9a',
'outline-variant': '#47464f',
// inverse
'inverse-surface': '#E6E1E5',
'inverse-primary': '#6750A4',
'inverse-on-surface': '#313033',
// misc
shadow: '#000000',
scrim: '#000000',
},
},
fontFamily: {
sans: ['Inter', 'sans-serif'],
// serif: ['Ubuntu'],
// mono: ['Ubuntu'],
},
},
},
plugins: [require('daisyui')],
daisyui: {
themes: [
{
light: {
primary: '#4338CA',
secondary: '#DB2777',
accent: '#ffffff',
neutral: '#F3F4F6',
'base-100': '#ffffff',
error: '#d00000',
success: '#108400',
},
},
{
dark: {
primary: '#DBCCFF',
secondary: '#FFC7E0',
'primary-content': '#38383f',
'secondary-content': '#38383f',
accent: '#ffffff',
neutral: '#323236',
'base-100': '#3F3F46',
error: '#ffa5a5',
success: '#6effc9',
},
},
],
darkTheme: 'dark', // name of one of the included themes for dark mode
base: true, // applies background color and foreground color for root element by default
styled: true, // include daisyUI colors and design decisions for all components
utils: true, // adds responsive and modifier utility classes
prefix: '', // prefix for daisyUI classnames (components, modifiers and responsive class names. Not colors)
logs: true, // Shows info about daisyUI version and used config in the console when building your CSS
themeRoot: ':root', // The element that receives theme color CSS variables
},
};