svgl/tailwind.config.ts

59 lines
1.2 KiB
TypeScript
Raw Permalink Normal View History

import type { Config } from 'tailwindcss';
// Plugins:
import defaultTheme from 'tailwindcss/defaultTheme';
import twTypography from '@tailwindcss/typography';
const config = {
2023-03-15 19:28:22 +08:00
darkMode: 'class',
content: ['./src/**/*.{html,js,svelte,ts}'],
theme: {
extend: {
2024-10-01 17:49:59 +08:00
typography: {
DEFAULT: {
css: {
'code::before': {
content: '""'
},
'code::after': {
content: '""'
},
'h1 a': {
'text-decoration': 'none'
},
'h2 a': {
'text-decoration': 'none'
},
blockquote: {
'font-style': 'normal'
}
}
}
},
2023-03-15 19:28:22 +08:00
colors: {
2023-03-20 18:30:32 +08:00
dark: '#161616',
light: '#f5f5f5'
2023-03-15 19:28:22 +08:00
},
fontFamily: {
sans: ['InterVariable', ...defaultTheme.fontFamily.sans],
mono: ['GeistMono', ...defaultTheme.fontFamily.mono]
2023-03-15 19:28:22 +08:00
},
fontSize: {
mini: '14px'
}
}
},
plugins: [
twTypography,
({ addUtilities }) => {
addUtilities({
'.text-balance': {
'text-wrap': 'balance'
}
});
}
]
} satisfies Config;
export default config;