mirror of
https://github.com/juherr/kill-the-news.git
synced 2026-06-20 22:03:48 +00:00
refactor(styles): migrate TS template literal styles to real CSS files
Extract CSS from TypeScript template literals into standalone .css files (variables.css, layout.css, components.css, utilities.css) and update src/routes/admin/ui.tsx to import them directly via Wrangler text imports, concatenating the strings at runtime for the inline <style> tag. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
import { designSystem } from "../../styles/index";
|
||||
import variablesCss from "../../styles/variables.css";
|
||||
import layoutCss from "../../styles/layout.css";
|
||||
import componentsCss from "../../styles/components.css";
|
||||
import utilitiesCss from "../../styles/utilities.css";
|
||||
import { interactiveScripts } from "../../scripts/index";
|
||||
|
||||
const designSystem = [variablesCss, layoutCss, componentsCss, utilitiesCss].join("\n");
|
||||
|
||||
type LayoutProps = {
|
||||
title: string;
|
||||
children: import("hono/jsx").Child;
|
||||
|
||||
Reference in New Issue
Block a user