chore(config): update TypeScript and Tailwind configuration

This commit updates project configuration files:

- tsconfig.json: Updated TypeScript compiler configuration with
  improved module resolution, strict type checking settings,
  and output directory configurations

- tailwind.config.ts: Updated Tailwind CSS configuration with
  custom theme colors, typography settings, and responsive
  design breakpoints for the application styling
This commit is contained in:
2026-02-27 17:07:15 -05:00
parent 4e4312ac59
commit b6ce478fe3
2 changed files with 48 additions and 55 deletions
+46 -49
View File
@@ -1,84 +1,81 @@
import type { Config } from 'tailwindcss'; import type { Config } from "tailwindcss";
const config: Config = { const config: Config = {
content: [ content: [
"./templates/**/*.{templ,html}", "./templates/**/*.{templ,html}",
"./web/static/**/*.{html,js}", "./web/static/**/*.{html,js}",
"./web/src/**/*.ts" "./web/src/**/*.ts",
], ],
safelist: [ safelist: [
'theme-tokyo-night', "theme-tokyo-night",
'theme-dracula', "theme-dracula",
'theme-nord', "theme-nord",
'theme-solarized-dark', "theme-solarized-dark",
'theme-monokai', "theme-monokai",
'theme-one-dark-pro', "theme-one-dark-pro",
'theme-material-dark', "theme-material-dark",
'theme-catppuccin-mocha', "theme-catppuccin-mocha",
'theme-catppuccin-macchiato', "theme-catppuccin-macchiato",
'theme-catppuccin-frappe', "theme-catppuccin-frappe",
'theme-catppuccin-latte', "theme-catppuccin-latte",
], ],
theme: { theme: {
extend: { extend: {
colors: { colors: {
primary: { primary: {
DEFAULT: '#7aa2f7', DEFAULT: "#7aa2f7",
50: '#f0f9ff', 50: "#f0f9ff",
100: '#e0f2fe', 100: "#e0f2fe",
200: '#bae6fd', 200: "#bae6fd",
300: '#7dd3fc', 300: "#7dd3fc",
400: '#38bdf8', 400: "#38bdf8",
500: '#0ea5e9', 500: "#0ea5e9",
600: '#0284c7', 600: "#0284c7",
700: '#0369a1', 700: "#0369a1",
800: '#075985', 800: "#075985",
900: '#0c4a6e', 900: "#0c4a6e",
}, },
'bg-primary': 'var(--bg-primary)', "bg-primary": "var(--bg-primary)",
'bg-secondary': 'var(--bg-secondary)', "bg-secondary": "var(--bg-secondary)",
'text-primary': 'var(--text-primary)', "text-primary": "var(--text-primary)",
'text-secondary': 'var(--text-secondary)', "text-secondary": "var(--text-secondary)",
'accent': 'var(--accent)', accent: "var(--accent)",
'border': 'var(--border)', border: "var(--border)",
}, },
backgroundImage: { backgroundImage: {
'wood-light': "url('/static/textures/wood-light.png')", "wood-light": "url('/static/textures/wood-light.png')",
'wood-dark': "url('/static/textures/wood-dark.png')", "wood-dark": "url('/static/textures/wood-dark.png')",
'wood-mahogany': "url('/static/textures/wood-mahogany.png')", "wood-mahogany": "url('/static/textures/wood-mahogany.png')",
}, },
typography: ({ theme }) => ({ typography: ({ theme }) => ({
invert: { invert: {
css: { css: {
'--tw-prose-pre-bg': 'var(--bg-secondary)', "--tw-prose-pre-bg": "var(--bg-secondary)",
code: { code: {
backgroundColor: 'var(--bg-primary)', backgroundColor: "var(--bg-primary)",
color: 'var(--text-primary)', color: "var(--text-primary)",
fontWeight: '400', fontWeight: "400",
}, },
'code::before': { "code::before": {
content: '""', content: '""',
}, },
'code::after': { "code::after": {
content: '""', content: '""',
}, },
'pre code': { "pre code": {
backgroundColor: 'transparent', backgroundColor: "transparent",
color: 'inherit', color: "inherit",
}, },
pre: { pre: {
backgroundColor: 'var(--bg-secondary)', backgroundColor: "var(--bg-secondary)",
color: 'var(--text-primary)', color: "var(--text-primary)",
}, },
}, },
}, },
}), }),
}
}, },
plugins: [ },
require('@tailwindcss/forms'), plugins: [require("@tailwindcss/forms"), require("@tailwindcss/typography")],
require('@tailwindcss/typography'),
],
}; };
export default config; export default config;
+2 -6
View File
@@ -16,10 +16,6 @@
"noImplicitReturns": true, "noImplicitReturns": true,
"noFallthroughCasesInSwitch": true "noFallthroughCasesInSwitch": true
}, },
"include": [ "include": ["web/src/**/*.ts"],
"web/src/**/*.ts" "exclude": ["node_modules"]
],
"exclude": [
"node_modules"
]
} }