-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
88 lines (85 loc) · 1.86 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
import plugin from 'tailwindcss/plugin'
import typography from '@tailwindcss/typography'
export default {
content: ['./src/**/*.{html,js,svelte,ts}', './*.{html,js,svelte,ts}'],
theme: {
container: {
center: true,
padding: '2rem',
screens: {
'2xl': '1440px'
}
},
extend: {
colors: {
magnum: {
'50': '#fff9ed',
'100': '#fef2d6',
'200': '#fce0ac',
'300': '#f9c978',
'400': '#f7b155',
'500': '#f38d1c',
'600': '#e47312',
'700': '#bd5711',
'800': '#964516',
'900': '#793a15',
'950': '#411c09'
}
},
fontFamily: {
sans: [
'-apple-system',
'BlinkMacSystemFont',
'Segoe UI',
'Roboto',
'Oxygen',
'Ubuntu',
'Cantarell',
'Fira Sans',
'Droid Sans',
'Helvetica Neue',
'Arial',
'sans-serif',
'Apple Color Emoji',
'Segoe UI Emoji',
'Segoe UI Symbol'
],
mono: [
'ui-monospace',
'SFMono-Regular',
'SF Mono',
'Menlo',
'Consolas',
'Liberation Mono',
'monospace'
]
},
typography: (theme) => ({
DEFAULT: {
css: {
code: {
position: 'relative',
borderRadius: theme('borderRadius.md')
}
}
}
})
}
},
plugins: [
typography,
plugin(function ({ addVariant, matchUtilities, theme }) {
addVariant('hocus', ['&:hover', '&:focus'])
// Square utility
matchUtilities(
{
square: (value) => ({
width: value,
height: value
})
},
{ values: theme('spacing') }
)
})
]
}