forked from vczb/gamou
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtailwind.config.js
97 lines (94 loc) · 2.59 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
// Tailkit (Tailwind CSS v3 Configuration)
import plugin from "tailwindcss/plugin";
import defaultTheme from "tailwindcss/defaultTheme";
import colors from "tailwindcss/colors";
import aspectRatio from "@tailwindcss/aspect-ratio";
import forms from "@tailwindcss/forms";
import typography from "@tailwindcss/typography";
/** @type {import('tailwindcss').Config} */
export default {
content: [
"./src/**/*.{html,js}", // Configure your template paths
'./app/views/**/*.html.erb',
'./app/helpers/**/*.rb',
'./app/assets/stylesheets/**/*.css',
'./app/javascript/**/*.js',
],
darkMode: "class",
theme: {
extend: {
fontFamily: {
sans: ["Inter", ...defaultTheme.fontFamily.sans],
},
maxWidth: {
"8xl": "90rem",
"9xl": "105rem",
"10xl": "120rem",
},
zIndex: {
1: 1,
60: 60,
70: 70,
80: 80,
90: 90,
100: 100,
},
keyframes: {
"spin-slow": {
"100%": {
transform: "rotate(-360deg)",
},
},
},
animation: {
"spin-slow": "spin-slow 8s linear infinite",
},
typography: {
DEFAULT: {
css: {
a: {
textDecoration: "none",
"&:hover": {
opacity: ".75",
},
},
img: {
borderRadius: defaultTheme.borderRadius.lg,
},
},
},
},
},
},
plugins: [
aspectRatio,
forms,
typography,
plugin(function({ addUtilities }) {
const utilFormSwitch = {
".form-switch": {
border: "transparent",
"background-color": colors.gray[300],
"background-image":
"url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e\")",
"background-position": "left center",
"background-repeat": "no-repeat",
"background-size": "contain !important",
"vertical-align": "top",
"&:checked": {
border: "transparent",
"background-color": "currentColor",
"background-image":
"url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e\")",
"background-position": "right center",
},
"&:disabled, &:disabled + label": {
opacity: ".5",
cursor: "not-allowed",
},
},
};
addUtilities(utilFormSwitch);
}),
],
};