-
Notifications
You must be signed in to change notification settings - Fork 6
/
tailwind.config.ts
121 lines (110 loc) · 3.22 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
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
import {nextui} from '@nextui-org/theme';
import type { Config } from "tailwindcss";
const defaultTheme = require("tailwindcss/defaultTheme");
const colors = require("tailwindcss/colors");
const { default: flattenColorPalette } = require("tailwindcss/lib/util/flattenColorPalette");
const config: Config = {
content: [
"./src/pages/**/*.{js,ts,jsx,tsx,mdx}",
"./src/components/**/*.{js,ts,jsx,tsx,mdx}",
"./src/app/**/*.{js,ts,jsx,tsx,mdx}",
"./src/**/*.{ts,tsx}",
"./node_modules/@nextui-org/theme/dist/components/[object Object].js"
],
darkMode: "class",
theme: {
fontFamily: {
actor: ['actor', 'sans-serif'],
barlowb: ['barlow', 'sans-serif'],
barlowlight: ['barlowlight', 'sans-serif'],
barlowmedium: ['barlowmedium', 'sans-serif'],
fontsemi: ['fontsemi', 'sans-serif'],
namelight: ['namelight', 'sans-serif'],
},
extend: {
height: {
'155': '155px',
},
gridTemplateRows: {
'21': 'repeat(21, minmax(0, 1fr))',
},
colors: {
'custom-black': "#252525",
'custom-white': "#F2F2F2",
'custom-gray': '#1E1E1E',
'custom-color': '#AE9B9B',
'custom-gray1': '#171616',
'custom-grayt': '#575757',
'white-48': 'rgba(255, 255, 255, 0.48)',
'white-60': 'rgba(255, 255, 255, 0.60)',
'custom-bg': 'rgba(255, 255, 255, 0.25)',
'custom-border': 'rgba(255, 255, 255, 0.18)',
'custom-grayblog': {
DEFAULT: '#575757',
53: 'rgba(87, 87, 87, 0.53)',
},
'custom-graytags': {
DEFAULT: '#151515',
60: 'rgba(21, 21, 21, 0.6)',
},
},
textColor: {
'white-60': 'rgba(255, 255, 255, 0.6)',
'text-black': "#000000"
},
borderColor: {
'white-60': 'rgba(255, 255, 255, 0.6)',
},
width: {
'72': '18rem',
'84': '21rem',
'96': '24rem',
'120': '30rem'
},
spacing: {
'128': '32rem',
'140': '35rem',
'116': "28rem"
},
boxShadow: {
'custom': '0 8px 32px 0 rgba(31, 38, 135, 0.37)',
'custom1': '0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)',
'neon': '0 0 14px rgba(255,255,255,.5), 0 0 20px rgba(255, 255, 255, .5)',
},
backdropBlur: {
'custom': '4px',
},
borderRadius: {
'custom': '10px',
},
letterSpacing: {
'expanded': '0em',
},
backgroundImage: {
"gradient-radial": "radial-gradient(var(--tw-gradient-stops))",
"gradient-conic": "conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))",
},
fontSize: {
'15xl': '15rem',
'10xl': '10rem',
'30px': '30px',
'141px': '141px',
'1.5xl': '1.375rem',
'1.2xl': '1.2rem',
'1.3xl': '1.3rem',
},
},
},
plugins: [addVariablesForColors,nextui(),
],
};
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,
});
}
export default config;