2024-09-23 10:08:42 +01:00
|
|
|
import type { Config } from 'tailwindcss';
|
2024-04-20 23:41:52 +01:00
|
|
|
|
2024-09-23 10:08:42 +01:00
|
|
|
// Plugins:
|
|
|
|
import defaultTheme from 'tailwindcss/defaultTheme';
|
|
|
|
import twTypography from '@tailwindcss/typography';
|
|
|
|
|
|
|
|
const config = {
|
2023-03-15 11:28:22 +00:00
|
|
|
darkMode: 'class',
|
|
|
|
content: ['./src/**/*.{html,js,svelte,ts}'],
|
|
|
|
theme: {
|
|
|
|
extend: {
|
2024-10-01 10:49:59 +01:00
|
|
|
typography: {
|
|
|
|
DEFAULT: {
|
|
|
|
css: {
|
|
|
|
'code::before': {
|
|
|
|
content: '""'
|
|
|
|
},
|
|
|
|
'code::after': {
|
|
|
|
content: '""'
|
|
|
|
},
|
|
|
|
'h1 a': {
|
|
|
|
'text-decoration': 'none'
|
|
|
|
},
|
|
|
|
'h2 a': {
|
|
|
|
'text-decoration': 'none'
|
|
|
|
},
|
|
|
|
blockquote: {
|
|
|
|
'font-style': 'normal'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-03-15 11:28:22 +00:00
|
|
|
colors: {
|
2023-03-20 10:30:32 +00:00
|
|
|
dark: '#161616',
|
|
|
|
light: '#f5f5f5'
|
2023-03-15 11:28:22 +00:00
|
|
|
},
|
|
|
|
fontFamily: {
|
2024-09-23 10:08:42 +01:00
|
|
|
sans: ['InterVariable', ...defaultTheme.fontFamily.sans],
|
|
|
|
mono: ['GeistMono', ...defaultTheme.fontFamily.mono]
|
2023-03-15 11:28:22 +00:00
|
|
|
},
|
|
|
|
fontSize: {
|
|
|
|
mini: '14px'
|
2025-02-01 20:40:23 +00:00
|
|
|
},
|
|
|
|
keyframes: {
|
|
|
|
'accordion-down': {
|
|
|
|
from: { height: '0' },
|
|
|
|
to: { height: 'var(--bits-accordion-content-height)' }
|
|
|
|
},
|
|
|
|
'accordion-up': {
|
|
|
|
from: { height: 'var(--bits-accordion-content-height)' },
|
|
|
|
to: { height: '0' }
|
|
|
|
},
|
|
|
|
'caret-blink': {
|
|
|
|
'0%,70%,100%': { opacity: '1' },
|
|
|
|
'20%,50%': { opacity: '0' }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
animation: {
|
|
|
|
'accordion-down': 'accordion-down 0.2s ease-out',
|
|
|
|
'accordion-up': 'accordion-up 0.2s ease-out',
|
|
|
|
'caret-blink': 'caret-blink 1.25s ease-out infinite'
|
2023-03-15 11:28:22 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-12-12 13:55:33 -03:00
|
|
|
plugins: [
|
2024-09-23 10:08:42 +01:00
|
|
|
twTypography,
|
2023-12-12 13:55:33 -03:00
|
|
|
({ addUtilities }) => {
|
|
|
|
addUtilities({
|
|
|
|
'.text-balance': {
|
|
|
|
'text-wrap': 'balance'
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
]
|
2024-09-23 10:08:42 +01:00
|
|
|
} satisfies Config;
|
|
|
|
|
|
|
|
export default config;
|