You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(theme): make cards and sort controls theme-aware with idempotent toggle
Centralize theme init in theme-init.ts so Head and ThemeToggle apply the same palette on toggle and refresh. Card chrome and content use light-first dark: utilities; blog sort buttons use aria-pressed CSS instead of conflicting JS class swaps.
Co-authored-by: Cursor <cursoragent@cursor.com>
Copy file name to clipboardExpand all lines: AGENTS.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -117,10 +117,15 @@ Run `ubs --diff` before every commit. Convert critical/high findings to P0/P1 be
117
117
## Learned User Preferences
118
118
119
119
- Prefer Bun/TypeScript scripts over PowerShell for repo maintenance that calls GitHub APIs or must run on Windows without a full git checkout
120
+
- Theme-aware UI should use light-first base styles with `dark:` overrides on shared surfaces (cards, controls), not dark-only palettes that ignore `html.dark`
121
+
- Cursor `stop` hook runs `bun vet` as a session quality gate; treat vet failures as blocking before ending a session
120
122
121
123
## Learned Workspace Facts
122
124
123
125
- Do not use `:` in tracked file paths (including agent-generated distillation filenames); Git for Windows rejects them and blocks `git pull` / checkout on this repo's primary dev machine
124
126
- Record domain vocabulary in `UBIQUITOUS_LANGUAGE.md`; this repo does not use `CONTEXT.md`
125
127
- Colocate unit tests beside implementation as `src/**/*.test.ts` (there is no top-level `tests/` tree for unit tests)
126
128
- Production canonical site URL is `https://pendragon-coding.dev` (`Astro.site` in `astro.config.mjs`)
129
+
- Class-based theme toggles `dark` on `<html>`; `src/scripts/theme-init.ts` is the single source for Head inline FOUC script and ThemeToggle (keep toggle/refresh idempotent)
130
+
- Blog listing uses `CardList` with `layoutMode="single-column"` (one post per row); myWork/bookshelf/shoutouts use `CardList` grid via SectionList `layoutMode="grid"`
131
+
-`.gitattributes` enforces `* text=auto eol=lf`; phantom dirty files on Windows with empty diffs usually mean `core.autocrlf` / index stat drift, not real content changes
0 commit comments