template-web-astro/tailwind.config.cjs
Florian Bouillon f1d535073e
All checks were successful
Build, check & Test / run (push) Successful in 6m54s
fix: Tailwind invalid config
Signed-off-by: Avior <github@avior.me>
2023-10-11 22:53:43 +02:00

24 lines
609 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: {
extend: {
colors: {
primary: colors.amber // primary color used by the projet, easily swappable
},
fontFamily: {
'sans': ['Font Name', ...defaultTheme.fontFamily.sans]
},
container: {
center: true, // default to center the container
padding: {
DEFAULT: '1rem' // add a default padding to the container
}
},
},
}
}