nandi/oripublic Fork 0
b6cd929ab1425a4ef6073ea9c189917cca02cf3c
Commits
Clone
git clone https://git.rickub.com/nandi/ori.git
git clone ssh://git@rickub.com/nandi/ori.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

forked from bots-garden/ori

0013-themes-light-and-dark.yaml · 26 lines · 1.2 KBYAML Blame HistoryRaw
✨ Workspace panel, selectors, previews, desktop app, sandbox template, resizable file tree, light/dark theme 76d62ac k33g yesterday1# Managed by IssueSpec. Hand edits are welcome; keep the schema valid.
2id: 13
3title: Themes light and dark
4state: closed
5author:
6 name: k33g
7 email: ph.charriere@gmail.com
8createdAt: 2026-09-17T22:15:20.392Z
9updatedAt: 2026-09-17T23:20:00.000Z
10labels: []
11body: |
12 Let the user choose between a light and a dark theme, light by default.
13
14 Implemented (2026-09-17):
15 - `ui/src/theme.ts`: zustand store (`theme`: light | dark), `setTheme` / `toggleTheme` /
16 `resetTheme`, `isTheme` guard; remembered in localStorage `ori.theme`; stamps
17 `data-theme` on `<html>` at module load (before the first render) and on every change.
18 - `app.css`: the dark palette moved from `@media (prefers-color-scheme: dark)` to
19 `:root[data-theme="dark"]`; `color-scheme` follows. The OS preference is no longer
20 followed (user's decision: two themes only, light default).
21 - Header button ☾ / ☀ (`aria-label` "Switch to dark/light theme") in `App.tsx`;
22 `MonacoViewer` picks `vs-dark` / `light` from the store; the terminal stays dark.
23 - Tests: +6 store, +1 App (124 vitest total). Quality gate PASS (run #16).
24 - Docs: how-to `switch-the-theme` (EN + FR), architecture explanation, indexes, README.
25tasks: []
26comments: []