⬆️ Upgrade tailwind & postcss config

This commit is contained in:
pheralb 2024-04-20 23:41:52 +01:00
parent 038edfa2ae
commit 5e349a68a0
3 changed files with 11 additions and 9 deletions

View File

@ -1,6 +0,0 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}

6
postcss.config.js Normal file
View File

@ -0,0 +1,6 @@
export default {
plugins: {
tailwindcss: {},
autoprefixer: {}
}
};

View File

@ -1,5 +1,7 @@
import { fontFamily } from 'tailwindcss/defaultTheme';
/** @type {import('tailwindcss').Config} */ /** @type {import('tailwindcss').Config} */
module.exports = { export default {
darkMode: 'class', darkMode: 'class',
content: ['./src/**/*.{html,js,svelte,ts}'], content: ['./src/**/*.{html,js,svelte,ts}'],
theme: { theme: {
@ -9,8 +11,8 @@ module.exports = {
light: '#f5f5f5' light: '#f5f5f5'
}, },
fontFamily: { fontFamily: {
sans: ['InterVariable', 'sans-serif'], sans: ['InterVariable', ...fontFamily.sans],
mono: ['GeistMono', 'monospace'] mono: ['GeistMono', ...fontFamily.mono]
}, },
fontSize: { fontSize: {
mini: '14px' mini: '14px'