This repository has been archived by the owner on Sep 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
68 lines (66 loc) · 1.59 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
const colors = require('tailwindcss/colors')
function hextoRGBA(hex, alpha) {
return('rgba(' + parseInt(hex.slice(1, 3), 16) + ', ' + parseInt(hex.slice(3, 5), 16) + ', ' + parseInt(hex.slice(5, 7), 16) + ', ' + alpha + ')')
}
module.exports = {
darkMode: 'class',
purge: {
enabled: process.env.HUGO_ENVIRONMENT === 'production',
preserveHtmlElements: false,
content: ['./docs/layouts/**/*.html', './docs/content/**/*.md'],
options: {
safelist: ['dark', 'lottie']
}
},
theme: {
screens: {
m: '640px',
l: '1024px'
},
fontFamily: {
'sans': ['Ubuntu', 'sans-serif'],
'mono': ['Ubuntu Mono', 'monospace']
},
colors: {
red: colors.red,
gray: colors.gray,
green: colors.green,
yellow: colors.amber,
orange: colors.orange
},
boxShadow: {
dark: '0 0px 5px 1px ' + hextoRGBA(colors.gray[100], 0.25),
light: '0 0px 5px 1px ' + hextoRGBA(colors.gray[800], 0.25)
},
extend: {
width: {
'fit': 'fit-content'
},
maxHeight: {
'fit': 'fit-content'
},
animation: {
loading: 'loading 2s ease infinite'
},
keyframes: {
loading: {
'75%, 100%': {
transform: 'rotateZ(360deg)'
}
}
},
transitionProperty: {
'collapse': 'margin-top, max-height'
}
}
},
plugins: [require('tailwind-scrollbar')],
variants: {
scrollbar: ['dark', 'rounded'],
extend: {
boxShadow: ['dark'],
display: ['group-hover'],
translate: ['group-hover']
}
}
}