Files
indiekit-blog/tailwind.config.js
Ricardo 9a9cd2d251 perf: enable lite-yt-embed, optimize avatar, add cache headers
- YouTube embeds now use lite-youtube facade (loads iframe on click,
  ~800 KiB savings per page with embedded videos)
- Avatar resized from 1000x1000 to 400x400 (152 KiB → 39 KiB)
- lite-yt-embed.css max-width changed to 100% for responsive layout
- Removed unused Tailwind primary color palette from CSS bundle

Confab-Link: http://localhost:8080/sessions/edb1b7b0-da66-4486-bd9c-d1cfa7553b88
2026-03-07 17:26:40 +01:00

84 lines
1.8 KiB
JavaScript

import typography from "@tailwindcss/typography";
/** @type {import('tailwindcss').Config} */
export default {
content: [
"./**/*.njk",
"./**/*.md",
"./_includes/**/*.njk",
"./content/**/*.md",
"./lib/**/*.js",
],
darkMode: "class",
theme: {
extend: {
colors: {
// Warm stone — surfaces, text, structure
surface: {
50: "#faf8f5",
100: "#f4f2ee",
200: "#e8e5df",
300: "#d5d0c8",
400: "#a09a90",
500: "#7a746a",
600: "#5c5750",
700: "#3f3b35",
800: "#2a2722",
900: "#1c1b19",
950: "#0f0e0d",
},
// Warm amber — default interactive, CTAs, focus rings
accent: {
50: "#fffbeb",
100: "#fef3c7",
200: "#fde68a",
300: "#fcd34d",
400: "#fbbf24",
500: "#f59e0b",
600: "#d97706",
700: "#b45309",
800: "#92400e",
900: "#78350f",
950: "#451a03",
},
},
fontFamily: {
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.600"),
maxWidth: "none",
},
},
invert: {
css: {
"--tw-prose-links": theme("colors.accent.400"),
},
},
}),
},
},
plugins: [typography],
};