-
Notifications
You must be signed in to change notification settings - Fork 19
/
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": "#c35fde",
"color-2": "#adbfef",
border: "#718096",
primary: "#f55555",
medium: "#222"
},
},
colors: {
bg: "#fff",
bgalt: "#f5f5f5",
"color-default": "#333",
"color-1": "#8e24aa",
"color-2": "#673ab7",
"color-3": "#aeb4c5",
primary: "#f55555",
secondary: "#6888df",
link: "#0a71c5",
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],
}