memos/web/src/utils
Steven 7f753bf6d7 refactor(theme): consolidate theme system and polish dark mode colors
- Reduce themes from 6 to 4: system, light, dark, paper
  - Remove midnight (too similar to dark) and whitewall (too similar to light)
  - Drop all unused tokens: chart-*, sidebar-primary, sidebar-border,
    sidebar-ring, shadow-2xs, tracking-normal, spacing
  - Remove redundant @theme inline blocks from dynamic theme files
    (Tailwind only processes them at compile time, not at runtime)
  - Move shared tokens (fonts, radius) to default.css only

- Polish dark mode color palette
  - Consistent cool-slate hue (h265) across all surfaces
  - Proper surface layering: sidebar(0.07) → bg(0.09) → card(0.13) →
    popover(0.17) → secondary(0.19) → muted(0.21) → accent(0.22)
  - Foreground softened to 0.82 (from 0.9) — comfortable off-white
  - Accent more chromatic than muted (0.012 vs 0.008) — hover feels interactive
  - Popover elevated above card (0.17 vs 0.13) — floating elements visible
  - Destructive more vivid (0.62/c0.20) — clearly red on dark surfaces
  - Input border (0.25) more distinct than layout border (0.21)
  - Sidebar foreground (0.68) dimmer than content foreground (0.82)

- Fix inline code background invisible in dark mode (#5674)
  - Muted was same lightness as card — increased to 0.21 for clear contrast
2026-03-02 09:30:57 +08:00
..
remark-plugins fix: allow ampersand in tags to support compound tags 2026-02-11 22:55:45 +08:00
attachment.ts chore: fix linter 2026-01-05 21:57:07 +08:00
auth-redirect.ts fix(web): redirect to auth page instead of explore on session expiry 2026-02-10 21:15:44 +08:00
format.ts refactor: simplify memo-metadata components 2025-12-31 09:27:37 +08:00
i18n.ts refactor: remove MemoContentContext and integrate MemoViewContext 2025-12-28 12:46:12 +08:00
markdown-list-detection.ts chore: tweak comments 2025-11-30 13:16:02 +08:00
markdown-manipulation.ts chore: deprecate remove completed tasks action 2026-01-31 21:03:05 +08:00
memo.ts refactor: migrate to connect-rpc (#5338) 2025-12-11 19:49:07 +08:00
oauth.ts fix(auth): make PKCE optional for OAuth sign-in (#5570) 2026-02-02 23:28:21 +08:00
theme.ts refactor(theme): consolidate theme system and polish dark mode colors 2026-03-02 09:30:57 +08:00
user.ts refactor: migrate HOST roles to ADMIN 2026-01-20 23:38:30 +08:00
uuid.ts feat: implement memo chat frontend (#1938) 2023-07-14 13:09:21 +08:00