-
Notifications
You must be signed in to change notification settings - Fork 1
/
tailwind.config.ts
71 lines (70 loc) · 2.71 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
import type { Config } from 'tailwindcss';
import defaultTheme from 'tailwindcss/defaultTheme';
import typography from '@tailwindcss/typography';
import scrollbar from 'tailwind-scrollbar';
/** @type {import('tailwindcss').Config} */
export default {
content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
theme: {
extend: {
fontFamily: {
sans: ['Rubik', ...defaultTheme.fontFamily.sans],
mono: ['"JetBrains Mono"', ...defaultTheme.fontFamily.mono],
ptmono: ['"PT Mono"', ...defaultTheme.fontFamily.mono],
},
colors: {
// lightModeBg: '#E6E6E6', // Default
lightModeBg: '#FAF5FF', // Lavender Whip
// lightModeBg: '#FEF5EA', // Creame
darkModeBg: '#1A1A1A',
accentColor: '#A682FF',
accentColorLight: '#daccff',
lightModeText: 'hsl(0deg, 0%, 26%)',
darkModeText: 'white',
darkCodeBg: '#333333',
lightCodeBg: '#CCCCCC',
},
screens: {
handheld: { max: '1024px' },
gthandheld: { min: '1025px' },
w500: { max: '600px' },
w400: { max: '400px' },
},
// eslint-disable-next-line @typescript-eslint/no-explicit-any
typography: (theme: any) => ({
// default: {
// css: {
// 'code::before': {
// // display: 'none',
// },
// 'code::after': {
// // display: 'none',
// },
// },
// },
lightMode: {
css: {
'--tw-prose-kbd': theme('colors.lightModeText'),
'--tw-prose-quote-borders': theme(
'colors.lightModeText'
),
'--tw-prose-bullets': theme('colors.lightModeText'),
'--tw-prose-code': theme('colors.lightModeText'),
},
},
darkMode: {
css: {
'--tw-prose-kbd': theme('colors.darkModeText'),
'--tw-prose-quote-borders': theme(
'colors.darkModeText'
),
'--tw-prose-bullets': theme('colors.darkModeText'),
'--tw-prose-code': theme('colors.darkModeText'),
},
},
}),
},
},
darkMode: 'class',
plugins: [typography, scrollbar],
} satisfies Config;