forked from statikbe/craft
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
100 lines (97 loc) · 2.05 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
const defaultTheme = require("tailwindcss/defaultTheme");
const colorShade = require("./tailoff/tailwind/color-shades");
const icons = require("./tailoff/tailwind/icons");
const button = require("./tailoff/tailwind/button");
// const underlineAnimation = require("./tailoff/tailwind/underline-animation");
// const breakOut = require("./tailoff/tailwind/break-out");
const aspectRatio = require("tailwindcss-aspect-ratio");
const siteColors = {
primary: {
default: "#EE4737",
contrast: "#ffffff",
hover: "#EE4737",
hoverContrast: "#ffffff",
},
secondary: {
default: "#00ff00",
contrast: "#ffffff",
hover: "#00ff00",
hoverContrast: "#ffffff",
},
};
module.exports = {
target: "ie11",
theme: {
borderWidth: {
default: "1px",
"0": "0",
"1": "1px",
"2": "2px",
"3": "3px",
},
container: {
center: true,
padding: defaultTheme.spacing["4"],
},
fontFamily: {
accent: ["serif"],
base: ["sans-serif"],
},
screens: {
xs: "480px",
sm: "660px",
md: "820px",
lg: "980px",
xl: "1200px",
},
colors: {
...defaultTheme.colors,
...siteColors,
black: "#333333",
light: "#f5f5f5",
gray: {
...defaultTheme.colors.gray,
"100": "#f5f5f5",
},
},
aspectRatio: {
none: 0,
square: [1, 1],
"16/9": [16, 9],
"4/3": [4, 3],
"21/9": [21, 9],
},
extend: {
maxWidth: {
flyout: "280px",
modal: "50vw",
},
boxShadow: {
card: "0 0 30px 0 rgba(0,0,0,0.15)",
focus: "0 0 0 3px rgba(238,71,55,0.5)",
},
inset: {
"1/2": "50%",
},
},
},
variants: {},
plugins: [
colorShade(siteColors),
icons,
button({
borderWidth: 2,
borderRadius: 0,
pill: false,
px: 4,
py: 2,
transition: "200ms",
defaultIcon: false,
iconAnimation: true,
generalProperties: {},
}),
// underlineAnimation,
// breakOut,
aspectRatio,
],
};