-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.ts
36 lines (34 loc) · 922 Bytes
/
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
import type {Config} from 'tailwindcss'
const plugin = require('tailwindcss/plugin')
const config: Config = {
content: [
'./pages/**/*.{js,ts,jsx,tsx,mdx}',
'./components/**/*.{js,ts,jsx,tsx,mdx}',
'./app/**/*.{js,ts,jsx,tsx,mdx}',
],
theme: {
extend: {
textShadow: {
sm: '4px 4px 2px rgb(0 0 0 / 0.25)',
'y-sm': '0 4px 2px rgb(0 0 0 / 0.25)',
'x-sm': '4px 0 2px rgb(0 0 0 / 0.25)',
lg: '6px 6px 4px rgb(0 0 0 / 0.25)',
'y-lg': '0 6px 4px rgb(0 0 0 / 0.25)',
'x-lg': '6px 0 4px rgb(0 0 0 / 0.25)',
},
},
},
plugins: [
plugin(function ({matchUtilities, theme}: { matchUtilities: Function, theme: Function }) {
matchUtilities(
{
'text-shadow': (value: string) => ({
textShadow: value,
}),
},
{values: theme('textShadow')}
)
})
],
}
export default config