-
Notifications
You must be signed in to change notification settings - Fork 4
/
tailwind.config.js
77 lines (76 loc) · 2.35 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
const colors = require("tailwindcss/colors");
module.exports = {
content: [
"./config/initializers/simple_form.rb",
"./app/**/*.html.erb",
"./app/**/*.html.haml",
"./app/helpers/**/*.rb",
"./app/components/**/*.rb",
"./app/components/**/*.html.haml",
"./app/javascript/**/*.js",
],
safelist: Object.keys(colors).flatMap((color) => {
return [
`bg-${color}-200`,
`bg-${color}-500`,
`dark:bg-${color}-700`,
`dark:text-${color}-300`,
`dark:bg-${color}-500`,
`dark:text-${color}-700`,
`text-${color}-600`,
`text-${color}-800`,
];
}),
theme: {
extend: {
boxShadow: {
DEFAULT:
"0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px 0 rgba(0, 0, 0, 0.02)",
md: "0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.02)",
lg: "0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.01)",
xl: "0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.01)",
},
outline: {
blue: "2px solid rgba(0, 112, 244, 0.5)",
},
fontFamily: {
raleway: ["Raleway", "sans-serif"],
lusitana: ["Lusitana", "serif"],
},
fontSize: {
xs: ["0.75rem", { lineHeight: "1.5" }],
sm: ["0.875rem", { lineHeight: "1.5715" }],
base: ["1rem", { lineHeight: "1.5", letterSpacing: "-0.01em" }],
lg: ["1.125rem", { lineHeight: "1.5", letterSpacing: "-0.01em" }],
xl: ["1.25rem", { lineHeight: "1.5", letterSpacing: "-0.01em" }],
"2xl": ["1.5rem", { lineHeight: "1.33", letterSpacing: "-0.01em" }],
"3xl": ["1.88rem", { lineHeight: "1.33", letterSpacing: "-0.01em" }],
"4xl": ["2.25rem", { lineHeight: "1.25", letterSpacing: "-0.02em" }],
"5xl": ["3rem", { lineHeight: "1.25", letterSpacing: "-0.02em" }],
"6xl": ["3.75rem", { lineHeight: "1.2", letterSpacing: "-0.02em" }],
},
borderWidth: {
3: "3px",
},
minWidth: {
36: "9rem",
44: "11rem",
56: "14rem",
60: "15rem",
80: "20rem",
},
maxWidth: {
"8xl": "88rem",
"9xl": "96rem",
},
zIndex: {
60: "60",
},
},
},
plugins: [
require("@tailwindcss/forms"),
require("@tailwindcss/typography"),
require("@tailwindcss/aspect-ratio"),
],
};