-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
43 lines (42 loc) · 933 Bytes
/
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
const defaultTheme = require('tailwindcss/defaultTheme');
const daisyui = require('daisyui');
const tailwindTypography = require('@tailwindcss/typography');
module.exports = {
mode: 'jit',
content: {
files: ['./src/**/*.{html,js,svelte,ts}'],
extract: {
defaultExtractor: (content) => [
...(content.match(/[^<>"'`\s]*[^<>"'`\s:]/g) || []),
...(content.match(/(?<=class:)[^=>/\s]*/g) || []),
],
},
},
theme: {
screens: {
xs: '360px',
...defaultTheme.screens,
},
extend: {
fontFamily: [
'-apple-system',
'BlinkMacSystemFont',
'Segoe UI',
'Roboto',
'Oxygen',
'Ubuntu',
'Cantarell',
'Open Sans',
'Helvetica Neue',
'sans-serif',
],
},
},
variants: {
extend: {},
},
plugins: [tailwindTypography, daisyui],
daisyui: {
themes: ['light', 'dark'],
},
};