-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
69 lines (65 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
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.color-1"), theme("colors.color-2")],
}),
themes: {
dark: {
bg: "#24272E",
bgalt: "#000",
"color-default": "#eee",
"color-1": "#AE7A22",
"color-2": "#F9E388",
border: "#718096",
primary: "#6B4B52",
medium: "#222",
},
},
colors: {
bg: "#fff",
bgalt: "#f5f5f5",
"color-default": "#333",
"color-1": "#AE7A22",
"color-2": "#F9E388",
"color-3": "#aeb4c5",
primary: "#6B4B52",
secondary: "#9BABCF",
link: "#0a71c5",
medium: "#cfd8dc",
white: "#fff",
black: "#24272E",
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],
}