-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
118 lines (114 loc) · 3.39 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
// @ts-check
import { nextui } from '@nextui-org/react'
import typography from '@tailwindcss/typography'
import tailwindScrollbarHide from 'tailwind-scrollbar-hide'
import tailwindcssSafeArea from 'tailwindcss-safe-area'
import defaultTheme from 'tailwindcss/defaultTheme'
import plugin from 'tailwindcss/plugin'
import { allColorClasses } from './src/helpers/color-classes'
/** @type {import('tailwindcss').Config}*/
const config = {
content: [
'./src/pages/**/*.{js,ts,jsx,tsx,mdx}',
'./src/components/**/*.{js,ts,jsx,tsx,mdx}',
'./src/app/**/*.{js,ts,jsx,tsx,mdx}',
'./node_modules/@nextui-org/theme/dist/**/*.{js,ts,jsx,tsx}',
],
theme: {
extend: {
backgroundImage: {
'gradient-radial': 'radial-gradient(var(--tw-gradient-stops))',
'gradient-conic':
'conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))',
},
minHeight: {
...defaultTheme.minHeight,
screen: /** @type {string} */ (
/** @type {unknown} */ (['100vh', '100dvh'])
),
},
colors: {
brand: {
DEFAULT: '#5F797A',
50: '#DBE3E1',
100: '#CDD8D5',
200: '#B0C2BF',
300: '#94ABA9',
400: '#779594',
500: '#5F797A',
600: '#4D6163',
700: '#3B494C',
800: '#293235',
900: '#181C1E',
950: '#0F1113',
},
cream: '#faf7ef',
},
fontFamily: {
title: [
'var(--font-poppins)',
'var(--font-inter)',
...defaultTheme.fontFamily.sans,
],
sans: ['var(--font-inter)', ...defaultTheme.fontFamily.sans],
},
animation: {
hover: 'hover 5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite',
wiggle: 'wiggle 10s -5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite',
},
keyframes: {
hover: {
'0%, 100%': { transform: 'translateY(-5%)' },
'50%': { transform: 'translateY(5%)' },
},
wiggle: {
'0%, 100%': { transform: 'rotate(3deg)' },
'50%': { transform: 'rotate(-3deg)' },
},
},
screens: {
xs: '475px',
xs2: '375px',
},
},
},
darkMode: 'class',
plugins: [
nextui(),
typography,
tailwindScrollbarHide,
tailwindcssSafeArea,
plugin(function ({ matchUtilities, theme }) {
matchUtilities(
{
'txt-stroke': (value) => ({
textShadow: `
0 0.1em 0 ${value},
-0.0707em 0.0707em 0 ${value},
0.0707em 0.0707em 0 ${value},
0.1em 0 0 ${value},
-0.1em 0 0 ${value},
-0.0382em 0.0924em 0 ${value},
0.0382em 0.0924em 0 ${value},
-0.0923em 0.0383em 0 ${value},
0.0923em 0.0383em 0 ${value},
0 -0.1em 0 ${value},
-0.0707em -0.0707em 0 ${value},
0.0707em -0.0707em 0 ${value},
-0.0382em -0.0924em 0 ${value},
0.0382em -0.0924em 0 ${value},
-0.0923em -0.0383em 0 ${value},
0.0923em -0.0383em 0 ${value};
`,
}),
},
{
values: theme('colors'),
type: 'color',
}
)
}),
],
safelist: [...allColorClasses],
}
export default config