-
Notifications
You must be signed in to change notification settings - Fork 8
/
tailwind.config.js
85 lines (83 loc) · 1.66 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
import { fontFamily } from 'tailwindcss/defaultTheme';
import { createThemes } from 'tw-colors';
/** @type {import('tailwindcss').Config} */
const config = {
darkMode: ['selector'],
content: [
'./src/**/*.{html,js,svelte,ts}',
'./node_modules/svelte-ux/**/*.{svelte,js}',
'./node_modules/layerchart/**/*.{svelte,js}'
],
corePlugins: {
preflight: true
},
safelist: ['0'],
theme: {
container: {
center: true,
padding: '2rem',
screens: {
'2xl': '1400px'
}
},
extend: {
borderRadius: {
lg: 'var(--radius)',
md: 'calc(var(--radius) - 2px)',
sm: 'calc(var(--radius) - 4px)'
},
colors: {
fourstar: '#7B5C90',
threestar: '#5E93B2'
},
fontFamily: {
sans: [...fontFamily.sans]
}
}
},
plugins: [
createThemes(
{
dark: {
border: '#000000',
foreground: '#373743',
//only use styles underneath
primary: '#D3BC8E',
secondary: '#8599A8',
tertiary: '#373743',
tertiaryHover: '#535365',
tertiaryActive: '#1C1C22',
neutral: '#1C1C22',
text: '#FFFFFF',
fivestar: '#FFB13F'
},
light: {
border: '#000000',
foreground: '#FFFFFF',
//only use styles underneath
primary: '#D3BC8E',
secondary: '#8599A8',
tertiary: '#E9E4DA',
tertiaryHover: '#D1C7B2',
tertiaryActive: '#FFFFFF',
neutral: '#FFFFFF',
text: '#393946',
fivestar: '#ffd89f'
}
},
{
defaultTheme: {
/**
* when `@media (prefers-color-scheme: light)` is matched,
*/
light: 'light',
/**
* when `@media (prefers-color-scheme: dark)` is matched,
*/
dark: 'dark'
}
}
)
]
};
export default config;