Files
indiekit-blog/tailwind.config.js
svemagie 234cc8ecea style: serve Lora locally, lighten bg, bump article font size
- Download Lora (400/700, normal/italic, latin+ext) via @fontsource
  and serve from /fonts/ — no Google Fonts dependency
- Lighten light-mode background surface-50: #fefcf0 → #fffef5
- Give widgets and post-cards bg-surface-100 so they read as
  cards against the lighter canvas (brennan.day panel style)
- Nudge prose-lg base size: 1.125rem → 1.175rem with lh 1.8

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-19 15:25:02 +01:00

101 lines
2.2 KiB
JavaScript

import typography from "@tailwindcss/typography";
/** @type {import('tailwindcss').Config} */
export default {
content: [
"./*.njk",
"./content/**/*.md",
"./docs/**/*.md",
"./.interface-design/**/*.md",
"./_includes/**/*.njk",
"./_includes/**/*.md",
"./js/**/*.js",
"./lib/**/*.js",
],
darkMode: "class",
theme: {
extend: {
colors: {
// Gruvbox-inspired warm cream/brown — surfaces, text, structure
surface: {
50: "#fffef5",
100: "#f2e5bc",
200: "#d5c4a1",
300: "#bdae93",
400: "#a89984",
500: "#7c6f64",
600: "#665c54",
700: "#504945",
800: "#3c3836",
900: "#282828",
950: "#1d2021",
},
// Gruvbox blue — links, interactive, CTAs, focus rings
accent: {
50: "#e8f4f6",
100: "#c8dfe4",
200: "#97c5cf",
300: "#6aabb9",
400: "#458588",
500: "#076678",
600: "#065a6b",
700: "#054d5c",
800: "#04404d",
900: "#03333e",
950: "#022730",
},
},
fontFamily: {
serif: [
'"Lora"',
'"Iowan Old Style"',
'"Palatino Linotype"',
'"URW Palladio L"',
"P052",
"serif",
],
sans: [
'"Inter"',
"system-ui",
"-apple-system",
"BlinkMacSystemFont",
"Segoe UI",
"Roboto",
"sans-serif",
],
mono: [
"ui-monospace",
"SF Mono",
"Monaco",
"Cascadia Code",
"monospace",
],
},
maxWidth: {
content: "720px",
wide: "1200px",
},
typography: (theme) => ({
DEFAULT: {
css: {
"--tw-prose-links": theme("colors.accent.500"),
maxWidth: "none",
},
},
lg: {
css: {
fontSize: "1.175rem",
lineHeight: "1.8",
},
},
invert: {
css: {
"--tw-prose-links": theme("colors.accent.400"),
},
},
}),
},
},
plugins: [typography],
};