template-web-astro/tailwind.config.cjs
Florian Bouillon 3e91597dca feat: multiple changes
Signed-off-by: Avior <git@avior.me>
2024-09-09 14:27:46 +02:00

28 lines
661 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'
}
}
}
}
}