-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.ts
53 lines (49 loc) · 2.68 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
import type { DefaultColors, TextShadowUtilities } from '@root/types/common/tailwind';
import typography from '@tailwindcss/typography';
import type { Config as DaisyUiConfig } from 'daisyui';
import daisyui from 'daisyui';
import type { Config } from 'tailwindcss';
import tailwindAnimate from 'tailwindcss-animate';
import tailwindPlugin from 'tailwindcss/plugin';
const config: Config = {
content: ['./src/**/*.{ts,tsx}', '!./src/server/**/*.ts', '!./src/utils/server/**/*.ts'],
theme: { extend: { fontFamily: { atelier: ['var(--font-atelier)'] } } },
plugins: [
tailwindPlugin(({ theme, addUtilities }) => {
const colors = theme('colors') as DefaultColors | undefined;
if (!colors) return;
const appTextShadows: TextShadowUtilities = {
'.app-text-shadow-BLUE': {
textShadow: `-2px 2px 0 ${colors.blue[600]}, 2px 2px 0 ${colors.blue[600]}, 2px -2px 0 ${colors.blue[600]}, -2px -2px 0 ${colors.blue[600]}, 0 0 15px ${colors.blue[600]}, 0 0 15px ${colors.blue[900]}`
},
'.app-text-shadow-GREEN': {
textShadow: `-2px 2px 0 ${colors.green[600]}, 2px 2px 0 ${colors.green[600]}, 2px -2px 0 ${colors.green[600]}, -2px -2px 0 ${colors.green[600]}, 0 0 15px ${colors.green[600]}, 0 0 15px ${colors.green[900]}`
},
'.app-text-shadow-RED': {
textShadow: `-2px 2px 0 ${colors.red[600]}, 2px 2px 0 ${colors.red[600]}, 2px -2px 0 ${colors.red[600]}, -2px -2px 0 ${colors.red[600]}, 0 0 15px ${colors.red[600]}, 0 0 15px ${colors.red[900]}`
},
'.app-text-shadow-WHITE': {
textShadow: `-2px 2px 0 ${colors.slate[600]}, 2px 2px 0 ${colors.slate[600]}, 2px -2px 0 ${colors.slate[600]}, -2px -2px 0 ${colors.slate[600]}, 0 0 15px ${colors.slate[600]}, 0 0 15px ${colors.slate[900]}`
},
'.app-text-shadow-YELLOW': {
textShadow: `-2px 2px 0 ${colors.yellow[600]}, 2px 2px 0 ${colors.yellow[600]}, 2px -2px 0 ${colors.yellow[600]}, -2px -2px 0 ${colors.yellow[600]}, 0 0 15px ${colors.yellow[600]}, 0 0 15px ${colors.yellow[900]}`
}
};
addUtilities({
...appTextShadows,
'.text-shadow-dark': {
textShadow: `-2px 2px 0 ${colors.slate[950]}, 2px 2px 0 ${colors.slate[950]}, 2px -2px 0 ${colors.slate[950]}, -2px -2px 0 ${colors.slate[950]}, 0 0 15px ${colors.slate[950]}, 0 0 15px ${colors.slate[950]}`
},
'.text-shadow-light': {
textShadow: `-2px 2px 0 ${colors.slate[50]}, 2px 2px 0 ${colors.slate[50]}, 2px -2px 0 ${colors.slate[50]}, -2px -2px 0 ${colors.slate[50]}, 0 0 15px ${colors.slate[50]}, 0 0 15px ${colors.slate[50]}`
}
});
}),
daisyui,
typography,
tailwindAnimate
],
daisyui: { themes: ['autumn', 'fantasy', 'forest', 'synthwave'], logs: false } satisfies DaisyUiConfig,
darkMode: 'class'
};
export default config;