-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.ts
60 lines (56 loc) · 1.64 KB
/
tailwind.config.ts
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
import type { Config } from "tailwindcss";
import { withUt } from "uploadthing/tw";
const {
default: flattenColorPalette,
} = require("tailwindcss/lib/util/flattenColorPalette");
function addVariablesForColors({ addBase, theme }: any) {
let allColors = flattenColorPalette(theme("colors"));
let newVars = Object.fromEntries(
Object.entries(allColors).map(([key, val]) => [`--${key}`, val])
);
addBase({
":root": newVars,
});
}
// Wrap the entire Tailwind config with `withUt`
const config: Config = withUt({
darkMode: ["class"],
content: [
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
"./components/**/*.{js,ts,jsx,tsx,mdx}",
"./app/**/*.{js,ts,jsx,tsx,mdx}",
],
theme: {
extend: {
colors: {
background: 'var(--background)',
foreground: 'var(--foreground)',
customColor: '#efc0b2',
customColor2: '#efc0b2',
customfontColor: '#9b4831',
customfontColor2: '#7e3c2e',
footerbg: '#e49b85',
},
animation: {
scroll: 'scroll var(--animation-duration, 40s) var(--animation-direction, forwards) linear infinite',
},
keyframes: {
scroll: {
to: {
transform: 'translate(calc(-50% - 0.5rem))',
},
},
},
borderRadius: {
lg: 'var(--radius)',
md: 'calc(var(--radius) - 2px)',
sm: 'calc(var(--radius) - 4px)',
},
boxShadow: {
input: `0px 2px 3px -1px rgba(0,0,0,0.1), 0px 1px 0px 0px rgba(25,28,33,0.02), 0px 0px 0px 1px rgba(25,28,33,0.08)`,
},
},
},
plugins: [addVariablesForColors, require("tailwindcss-animate")],
});
export default config;