-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
tailwind.config.js
67 lines (60 loc) · 1.82 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
const plugin = require("tailwindcss/plugin")
const _ = require("lodash");
const gradient = plugin(function({ addUtilities, e, theme, variants }) {
const gradients = theme("gradients", {})
const gradientVariants = variants("gradients", [])
const utilities = _.map(gradients, ([start, end], name) => ({
[`.bg-gradient-${e(name)}`]: {
backgroundImage: `linear-gradient(to right, ${start}, ${end})`,
},
}))
addUtilities(utilities, gradientVariants)
})
module.exports = {
purge: ["./src/**/*.js", "./src/**/*.jsx", "./src/**/*.ts", "./src/**/*.tsx"],
theme: {
gradients: theme => ({
primary: [theme("colors.primary"), theme("colors.secondary")],
}),
themes: {
dark: {
bg: "#111",
bgalt: "#000",
"color-default": "#eee",
"color-1": "#ee6408",
"color-2": "#f1a675",
border: "#ee686d",
primary: "#f55555",
medium: "#222"
},
},
colors: {
bg: "#fff",
bgalt: "#f5f5f5",
"color-default": "#333",
"color-1": "#b32618",
"color-2": "#f15106",
"color-3": "#d6b27b",
primary: "#f55555",
secondary: "#dece67",
link: "#a99203",
medium: "#cfd8dc",
white: "#fff",
black: "#000",
transparent: "rgba(0,0,0,0)",
error: "#ef5350",
success: "#8bc34a"
},
extend: {
fontSize: {
'7xl': '5rem'
},
spacing: {
'1px': '1px',
'2px': '2px'
}
},
},
variants: {},
plugins: [require(`tailwind-theme-switcher`), gradient],
}