Skip to content

Commit

Permalink
feat: apply Dana font to tailwind config
Browse files Browse the repository at this point in the history
  • Loading branch information
AmirHosseinKarimi committed Jan 14, 2024
1 parent a24f4d0 commit 00004ea
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tailwind.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { Config } from 'tailwindcss';
import defaultTheme from 'tailwindcss/defaultTheme';

const config = {
darkMode: ['class'],
Expand All @@ -13,6 +14,11 @@ const config = {
},
},
extend: {
fontFamily: {
sans: ['var(--font-dana)', ...defaultTheme.fontFamily.sans],
serif: ['var(--font-dana)', ...defaultTheme.fontFamily.serif],
mono: ['var(--font-dana)', ...defaultTheme.fontFamily.mono],
},
keyframes: {
'accordion-down': {
from: { height: '0' },
Expand All @@ -28,9 +34,6 @@ const config = {
'accordion-up': 'accordion-up 0.2s ease-out',
},
},
fontFamily: {
dana: ['var(--font-dana)'],
},
},
plugins: [require('tailwindcss-animate')],
} satisfies Config;
Expand Down

0 comments on commit 00004ea

Please sign in to comment.