Files
bookhoard/tailwind.config.ts
T
john-okeefe 737693db60 fix: remove custom CSS, centralize prose styling in tailwind config
- Remove custom CSS <style> tags from docs template (violates guidelines)
- Move prose typography customization to tailwind.config.ts
- Use theme tokens for all colors (adjustable with theme)
- Set code blocks to background.secondary (darker than primary)
- Remove duplicate inline typography config from both templates
- Now uses single source of truth for documentation styling
2026-02-03 09:11:35 -05:00

66 lines
1.6 KiB
TypeScript

import type { Config } from 'tailwindcss';
const config: Config = {
content: [
"./templates/**/*.{templ,html}",
"./web/static/**/*.{html,js}"
],
theme: {
extend: {
colors: {
primary: {
DEFAULT: '#7aa2f7',
50: '#f0f9ff',
100: '#e0f2fe',
200: '#bae6fd',
300: '#7dd3fc',
400: '#38bdf8',
500: '#0ea5e9',
600: '#0284c7',
700: '#0369a1',
800: '#075985',
900: '#0c4a6e',
},
'bg-primary': '#1a1b26',
'bg-secondary': '#16161e',
'text-primary': '#a9b1d6',
'text-secondary': '#565f89',
'accent': '#7aa2f7',
'border': '#414868',
},
typography: ({ theme }) => ({
invert: {
css: {
'--tw-prose-pre-bg': theme('colors.background.secondary'),
code: {
backgroundColor: theme('colors.background.primary'),
color: theme('colors.text.primary'),
fontWeight: '400',
},
'code::before': {
content: '""',
},
'code::after': {
content: '""',
},
'pre code': {
backgroundColor: 'transparent',
color: 'inherit',
},
pre: {
backgroundColor: theme('colors.background.secondary'),
color: theme('colors.text.primary'),
},
},
},
}),
}
},
plugins: [
require('@tailwindcss/forms'),
require('@tailwindcss/typography'),
],
};
export default config;