-
Notifications
You must be signed in to change notification settings - Fork 2.4k
/
tailwind.config.js
96 lines (95 loc) · 2.64 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
const defaultTheme = require("tailwindcss/defaultTheme");
const colors = require("../app/javascript/tailwindColors");
module.exports = {
content: [
"./public/*.html",
"./app/helpers/**/*.rb",
"./app/javascript/**/*.js",
"./app/views/**/*.{erb,haml,html,slim}",
],
theme: {
colors,
boxShadow: {
none: "0 0 #0000",
inner: "inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",
xs: "0px 1px 2px 0px rgba(11, 11, 11, 0.05)",
sm: "0px 1px 2px 0px rgba(11, 11, 11, 0.06), 0px 1px 3px 0px rgba(11, 11, 11, 0.10)",
md: "0px 2px 4px -2px rgba(11, 11, 11, 0.06), 0px 4px 8px -2px rgba(11, 11, 11, 0.10)",
lg: "0px 4px 6px -2px rgba(11, 11, 11, 0.03), 0px 12px 16px -4px rgba(11, 11, 11, 0.08)",
xl: "0px 8px 8px -4px rgba(11, 11, 11, 0.03), 0px 20px 24px -4px rgba(11, 11, 11, 0.08)",
"2xl": "0px 24px 48px -12px rgba(11, 11, 11, 0.12)",
"3xl": "0px 32px 64px -12px rgba(11, 11, 11, 0.14)",
},
borderRadius: {
none: "0",
full: "9999px",
xs: "2px",
sm: "4px",
md: "8px",
DEFAULT: "8px",
lg: "10px",
xl: "12px",
"2xl": "16px",
"3xl": "24px",
},
extend: {
fontFamily: {
display: ["Inter var", ...defaultTheme.fontFamily.sans],
},
fontSize: {
"2xs": ".625rem",
},
spacing: {
'40': '10rem',
},
keyframes: {
"appear-then-fade": {
"0%,100%": { opacity: 0 },
"5%,90%": { opacity: 1 },
},
"stroke-fill": {
to: { "stroke-dashoffset": 0 },
},
},
typography: (theme) => ({
DEFAULT: {
css: {
maxWidth: "none",
h2: {
fontSize: theme("fontSize.xl"),
fontWeight: theme("fontWeight.medium"),
},
h3: {
fontSize: theme("fontSize.lg"),
fontWeight: theme("fontWeight.medium"),
},
li: {
margin: 0,
},
details: {
borderRadius: "12px",
marginBottom: "0.875rem",
marginTop: "0.875rem",
},
summary: {
display: "flex",
alignItems: "center",
columnGap: "0.25rem",
},
video: {
margin: 0,
borderBottomLeftRadius: "12px",
borderBottomRightRadius: "12px",
},
},
},
}),
},
},
plugins: [
require("@tailwindcss/forms"),
require("@tailwindcss/aspect-ratio"),
require("@tailwindcss/typography"),
require("@tailwindcss/container-queries"),
],
};