-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
59 lines (59 loc) · 2.11 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
const defaultTheme = require("tailwindcss/defaultTheme")
module.exports = {
// Optionally toggle dark mode via class name. Leave out for automatic dark mode context
// darkMode: "class",
content: [
"./app/helpers/**/*.rb",
"./app/javascript/**/*.js",
"./app/views/**/*.html.erb",
],
safelist: [
{ pattern: /form-.+/ },
{ pattern: /btn-.+/ }
],
theme: {
extend: {
fontFamily: {
heading: ["Lexend", ...defaultTheme.fontFamily.sans],
},
colors: {
primary: {
50: "rgb(var(--primary-50) / <alpha-value>)",
100: "rgb(var(--primary-100) / <alpha-value>)",
200: "rgb(var(--primary-200) / <alpha-value>)",
300: "rgb(var(--primary-300) / <alpha-value>)",
400: "rgb(var(--primary-400) / <alpha-value>)",
500: "rgb(var(--primary-500) / <alpha-value>)",
600: "rgb(var(--primary-600) / <alpha-value>)",
700: "rgb(var(--primary-700) / <alpha-value>)",
800: "rgb(var(--primary-800) / <alpha-value>)",
900: "rgb(var(--primary-900) / <alpha-value>)",
950: "rgb(var(--primary-950) / <alpha-value>)",
},
secondary: {
50: "rgb(var(--secondary-50) / <alpha-value>)",
100: "rgb(var(--secondary-100) / <alpha-value>)",
200: "rgb(var(--secondary-200) / <alpha-value>)",
300: "rgb(var(--secondary-300) / <alpha-value>)",
400: "rgb(var(--secondary-400) / <alpha-value>)",
500: "rgb(var(--secondary-500) / <alpha-value>)",
600: "rgb(var(--secondary-600) / <alpha-value>)",
700: "rgb(var(--secondary-700) / <alpha-value>)",
800: "rgb(var(--secondary-800) / <alpha-value>)",
900: "rgb(var(--secondary-900) / <alpha-value>)",
950: "rgb(var(--secondary-950) / <alpha-value>)",
},
},
animation: {
fadeIn: "fadeIn .3s ease-in-out",
},
keyframes: {
fadeIn: {
"0%": { opacity: "0" },
"100%": { opacity: "1" },
},
},
},
},
plugins: [require("@tailwindcss/typography"), require("@tailwindcss/forms")],
}