diff options
| author | Dawid Rycerz <dawid@rycerz.xyz> | 2025-07-22 15:08:37 +0300 |
|---|---|---|
| committer | Dawid Rycerz <dawid@rycerz.xyz> | 2025-07-22 15:08:37 +0300 |
| commit | fcc2f4704e39b0e69b377cc138f75027721dac22 (patch) | |
| tree | 732fc94b354a26c08fba9cc9059f9c6c900182be /tailwind.config.js | |
Initial template
Diffstat (limited to 'tailwind.config.js')
| -rw-r--r-- | tailwind.config.js | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/tailwind.config.js b/tailwind.config.js new file mode 100644 index 0000000..1740616 --- /dev/null +++ b/tailwind.config.js @@ -0,0 +1,41 @@ +import defaultTheme from 'tailwindcss/defaultTheme'; +import plugin from 'tailwindcss/plugin'; +import typographyPlugin from '@tailwindcss/typography'; + +export default { + content: ['./src/**/*.{astro,html,js,jsx,json,md,mdx,svelte,ts,tsx,vue}'], + theme: { + extend: { + colors: { + primary: 'var(--aw-color-primary)', + secondary: 'var(--aw-color-secondary)', + accent: 'var(--aw-color-accent)', + default: 'var(--aw-color-text-default)', + muted: 'var(--aw-color-text-muted)', + }, + fontFamily: { + sans: ['var(--aw-font-sans, ui-sans-serif)', ...defaultTheme.fontFamily.sans], + serif: ['var(--aw-font-serif, ui-serif)', ...defaultTheme.fontFamily.serif], + heading: ['var(--aw-font-heading, ui-sans-serif)', ...defaultTheme.fontFamily.sans], + }, + + animation: { + fade: 'fadeInUp 1s both', + }, + + keyframes: { + fadeInUp: { + '0%': { opacity: 0, transform: 'translateY(2rem)' }, + '100%': { opacity: 1, transform: 'translateY(0)' }, + }, + }, + }, + }, + plugins: [ + typographyPlugin, + plugin(({ addVariant }) => { + addVariant('intersect', '&:not([no-intersect])'); + }), + ], + darkMode: 'class', +}; |
