template-web-astro/tailwind.config.cjs
Florian Bouillon e26b4eb4a5
Some checks failed
Build, check & Test / run (push) Failing after 42s
feat: Upgrade template based on projects made with it
Signed-off-by: Florian Bouillon <f.bouillon@aptatio.com>
2023-10-09 11:47:11 +02:00

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