-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
115 lines (114 loc) · 3.86 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
const plugin = require("tailwindcss/plugin");
import fluidPlugin, { extract, screens, fontSize } from "fluid-tailwind";
/** @type {import('tailwindcss').Config} */
export default {
darkMode: ["class", '[data-theme="dark"]'],
content: {
files: [
"./src/pages/**/*.{ts,tsx}",
"./src/shared/components/**/*.tsx",
"./src/shared/layouts/**/*.tsx",
],
extract,
},
corePlugins: {
preflight: false,
},
theme: {
screens,
fontSize,
extend: {
colors: {
primary: {
50: "color(display-p3 var(--primary-50) / <alpha-value>)",
100: "color(display-p3 var(--primary-100) / <alpha-value>)",
200: "color(display-p3 var(--primary-200) / <alpha-value>)",
300: "color(display-p3 var(--primary-300) / <alpha-value>)",
400: "color(display-p3 var(--primary-400) / <alpha-value>)",
500: "color(display-p3 var(--primary-500) / <alpha-value>)",
600: "color(display-p3 var(--primary-600) / <alpha-value>)",
700: "color(display-p3 var(--primary-700) / <alpha-value>)",
800: "color(display-p3 var(--primary-800) / <alpha-value>)",
900: "color(display-p3 var(--primary-900) / <alpha-value>)",
950: "color(display-p3 var(--primary-950) / <alpha-value>)",
},
},
keyframes: {
fadeIn: {
"0%": { opacity: 0 },
"100%": { opacity: 1 },
},
"accordion-down": {
from: { height: 0 },
to: { height: "var(--kb-accordion-content-height)" },
},
"accordion-up": {
from: { height: "var(--kb-accordion-content-height)" },
to: { height: 0 },
},
"content-show": {
from: { opacity: 0, transform: "scale(0.96)" },
to: { opacity: 1, transform: "scale(1)" },
},
"content-hide": {
from: { opacity: 1, transform: "scale(1)" },
to: { opacity: 0, transform: "scale(0.96)" },
},
"skew-scroll": {
"0%": {
transform: "rotatex(20deg) rotateZ(-20deg) skewX(20deg) translateZ(0) translateY(0)",
},
"100%": {
transform:
"rotatex(20deg) rotateZ(-20deg) skewX(20deg) translateZ(0) translateY(-100%)",
},
},
},
animation: {
"accordion-down": "accordion-down 0.2s ease-out",
"accordion-up": "accordion-up 0.2s ease-out",
"content-show": "content-show 0.2s ease-out",
"content-hide": "content-hide 0.2s ease-out",
"skew-scroll": "skew-scroll 20s linear infinite",
},
},
},
plugins: [
fluidPlugin,
require("tailwindcss-inner-border"),
plugin(({ addComponents, theme }) => {
addComponents({
".starly-container": {
marginInline: "max(0px, 50% - 360px / 2)",
[`@media (min-width: ${theme("screens.sm")})`]: {
marginInline: "max(0px, 50% - 640px / 2)",
},
[`@media (min-width: ${theme("screens.md")})`]: {
marginInline: "max(0px, 50% - 720px / 2)",
},
[`@media (min-width: ${theme("screens.lg")})`]: {
marginInline: "max(0px, 50% - 900px / 2)",
},
[`@media (min-width: ${theme("screens.xl")})`]: {
marginInline: "max(0px, 50% - 1120px / 2)",
},
[`@media (min-width: ${theme("screens.2xl")})`]: {
marginInline: "max(0px, 50% - 1320px / 2)",
},
},
});
addComponents({
".no-scrollbar": {
/* Hide scrollbar for Chrome, Safari and Opera */
"&::-webkit-scrollbar": {
display: "none",
},
/* Hide scrollbar for IE, Edge and Firefox */
"-ms-overflow-style": "none" /* IE and Edge */,
"scrollbar-width": "none" /* Firefox */,
},
});
}),
require("tailwindcss-animate"),
],
};