lichx-blog/tailwind.config.ts

44 lines
892 B
TypeScript
Raw Normal View History

2025-07-08 22:34:48 +08:00
// tailwind config file
import plugin from 'tailwindcss/plugin';
2025-08-17 17:22:06 +08:00
import tailwindScrollbar from 'tailwind-scrollbar';
import breakpoints from '~/configs/breakpoints';
2025-07-08 22:34:48 +08:00
export default {
mode: 'jit',
darkMode: 'class',
theme: {
extend: {
colors: {},
letterSpacing: {
doublewidest: '.2em',
},
},
2025-08-17 17:22:06 +08:00
screens: breakpoints,
2025-07-08 22:34:48 +08:00
},
plugins: [
plugin(function ({ addUtilities }) {
addUtilities({
'.scrollbar-hide': {
/* IE and Edge */
'-ms-overflow-style': 'none',
/* Firefox */
'scrollbar-width': 'none',
/* Safari and Chrome */
'&::-webkit-scrollbar': {
display: 'none',
},
},
});
}),
2025-08-17 17:22:06 +08:00
tailwindScrollbar,
2025-07-08 22:34:48 +08:00
],
content: [
'./app.vue',
'./components/**/*.{vue,js,ts}',
'./layouts/**/*.vue',
'./pages/**/*.vue',
],
};