Beautiful, AI-native markdown IDE and LLM wiki
TypeScript 2nd-brainagent-skillsclaudecodexcompany-braindocsknowledge-knowledge-baseknowledge-managementllmllm-wikillm-wiki-karpathymarkdownmarkdown-editormdmdxnotespkmsecond-brainskills
fix(open-knowledge): emit antialiased utility in electron-vite dev (#2671)
sarah96cdc6cae3cc
diff --git a/packages/app/src/globals.css b/packages/app/src/globals.cssindex b4ba26075..e774d1356 100644--- a/packages/app/src/globals.css+++ b/packages/app/src/globals.css@@ -99,8 +99,10 @@* the desktop case only:** When packages/desktop's `electron-vite dev` serves this CSS with- * `root: packages/app + configFile: false`, Vite runs with CWD=packages/desktop- * so Tailwind's auto-detection scans packages/desktop/** — which has no .tsx+ * `root: packages/app` (electron-vite resolves its own config from the desktop+ * package and does not use the app's vite.config.ts), Vite runs with+ * CWD=packages/desktop so Tailwind's auto-detection scans packages/desktop/**+ * — which has no .tsx* files, so zero utility classes get emitted. The @source directive below* anchors the scan to packages/app/src/** (relative to this CSS file) and is* inert for packages/app's own dev because the same paths are already@@ -110,6 +112,18 @@*/@source "./**/*.{tsx,ts,jsx,js}";+/*+ * index.html is the only place the `antialiased` body class is used, and it+ * sits outside the src glob above. Under packages/app's own `bun run dev` /+ * `vite build` it's covered by the Vite HTML entry, but electron-vite dev+ * (CWD=packages/desktop; the app's vite.config.ts is not used) relies solely+ * on these @source+ * directives — without this line `.antialiased` is never emitted there and+ * desktop-dev text renders heavier than production. Keep in sync with the+ * class in index.html.+ */+@source "../index.html";+@custom-variant dark (&:is(.dark *));@theme {