-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathtailwind.config.js
127 lines (125 loc) · 4.42 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
116
117
118
119
120
121
122
123
124
125
126
127
// const colors = require("tailwindcss/colors");
const { createPlugin } = require("windy-radix-palette");
const radixColors = createPlugin();
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./app/**/*.{js,ts,jsx,tsx}",
"./components/**/*.{js,ts,jsx,tsx}",
"./containers/**/*.{js,ts,jsx,tsx}",
"./articles/**/*.{js,ts,jsx,tsx}",
"./changelogs/**/*.{js,ts,jsx,tsx}",
"./customers/**/*.{js,ts,jsx,tsx}",
"./markdown/**/*.{js,ts,jsx,tsx}",
"./lib/**/*.{js,ts,jsx,tsx}",
"./styles/**/*.css",
],
darkMode: "class",
theme: {
extend: {
backgroundColor: {
app: radixColors.alias("mauve.1"),
subtle: radixColors.alias("mauve.2"),
ui: radixColors.alias("mauve.3"),
hover: radixColors.alias("mauve.4"),
active: radixColors.alias("mauve.5"),
solid: {
DEFAULT: radixColors.alias("mauve.9"),
hover: radixColors.alias("mauve.10"),
active: radixColors.alias("mauve.11"),
},
primary: {
app: radixColors.alias("violet.1"),
subtle: radixColors.alias("violet.2"),
ui: radixColors.alias("violet.3"),
hover: radixColors.alias("violet.4"),
active: radixColors.alias("violet.5"),
solid: {
DEFAULT: radixColors.alias("violet.9"),
hover: radixColors.alias("violet.10"),
active: radixColors.alias("violet.11"),
},
},
},
textColor: {
DEFAULT: radixColors.alias("mauve.12"),
low: radixColors.alias("mauve.11"),
hover: radixColors.alias("mauve.10"),
},
ringColor: {
ring: radixColors.alias("mauve.5"),
},
borderColor: {
DEFAULT: radixColors.alias("mauve.6"),
base: radixColors.alias("mauve.6"),
hover: radixColors.alias("mauve.8"),
active: radixColors.alias("mauve.9"),
primary: {
DEFAULT: radixColors.alias("violet.6"),
hover: radixColors.alias("violet.8"),
active: radixColors.alias("violet.9"),
},
},
fontFamily: {
sans: 'var(--font-inter),Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif',
accent:
'var(--font-calsans),-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif',
},
backgroundImage: {
"hero-text-gradient": `linear-gradient(180deg, theme(textColor.DEFAULT) 0%, ${radixColors.alias(
"plum.11",
)} 100%)`,
"hero-text-gradient-lg": `linear-gradient(96deg, theme(textColor.DEFAULT) 72%, ${radixColors.alias(
"plum.10",
)} 105%)`,
"hero-playwright-text-gradient": `linear-gradient(120deg, theme(textColor.DEFAULT) 0%, ${radixColors.alias(
"violet.11",
)} 70%, ${radixColors.alias("plum.10")} 80%)`,
"hero-playwright-text-gradient-dark": `linear-gradient(120deg, white 0%, ${radixColors.alias(
"violet.11",
)} 70%, ${radixColors.alias("plum.10")} 80%)`,
},
keyframes: {
fade: {
"0%": { opacity: 0 },
"50%": { opacity: 1 },
"100%": { opacity: 0 },
},
float: {
"0%": {
filter: "dropShadow(0 5px 15px 0px rgba(0,0,0,0.6))",
transform: "translate3d(0, 0, 0)",
},
"50%": {
filter: "dropShadow(0 25px 15px 0px rgba(0,0,0,0.2))",
transform: "translate3d(-1rem, -0.5rem, 0) scale(0.9)",
},
"100%": {
filter: "dropShadow(0 5px 15px 0px rgba(0,0,0,0.6))",
transform: "translate3d(0, 0, 0)",
},
},
"accordion-down": {
from: { height: 0 },
to: { height: "var(--radix-accordion-content-height)" },
},
"accordion-up": {
from: { height: "var(--radix-accordion-content-height)" },
to: { height: 0 },
},
},
animation: {
fade: "fade 4s ease infinite",
slide: "slide 10s linear infinite",
"accordion-down": "accordion-down 0.2s ease-out",
"accordion-up": "accordion-up 0.2s ease-out",
float: "float 4s ease-in-out infinite",
},
},
},
plugins: [
radixColors.plugin,
require("@tailwindcss/typography"),
require("tailwindcss-animate"),
],
};