template-web-astro/tailwind.config.cjs
Florian Bouillon 211cfc4197 fix: Tailwind incorrectly using the font
Signed-off-by: Florian BOUILLON <f.bouillon@aptatio.com>
2023-12-06 11:00:30 +01:00

28 lines
665 B
JavaScript

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