-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
tailwind.config.cjs
45 lines (44 loc) · 1.31 KB
/
tailwind.config.cjs
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
const defaultTheme = require('tailwindcss/defaultTheme')
const tailwindCssTheme = require('tailwindcss-themer')
const themeConfig = require('./theme.config.cjs')
const typography = require('@tailwindcss/typography')
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
theme: {
extend: {
fontFamily: {
sans: ['IBM Plex Mono', ...defaultTheme.fontFamily.sans],
},
colors: {
transparent: 'transparent',
},
typography: theme => ({
DEFAULT: {
css: {
color: theme('textColor.style.primary'),
'--tw-prose-headings': theme('textColor.style.primary'),
'--tw-prose-bold': theme('textColor.style.primary'),
'--tw-prose-quotes': theme('textColor.style.primary'),
'--tw-prose-pre-bg': '#0d1117',
code: {
backgroundColor: theme('backgroundColor.style.primary'),
padding: '5px',
borderRadius: '3px',
},
'code::before': {
content: 'none',
},
'code::after': {
content: 'none',
},
}
},
}),
},
},
plugins: [
tailwindCssTheme(themeConfig),
typography(),
],
}