-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
105 lines (102 loc) · 2.36 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
101
102
103
104
105
const defaultTheme = require("tailwindcss/defaultTheme");
const colorShade = require("./tailoff/tailwind/color-shades");
// const underlineAnimation = require("./tailoff/tailwind/underline-animation");
const aspectRatio = require("tailwindcss-aspect-ratio");
const siteColors = {
primary: {
DEFAULT: "#71B8C5",
contrast: "#ffffff",
hover: "#5A939D",
hoverContrast: "#ffffff",
},
secondary: {
DEFAULT: "#9C7A97",
contrast: "#ffffff",
hover: "#7C6178",
hoverContrast: "#ffffff",
},
};
module.exports = {
theme: {
borderWidth: {
DEFAULT: "1px",
0: "0",
1: "1px",
2: "2px",
3: "3px",
},
container: {
center: true,
padding: defaultTheme.spacing["4"],
},
fontFamily: {
base: "'Titillium Web', sans-serif",
},
screens: {
xs: "480px",
sm: "660px",
md: "820px",
lg: "980px",
xl: "1200px",
},
colors: {
...defaultTheme.colors,
...siteColors,
black: "#333333",
light: "#F9F9F9",
divider: "rgba(51,51,51,0.2)",
"black-40": "rgba(51,51,51,0.4)",
},
aspectRatio: {
none: 0,
square: [1, 1],
"16/9": [16, 9],
"4/3": [4, 3],
"21/9": [21, 9],
},
extend: {
fontSize: {
"2xs": [".6rem", ".75rem"],
lg: ["1.125rem", "1.5625rem"], // 18px - 25px
xl: ["1.25rem", "1.5625rem"], // 20px - 25px
"2xl": ["1.375rem", "1.5625rem"], // 22px - 25px
"3xl": ["1.75rem", "2.1875rem"], // 28px - 35px
"4xl": ["2.1875rem", "2.5rem"], // 35px - 40px
"5xl": ["2.5rem", "3.125rem"], // 40px - 50px
},
maxWidth: {
flyout: "280px",
modal: "700px",
logo: "150px",
},
maxHeight: {
logo: "85px",
"logo-mobile": "50px",
},
zIndex: {
99: "99",
100: "100",
},
boxShadow: {
card: "0 0 30px 0 rgba(0,0,0,0.15)",
focus: "0 0 0 3px rgba(238,71,55,0.5)",
},
borderRadius: {
card: "30px",
panel: "40px",
},
inset: {
"1/2": "50%",
},
},
},
variants: {
textDecoration: ["responsive", "hover", "focus", "group-hover"],
textColor: ["responsive", "hover", "focus", "group-hover"],
},
plugins: [
colorShade(siteColors),
// underlineAnimation,
aspectRatio,
],
};