-
Notifications
You must be signed in to change notification settings - Fork 2
/
tailwind.config.ts
94 lines (91 loc) · 2.37 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
import { nextui } from '@nextui-org/react'
import type { Config } from 'tailwindcss'
import { BLINK_DURATION } from './config/constants/animation'
import {
AI,
BRONZE,
CUSTOM_DARK,
CUSTOM_LIGHT,
DANGER,
GOLD,
SILVER,
SUCCESS,
} from './config/constants/colors'
const config: Config = {
darkMode: 'class',
content: [
// './pages/**/*.{js,ts,jsx,tsx,mdx}',
// './components/**/*.{js,ts,jsx,tsx,mdx}',
// './ui/**/*.{js,ts,jsx,tsx,mdx}',
'./app/**/*.{js,ts,jsx,tsx,mdx}',
// Make sure it's pointing to the ROOT node_module
'./node_modules/@nextui-org/theme/dist/**/*.{js,ts,jsx,tsx}',
],
theme: {
extend: {
fontFamily: {
inter: ['var(--font-inter)'],
fracktif: ['var(--font-fracktif)'],
},
screens: {
xxs: '360px',
xs: '480px',
},
colors: {
light: CUSTOM_LIGHT,
dark: CUSTOM_DARK,
gold: GOLD,
silver: SILVER,
bronze: BRONZE,
ai: AI,
},
keyframes: {
['blink-light']: {
'0%': { filter: 'brightness(0.8)' },
'100%': { filter: 'brightness(1)' },
},
['blink-dark']: {
'0%': { filter: 'brightness(1.6)' },
'100%': { filter: 'brightness(1)' },
},
},
animation: {
'blink-light-once': `blink-light ${BLINK_DURATION}s linear`,
'blink-dark-once': `blink-dark ${BLINK_DURATION}s linear`,
'pulse-fast': `${BLINK_DURATION}s cubic-bezier(.4, 0, .6, 1) infinite pulse`,
},
backgroundImage: {
'logo-gradient': `linear-gradient(to bottom, ${SUCCESS}, ${DANGER})`,
'gradient-radial': 'radial-gradient(var(--tw-gradient-stops))',
'gradient-conic':
'conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))',
'ai-gradient': 'linear-gradient(to right, #61A5FA, #C084FC, #F87171)',
},
dropShadow: {
ai: `0 0 1px ${AI}`,
},
},
transitionTimingFunction: {
'out-cubic': 'cubic-bezier(.33,1,.68,1)',
},
},
plugins: [
nextui({
themes: {
light: {
colors: {
background: CUSTOM_LIGHT,
foreground: CUSTOM_DARK,
},
},
dark: {
colors: {
background: CUSTOM_DARK,
foreground: CUSTOM_LIGHT,
},
},
},
}),
],
}
export default config