Use vSuite's shared tokens instead of a hand copy (after #117, vJournal#90) #118
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
CrowderSoup/vTodo!118
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "claude/shared-tokens"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The vTodo half of step 1 of vSuite Frame Design (the vJournal note). It's audit item 6: vTodo's colours were a hand copy of vJournal's, with a note to keep them in step.
Merge order:
theme.js, which always setsdata-themetolightordark. Without that, the shared tokens would follow the device even when you'd picked Light.packages/themethis copies (commit812cd411). If #90 changes before it merges, run the script again.What changes
static/vendor/vsuite-theme/holdstokens.cssandframe.cssfrom vJournal'spackages/theme.SOURCE.jsonrecords the vJournal commit and each file's sha256.base.htmlloads them beforeapp.css.app.cssdrops the 28 shared tokens: colours, shadows,--font-readand--font-mono, and the whole dark block. What's left is vTodo's own names (--bg,--surface,--accent,--font-sans: var(--font-ui), …) and layout (radii, column widths,--panel-w).--sidebar-wstays at vTodo's 264px until the frame step moves it to the shared 272px.scripts/vsuite_theme.py:uv run python scripts/vsuite_theme.py ../vJournalcopies from a vJournal checkout. It refuses ifpackages/themehas uncommitted changes there.--checkverifies the copy.tests/test_vsuite_theme.py, which runs in the normal suite, fails if:app.cssdefines a shared token again (apart from--sidebar-w, listed with its reason);app.css.frame.csscomes along. It's unused until vTodo moves to the shared frame, and every class in it isframe-.Why a pinned copy and not a live link: vJournal's repo isn't publicly fetchable, so vTodo's CI can't pull it. A pinned copy with checksums also means a vJournal theme change never breaks a vTodo build unannounced. You update it on purpose.
Checked
🤖 Generated with Claude Code
My work is where vTodo opens, but it had no way to add a task. It now has the same New task button as List, Board and Calendar. The task goes in the active workspace, which the panel names ("New task in Personal"), and the answer is My work's list, so the page stays put. The button clears the workspace the panel was last pointed at, so opening a Chores task from My work and then clicking New task doesn't file the new one in Chores. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>