-
Notifications
You must be signed in to change notification settings - Fork 2
/
tailwind.config.ts
85 lines (80 loc) · 2.09 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
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
import defaultTheme from "tailwindcss/defaultTheme";
import colors from "tailwindcss/colors";
import { default as flattenColorPalette } from "tailwindcss/lib/util/flattenColorPalette";
/** @type {import('tailwindcss').Config} */
module.exports = {
darkMode: 'class',
content: [
"./app/**/*.{js,ts,jsx,tsx,mdx}",
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
"./components/**/*.{js,ts,jsx,tsx,mdx}",
// Or if using `src` directory:
"./src/**/*.{js,ts,jsx,tsx,mdx}",
],
theme: {
fontWeight: {
hairline: 100,
thin: 200,
light: 300,
normal: 400,
medium: 500,
semibold: 600,
bold: 700,
extrabold: 800,
black: 900,
},
extend: {
filter: {
'black-image': 'brightness(0) invert(1)',
},
colors: {
'xteal': '#00B8CC',
'light': '#8896AB',
'dark': '#5D646D',
'search-dark': '#3B3B3B',
},
fontFamily: {
montserrat: "'Montserrat', sans-serif",
exo: "'Exo', sans-serif",
},
height: {
'screen-1/3': '33vh',
'screen-1/4': '25vh',
'screen-1/2': '50vh',
'screen-2/3': '66vh',
'screen-3/4': '75vh',
},
keyframes: {
fadeIn: {
'0%': { opacity: '0' },
'100%': { opacity: '1' },
},
fadeOut: {
'0%': { opacity: '1' },
'100%': { opacity: '0' },
},
scroll: {
to: {
transform: "translate(calc(-50% - 0.5rem))",
},
},
},
animation: {
fadeIn: 'fadeIn 0.3s ease-in-out forwards',
fadeOut: 'fadeOut 0.3s ease-in-out forwards',
scroll: "scroll var(--animation-duration, 40s) var(--animation-direction, forwards) linear infinite",
},
},
},
plugins: [addVariablesForColors],
mode: 'jit',
}
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,
});
}