-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
58 lines (57 loc) · 1.63 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
const plugin = require("tailwindcss/plugin");
const defaultTheme = require("tailwindcss/defaultTheme");
const defaultConfig = require("tailwindcss/defaultConfig");
module.exports = {
presets: [defaultConfig],
content: [
"./app/inputs/**/*.rb",
"./app/helpers/**/*.rb",
"./app/javascript/**/*.js",
"./app/views/**/*.{html,html.erb}",
"./app/components/**/*.{rb,html,html.erb,ts}",
"./test/components/**/*.rb",
],
safelist: ["hidden"],
theme: {
extend: {
fontFamily: {
sans: ["Inter var", ...defaultTheme.fontFamily.sans],
},
colors: ({ theme: { colors } }) => ({
primary: colors.amber,
secondary: colors.lime,
}),
maxHeight: defaultTheme.height,
minHeight: defaultTheme.height,
maxWidth: defaultTheme.width,
minWidth: defaultTheme.width,
transitionTimingFunction: {
"expo-out": "cubic-bezier(0.16, 1, 0.3, 1)",
"expo-in": "cubic-bezier(0.87, 0, 0.13, 1)",
"expo-in-out": "cubic-bezier(0.16, 1, 0.3, 1)",
},
typography: ({ theme }) => ({
DEFAULT: {
css: {
lineHeight: theme("lineHeight.normal"),
blockquote: {
marginTop: theme("spacing.2"),
},
},
},
}),
},
},
plugins: [
require("@tailwindcss/forms"),
require("@tailwindcss/aspect-ratio"),
require("@tailwindcss/typography"),
require("@tailwindcss/line-clamp"),
require("tailwind-scrollbar")({ nocompatible: true }),
plugin(({ addVariant }) => {
addVariant("cloak", "&[x-cloak]");
}),
],
important: "#root",
darkMode: "class",
};