From c9c05db7f2362e8fc7bd56996af59408c7d41979 Mon Sep 17 00:00:00 2001 From: Avior Date: Mon, 9 Oct 2023 08:06:25 +0000 Subject: [PATCH] chore: add elements to default tailwind config --- tailwind.config.cjs | 34 +++++++++++++++++++++++++--------- 1 file changed, 25 insertions(+), 9 deletions(-) diff --git a/tailwind.config.cjs b/tailwind.config.cjs index b1ac738..903ebd7 100644 --- a/tailwind.config.cjs +++ b/tailwind.config.cjs @@ -1,9 +1,25 @@ -// const defaultTheme = require('tailwindcss/defaultTheme') - -/** @type {import('tailwindcss').Config} */ -module.exports = { - content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'], - theme: { - extend: {}, - } -} +// const defaultTheme = require('tailwindcss/defaultTheme') + +/** @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 + } + }, + }, + } +}