2024-04-21 06:41:52 +08:00
|
|
|
import { fontFamily } from 'tailwindcss/defaultTheme';
|
|
|
|
|
2023-03-15 19:28:22 +08:00
|
|
|
/** @type {import('tailwindcss').Config} */
|
2024-04-21 06:41:52 +08:00
|
|
|
export default {
|
2023-03-15 19:28:22 +08:00
|
|
|
darkMode: 'class',
|
|
|
|
content: ['./src/**/*.{html,js,svelte,ts}'],
|
|
|
|
theme: {
|
|
|
|
extend: {
|
|
|
|
colors: {
|
2023-03-20 18:30:32 +08:00
|
|
|
dark: '#161616',
|
|
|
|
light: '#f5f5f5'
|
2023-03-15 19:28:22 +08:00
|
|
|
},
|
|
|
|
fontFamily: {
|
2024-04-21 06:41:52 +08:00
|
|
|
sans: ['InterVariable', ...fontFamily.sans],
|
|
|
|
mono: ['GeistMono', ...fontFamily.mono]
|
2023-03-15 19:28:22 +08:00
|
|
|
},
|
|
|
|
fontSize: {
|
|
|
|
mini: '14px'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-12-13 00:55:33 +08:00
|
|
|
plugins: [
|
2023-12-14 21:32:52 +08:00
|
|
|
require('@tailwindcss/typography'),
|
2023-12-13 00:55:33 +08:00
|
|
|
({ addUtilities }) => {
|
|
|
|
addUtilities({
|
|
|
|
'.text-balance': {
|
|
|
|
'text-wrap': 'balance'
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
]
|
2023-03-15 19:28:22 +08:00
|
|
|
};
|