-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
executable file
·66 lines (65 loc) · 1.51 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
const colors = require('tailwindcss/colors')
const round = (num) =>
num
.toFixed(7)
.replace(/(\.[0-9]+?)0+$/, '$1')
.replace(/\.0$/, '')
const em = (px, base) => `${round(px / base)}em`
module.exports = {
purge: [
"./components/**/*.{vue,js}",
"./layouts/**/*.vue",
"./pages/**/*.vue",
"./plugins/**/*.{js,ts}",
"./nuxt.config.{js,ts}"
],
darkMode: "class", // or 'media' or 'class'
theme: {
extend: {
typography: (theme) => ({
dark: {
css: {
color: '#fff',
h1: {
color: theme('colors.gray.200'),
fontSize: em(30, 14),
}, h2: {
color: theme('colors.gray.200'),
fontSize: em(20, 14),
}, h3: {
color: theme('colors.gray.200'),
fontSize: em(18, 14),
}, h4: {
color: theme('colors.gray.200'),
fontSize: em(20, 14),
},
}
}
}),
opacity: ['disabled'],
fontFamily: {
header: ["Rubik", "sans-serif"],
fira: ["Fira Code", "monospace"],
sans: ["Nunito", "sans-serif"]
},
colors: {
gray: colors.blueGray,
orange: colors.orange,
amber: colors.amber,
violate: colors.violet
},
container: {
center: true,
},
boxShadow: ["dark"],
}
},
variants: {
extend: {
typography: ['dark']
}
},
plugins: [
require('@tailwindcss/typography'),
]
};