forked from lucky-chap/kaminari
/
tailwind.config.js
86 lines (85 loc) · 2.19 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
/* eslint-disable global-require */
/* eslint-disable sonarjs/no-duplicate-string */
/* eslint-disable import/no-extraneous-dependencies */
/* eslint-disable @typescript-eslint/no-var-requires */
const colors = require("tailwindcss/colors")
const { fontFamily } = require("tailwindcss/defaultTheme")
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./app/**/*.{js,ts,jsx,tsx}",
"./page/**/*.{js,ts,jsx,tsx}",
"./ui/**/*.{js,ts,jsx,tsx}",
],
future: {
hoverOnlyWhenSupported: true,
},
theme: {
extend: {
// https://vercel.com/design/color
colors: {
"gray-1000": "#0D0D0D",
"gray-1001": "#161616",
"gray-1002": "#212121",
gray: {
...colors.zinc,
one: "#a5a5a5",
},
brand: {
main: "#fff",
},
},
fontFamily: {
inter: ["Inter", ...fontFamily.sans],
grotesk: ["Space Grotesk", ...fontFamily.sans],
},
backgroundImage: ({ theme }) => ({
"vc-border-gradient": `radial-gradient(at left top, ${theme(
"colors.gray.500",
)}, 50px, ${theme("colors.gray.800")} 50%)`,
}),
keyframes: ({ theme }) => ({
rerender: {
"0%": {
"border-color": theme("colors.vercel.pink"),
},
"40%": {
"border-color": theme("colors.vercel.pink"),
},
},
highlight: {
"0%": {
background: theme("colors.vercel.pink"),
color: theme("colors.white"),
},
"40%": {
background: theme("colors.vercel.pink"),
color: theme("colors.white"),
},
},
shimmer: {
"100%": {
transform: "translateX(100%)",
},
},
translateXReset: {
"100%": {
transform: "translateX(0)",
},
},
fadeToTransparent: {
"0%": {
opacity: 1,
},
"40%": {
opacity: 1,
},
"100%": {
opacity: 0,
},
},
}),
},
},
plugins: [require("@tailwindcss/forms"), require("@tailwindcss/line-clamp")],
}