-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.ts
63 lines (61 loc) · 1.78 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
/* eslint-disable global-require */
/* eslint-disable @typescript-eslint/no-require-imports */
/* eslint-disable import/no-extraneous-dependencies */
import { lime } from 'tailwindcss/colors';
import type { Config } from 'tailwindcss';
import type { PluginAPI } from 'tailwindcss/types/config';
const config: Config = {
mode: 'jit',
darkMode: 'selector',
purge: ['./src/**/*.{js,ts,jsx,tsx,mdx}'],
content: [
'./src/**/*.{js,ts,jsx,tsx,mdx}',
'./src/**/*.{js,ts,jsx,tsx,mdx}',
'./src/**/*.{js,ts,jsx,tsx,mdx}',
],
theme: {
extend: {
screens: {
xs: '480px',
},
backgroundImage: {
'gradient-radial': 'radial-gradient(var(--tw-gradient-stops))',
'gradient-conic':
'conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))',
},
colors: {
theme: lime,
},
typography: ({ theme }) => ({
zinc: {
css: {
'--tw-prose-headings': theme('colors.zinc[900]'),
'--tw-prose-invert-headings': theme('colors.zinc[100]'),
},
},
}),
},
},
plugins: [
require('@tailwindcss/typography'),
({ addVariant }: PluginAPI) => {
addVariant(
'prose-inline-code',
'&.prose :where(:not(pre)>code):not(:where([class~="not-prose"] *))',
);
addVariant(
'prose-block-code',
'&.prose :where(pre>code):not(:where([class~="not-prose"] *))',
);
addVariant(
'prose-double-blockquote',
'&.prose :where(blockquote>div>blockquote):not(:where([class~="not-prose"] *))',
);
addVariant(
'prose-triple-blockquote',
'&.prose :where(blockquote>div>blockquote>div>blockquote):not(:where([class~="not-prose"] *))',
);
},
],
};
export default config;