-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.ts
126 lines (121 loc) · 3.39 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
122
123
124
125
126
import type { Config } from 'tailwindcss'
import typography from '@tailwindcss/typography'
import plugin from 'tailwindcss/plugin'
import twAnimate from 'tailwindcss-animate'
type RootTheme = {
':root': Record<`--twdc-${string}`, string>
}
const themes = {
':root': {
'--twdc-grayscale-50': '#FaF5F6',
'--twdc-grayscale-100': '#E4E3E7',
'--twdc-grayscale-200': '#C2C0C8',
'--twdc-grayscale-300': '#A09CA9',
'--twdc-grayscale-400': '#7D798A',
'--twdc-grayscale-500': '#5D5A67',
'--twdc-grayscale-600': '#3D3B43',
'--twdc-grayscale-700': '#1D1C20',
'--twdc-grayscale-800': '#161616',
'--twdc-grayscale-900': '#0A0A0A',
},
} satisfies RootTheme
const themePlugin = plugin(({ addBase }) => {
addBase(themes)
})
export default {
content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
theme: {
extend: {
textShadow: {
sm: '0 1px 2px var(--tw-shadow-color)',
DEFAULT: '0 2px 4px var(--tw-shadow-color)',
lg: '0 0px 12px var(--tw-shadow-color)',
},
dropShadow: ({ theme }) => ({
primary: `0 0 12px ${theme('colors.primary.DEFAULT')}`,
}),
textUnderlineOffset: {
3: '3px',
},
fontFamily: {
belle: ['"La Belle Aurore", sans-serif'],
clvtc: ['clvtc, sans-serif'],
primary: ['Inter', 'sans-serif'],
},
colors: {
primary: {
DEFAULT: '#08FDD8',
},
surface: {
DEFAULT: 'var(--twdc-grayscale-500)',
50: 'var(--twdc-grayscale-50)',
100: 'var(--twdc-grayscale-100)',
200: 'var(--twdc-grayscale-200)',
300: 'var(--twdc-grayscale-300)',
400: 'var(--twdc-grayscale-400)',
500: 'var(--twdc-grayscale-500)',
600: 'var(--twdc-grayscale-600)',
700: 'var(--twdc-grayscale-700)',
800: 'var(--twdc-grayscale-800)',
900: 'var(--twdc-grayscale-900)',
},
},
animation: {
swipeUp: 'swipeUp 1.8s infinite ease-in-out',
marquee: 'marquee linear alternate',
'audio-wave': 'audio-wave 1.2s cubic-bezier(0.4, 0, 0.6, 1) infinite',
},
keyframes: {
swipeUp: {
'0%': { transform: 'translateY(-44px)' },
'10%': { transform: 'translateY(0px)' },
'90%': { transform: 'translateY(0px)' },
'100%': { transform: 'translateY(44px)' },
},
marquee: {
from: { transform: 'translateX(0%)' },
'90%,100%': { transform: 'translateX(var(--marquee-x))' },
},
'audio-wave': {
'0%, 100%': {
height: '4px',
transform: 'translateY(11px)',
},
'50%': {
height: '26px',
transform: 'translateY(0px)',
},
},
},
},
},
plugins: [
typography,
themePlugin,
twAnimate,
plugin(function ({ matchUtilities, theme }) {
matchUtilities(
{
'text-shadow': (value) => ({
textShadow: value,
}),
},
{ values: theme('textShadow') }
)
}),
plugin(({ matchUtilities, theme }) => {
matchUtilities(
{
'animation-delay': (value) => {
return {
'animation-delay': value,
}
},
},
{
values: theme('transitionDelay'),
}
)
}),
],
} satisfies Config