1
0
Fork 0
winter-software.com/tailwind.config.mjs
Mia Rose Winter 529b6b9081
All checks were successful
hugo-deploy / deploy (push) Successful in 1m4s
fixed css classes not being build
2024-06-03 00:32:23 +02:00

46 lines
1.3 KiB
JavaScript

/** @type {import('tailwindcss').Config} */
import defaultTheme from 'tailwindcss/defaultTheme'
export default {
darkMode: ['selector', '[data-theme="dark"]'],
content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
safelist: [
"bg-primary", "text-primary-content",
"bg-secondary", "text-secondary-content",
"bg-neutral", "text-neutral-content"
],
theme: {
extend: {
colors: {
primary: 'rgb(var(--color-primary) / <alpha-value>)',
'primary-content': 'rgb(var(--color-primary-content) / <alpha-value>)',
secondary: 'rgb(var(--color-secondary) / <alpha-value>)',
'secondary-content': 'rgb(var(--color-secondary-content) / <alpha-value>)',
neutral: 'rgb(var(--color-neutral) / <alpha-value>)',
'neutral-content': 'rgb(var(--color-neutral-content) / <alpha-value>)',
base: {
100: 'rgb(var(--color-base-100) / <alpha-value>)',
200: 'rgb(var(--color-base-200) / <alpha-value>)',
300: 'rgb(var(--color-base-300) / <alpha-value>)',
},
'base-content': 'rgb(var(--color-base-content) / <alpha-value>)',
},
fontSize: {
sm: '0.750rem',
base: '1rem',
lg: '1.1rem',
xl: '1.333rem',
'2xl': '1.777rem',
'3xl': '2.369rem',
'4xl': '3.158rem',
'5xl': '4.210rem'
},
},
fontFamily: {
sans: ["Inclusive Sans", ...defaultTheme.fontFamily.sans]
}
},
plugins: [],
}