-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.ts
93 lines (85 loc) · 2.36 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
import plugin from 'tailwindcss/plugin';
import formPlugin from '@tailwindcss/forms';
import typographyPlugin from '@tailwindcss/typography';
import headlessUIPlugin from '@headlessui/tailwindcss';
import type { Config } from 'tailwindcss';
export default {
content: ['./src/**/*.{ts,tsx,mdx}'],
theme: {
colors: {
black: '#000',
white: '#fff',
current: 'currentColor',
transparent: 'transparent',
primary: {
extralight: 'hsl(208, 48%, 17%)',
light: 'hsl(208, 48%, 15%)',
DEFAULT: 'hsl(208, 48%, 10%)',
dark: 'hsl(208, 48%, 6%)',
},
accent: {
light: 'hsl(174, 80%, 50%)',
DEFAULT: 'hsl(174, 80%, 40%)',
},
gray: {
900: 'hsl(208, 20%, 10%)',
800: 'hsl(208, 20%, 20%)',
700: 'hsl(208, 20%, 30%)',
600: 'hsl(208, 20%, 40%)',
500: 'hsl(208, 20%, 50%)',
400: 'hsl(208, 20%, 60%)',
300: 'hsl(208, 20%, 70%)',
200: 'hsl(208, 20%, 80%)',
100: 'hsl(208, 20%, 90%)',
DEFAULT: 'hsl(208, 20%, 80%)',
},
highlight: {
positive: 'hsl(142, 71%, 45%)',
neutral: 'hsl(217, 91%, 60%)',
warn: 'hsl(48, 96%, 53%)',
error: 'hsl(0, 84%, 60%)',
},
},
screens: {
tablet: '780px',
desktop: '1192px',
},
extend: {
typography: ({ theme }: any) => ({
dark: {
css: {
'--tw-prose-body': theme('colors.gray[200]'),
'--tw-prose-headings': theme('colors.white'),
'--tw-prose-links': theme('colors.white'),
'--tw-prose-code': theme('colors.white'),
'--tw-prose-bold': theme('colors.white'),
},
},
}),
},
},
plugins: [
formPlugin,
headlessUIPlugin,
typographyPlugin,
plugin(({ addVariant, addUtilities }) => {
addUtilities({
'.scrollbar-thin': { 'scrollbar-width': 'thin' },
});
addVariant('codeblock', 'pre &');
addVariant('not-codeblock', ':not(pre) > &');
addVariant('trow', 'tbody > &');
addVariant('hocus', ['&:hover', '&:focus']);
addVariant('current', '&[data-active-link="true"]');
addVariant('current', '&[data-active-link="true"]');
addUtilities({
'.animate-delay-2': { 'animation-delay': '2s' },
'.animate-delay-4': { 'animation-delay': '4s' },
'.animate-delay-6': { 'animation-delay': '6s' },
'.animate-delay-8': { 'animation-delay': '8s' },
'.animate-delay-10': { 'animation-delay': '10s' },
'.animate-delay-12': { 'animation-delay': '12s' },
});
}),
],
} satisfies Config;