This repository was archived by the owner on Mar 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.ts
More file actions
88 lines (87 loc) · 3.15 KB
/
tailwind.config.ts
File metadata and controls
88 lines (87 loc) · 3.15 KB
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
import { nextui } from "@nextui-org/react";
import type { Config } from "tailwindcss";
const config: Config = {
content: [
"./node_modules/@nextui-org/theme/dist/**/*.{js,ts,jsx,tsx}",
"./src/pages/**/*.{js,ts,jsx,tsx,mdx}",
"./src/components/**/*.{js,ts,jsx,tsx,mdx}",
"./src/app/**/*.{js,ts,jsx,tsx,mdx}",
"./src/lib/charts/charts.map.ts",
],
theme: {
colors: {
transparent: "var(--color-transparent)",
gray: "rgb(var(--color-gray) / <alpha-value>)",
primary: "rgb(var(--color-primary) / <alpha-value>)",
secondary: "rgb(var(--color-secondary) / <alpha-value>)",
info: "rgb(var(--color-info) / <alpha-value>)",
active: "rgb(var(--color-active) / <alpha-value>)",
error: "rgb(var(--color-error) / <alpha-value>)",
warning: "rgb(var(--color-warning) / <alpha-value>)",
success: "rgb(var(--color-success) / <alpha-value>)",
contrast: "rgb(var(--color-contrast) / <alpha-value>)",
"always-white": "rgb(var(--color-always-white) / <alpha-value>)",
},
screens: {
xs: "570px",
sm: "640px",
md: "768px",
lg: "1024px",
xl: "1280px",
"2xl": "1536px",
},
extend: {
animation: {
wiggle: "wiggle 3.5s ease-in-out infinite",
},
keyframes: {
wiggle: {
"0%, 100%": { transform: "translateY(0)" },
"25%": { transform: "translateY(-3px)" },
"75%": { transform: "translateY(3px)" },
},
},
},
},
darkMode: "class",
plugins: [
nextui({
addCommonColors: true,
themes: {
light: {
colors: {
gray: "rgb(var(--color-gray) / <alpha-value>)",
primary: "rgb(var(--color-primary) / <alpha-value>)",
secondary: "rgb(var(--color-secondary) / <alpha-value>)",
info: "rgb(var(--color-info) / <alpha-value>)",
active: "rgb(var(--color-active) / <alpha-value>)",
error: "rgb(var(--color-error) / <alpha-value>)",
warning: "rgb(var(--color-warning) / <alpha-value>)",
success: "rgb(var(--color-success) / <alpha-value>)",
contrast: "rgb(var(--color-contrast) / <alpha-value>)",
},
},
dark: {
colors: {
gray: "rgb(var(--color-gray) / <alpha-value>)",
primary: "rgb(var(--color-primary) / <alpha-value>)",
secondary: "rgb(var(--color-secondary) / <alpha-value>)",
info: "rgb(var(--color-info) / <alpha-value>)",
active: "rgb(var(--color-active) / <alpha-value>)",
error: "rgb(var(--color-error) / <alpha-value>)",
warning: "rgb(var(--color-warning) / <alpha-value>)",
success: "rgb(var(--color-success) / <alpha-value>)",
contrast: "rgb(var(--color-contrast) / <alpha-value>)",
},
},
},
}),
],
safelist: [
{
pattern:
/(bg|text|border)-(transparent|white|black|gray|gray-text|yellow|blue|indigo|purple|green|red|teal|primary|primary-hover|primary-active|secondary|secondary-hover|secondary-active|info|info-hover|info-active|error|warning|success)/,
},
],
};
export default config;