-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.ts
80 lines (78 loc) · 1.79 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
/*
Tailwind CSS configuration file
-------------------------------
*/
import type { Config } from 'tailwindcss';
import plugin from 'tailwindcss/plugin';
import { getTheme } from './src/common/config-manager';
import { ThemeType } from './src/types/other';
// biome-ignore lint/style/noDefaultExport: Default export is required by Tailwind CSS
export default {
content: ['src/**/*.{js,jsx,ts,tsx}'],
darkMode: ['class', `[data-theme="${ThemeType.Dark}"]`],
theme: {
fontFamily: {
sans: [
'Roboto Flex Variable',
'Roboto Flex',
'Roboto',
'Tahoma',
'Arial',
'Helvetica',
'sans-serif',
],
},
transitionDuration: {
// biome-ignore lint/style/useNamingConvention: Naming convention is enforced by Tailwind CSS
DEFAULT: '200ms',
},
extend: {
backgroundImage: {
glass:
'radial-gradient(100% 100% at 50% 25%, oklch(var(--n)/.03), oklch(var(--b3)/.03))',
},
boxShadow: {
emboss: 'inset 0 2px 1px 0 oklch(var(--n) / .2)',
'emboss-none': 'inset 0 0 1px 0 oklch(var(--n) / .2)',
},
dropShadow: {
emboss: '0 -2px 0 oklch(var(--n))',
},
fontFamily: {
heading: [
'Poppins',
'Montserrat',
'Impact',
'Franklin Gothic Medium',
'Candara',
'Calibri',
'sans-serif',
],
button: [
'Poppins',
'Inter Tight',
'Roboto Condensed',
'Arial Narrow',
'Calibri',
'Candara',
'Impact',
'sans-serif',
],
},
},
},
plugins: [
require('@tailwindcss/typography'),
require('daisyui'),
plugin(({ addVariant }) => {
addVariant('mouse-only', '@media (pointer: fine)');
}),
],
daisyui: {
themes: [
{ [ThemeType.Dark]: getTheme(ThemeType.Dark) },
{ [ThemeType.Light]: getTheme(ThemeType.Light) },
],
darkTheme: ThemeType.Dark,
},
} satisfies Config;