-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtailwind.config.ts
94 lines (90 loc) · 1.92 KB
/
tailwind.config.ts
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
import type { Config } from 'tailwindcss';
import plugin from 'tailwindcss/plugin';
import typography from '@tailwindcss/typography';
import daisyui from 'daisyui';
export default {
content: ['./src/**/*.{html,js,svelte,ts}'],
safelist: ['table-xs', 'table-sm', 'table-md', 'table-lg', 'table-zebra'],
theme: {
fontFamily: {
sans: ['Outfit', 'system-ui', 'sans-serif'],
serif: ['Vollkorn', 'ui-serif', 'Georgia', 'serif'],
mono: ['Roboto Mono', 'ui-monospace', 'SFMono-Regular', 'monospace'],
fa: ['FontAwesome']
},
extend: {
colors: {
primary: {
DEFAULT: '#3D7DD2',
50: '#F7FBFD',
100: '#E3F0F8',
200: '#B9D7EF',
300: '#90BCE5',
400: '#669EDC',
500: '#3D7DD2',
600: '#295FB3',
700: '#204489',
800: '#162D60',
900: '#0D1836',
950: '#080E22'
}
}
}
},
daisyui: {
themes: [
{
light: {
primary: '#3d7dd2',
'primary-content': '#ffffff',
secondary: '#00b5b4',
accent: '#ff301c',
neutral: '#0f1023',
'neutral-content': '#ffffff',
'base-100': '#fff',
'base-200': '#f6f7fb',
'base-300': '#f0f0f0',
info: '#98d7f0',
success: '#9cdcc5',
warning: '#e0ca96',
error: '#f8bbb0'
}
},
{
dark: {
primary: '#3d7dd2',
'primary-content': '#ffffff',
secondary: '#00b5b4',
accent: '#ff301c',
neutral: '#4e5168',
'neutral-content': '#ffffff',
'base-100': '#393b51',
'base-200': '#2b2d43',
'base-300': '#0f1023',
info: '#98d7f0',
success: '#9cdcc5',
warning: '#e0ca96',
error: '#f8bbb0'
}
}
]
},
plugins: [
typography,
daisyui,
plugin(function ({ addUtilities }) {
const newUtilities = {
'.max-ch-sm': {
'max-width': '50ch'
},
'.max-ch-md': {
'max-width': '75ch'
},
'.max-ch-lg': {
'max-width': '100ch'
}
};
addUtilities(newUtilities, ['responsive']);
})
]
} as Config;