fix: Tailwind incorrectly using the font

Signed-off-by: Florian BOUILLON <f.bouillon@aptatio.com>
This commit is contained in:
Florian Bouillon 2023-12-06 11:00:30 +01:00
parent 13221b202a
commit 211cfc4197

View File

@ -5,17 +5,21 @@ const colors = require('tailwindcss/colors')
module.exports = { module.exports = {
content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'], content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
theme: { theme: {
extend: {
colors: {
primary: colors.amber // primary color used by the projet, easily swappable
},
fontFamily: { fontFamily: {
// add your default font below
'sans': ['Font Name', ...defaultTheme.fontFamily.sans] 'sans': ['Font Name', ...defaultTheme.fontFamily.sans]
}, },
extend: {
colors: {
// primary color used by the projet, easily swappable
primary: colors.amber
},
container: { container: {
center: true, // default to center the container // default the container to center the content
center: true,
padding: { padding: {
DEFAULT: '1rem' // add a default padding to the container // add a default padding to the container
DEFAULT: '1rem'
} }
}, },
}, },