This repository has been archived by the owner on Sep 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
/
tailwind.config.js
68 lines (61 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
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: "#3e3e3e",
bgalt: "#000",
"color-default": "#a8a8aa",
"color-1": "#f8f8f8",
border: "#718096",
primary: "#f8f8f8",
secondary: "#fff",
medium: "#222"
},
},
colors: {
bg: "#f8f8f8",
bgalt: "#fff",
"color-default": "#3e3e3e",
"color-1": "#47576e",
"color-2": "#74a4bc",
"color-3": "#f26522",
"color-4": "#3e3e3e",
primary: "#47576e",
secondary: "#3e3e3e",
link: "#f26522",
medium: "#cfd8dc",
white: "#fff",
black: "#000",
transparent: "rgba(0,0,0,0)",
error: "#f25522",
success: "#fbb03b"
},
extend: {
fontSize: {
'7xl': '5rem'
},
spacing: {
'1px': '1px',
'2px': '2px'
}
},
},
variants: {},
plugins: [require(`tailwind-theme-switcher`), gradient],
}