-
Notifications
You must be signed in to change notification settings - Fork 251
feat: add Live Theme Editor with default themes, export/import, and contrast check #951
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
s1dhu98
wants to merge
21
commits into
CircuitVerse:main
Choose a base branch
from
s1dhu98:feat/live-theme-editor
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,446
−457
Open
Changes from 5 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
a6bf04a
feat: add Live Theme Editor with default themes, export/import, contr…
s1dhu98 9696d6e
refactor: implement CodeRabbit review suggestions
s1dhu98 66eb139
style: fix oxfmt issues in themes, tests, and router
s1dhu98 4318278
Merge branch 'main' into feat/live-theme-editor
s1dhu98 befb3ec
fix: Address CodeRabbit review comments for PR 951
s1dhu98 27bdcb1
style: fix oxfmt formatting issues in theme editor files
s1dhu98 2b243b9
refactor: Address nitpick issues in theme editor implementation
s1dhu98 150ff37
fix: Add localStorage error handling to theme save/delete operations
s1dhu98 1249f7d
fix: final touch-ups for LiveThemeEditor
s1dhu98 0473b91
fix: improve luminance function to handle HSL/HSLA colors
s1dhu98 ea13a88
Merge branch 'main' into feat/live-theme-editor
s1dhu98 890550f
Merge branch 'main' into feat/live-theme-editor
s1dhu98 8c5a616
feat(themes): add Sunset Glow palette to themes object
s1dhu98 e254f54
Merge branch 'main' into feat/live-theme-editor
s1dhu98 cf50afc
fix: complete Sunset Glow theme with all required CSS variables
s1dhu98 874c4c5
fix: normalize Sunset Glow theme formatting and fix WCAG contrast issues
s1dhu98 cf1fec8
refactor: use getThemeCardSvg helper for dynamic theme preview images
s1dhu98 d9ae470
fix(theme-editor): address PR code review comments
s1dhu98 0ce00ff
test: add behavioral assertions for themeEditor functions
s1dhu98 657e103
fix(ci): remove incorrect working-directory in tauri-build workflow
s1dhu98 8d196e5
Revert "fix(ci): remove incorrect working-directory in tauri-build wo…
s1dhu98 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| #!/bin/sh | ||
| # post-checkout hook | ||
| exit 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| #!/bin/sh | ||
| # post-commit hook | ||
| exit 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| #!/bin/sh | ||
| # post-merge hook | ||
| exit 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| #!/bin/sh | ||
| # pre-push hook | ||
| exit 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,114 @@ | ||
| import type { ThemeMap } from "/workspaces/cv-frontend-vue/src/plugins/themeEditor"; | ||
|
|
||
| export const DEFAULT_THEMES: Record<string, ThemeMap> = { | ||
| cute: { | ||
| "--primary": "#ff6fa3", | ||
| "--bg-navbar": "#ff9fcf", | ||
| "--text-navbar--alt": "#222", | ||
| "--qp-br-tl": "#ffd6e8", | ||
| "--qp-br-rd": "#ffb3d9", | ||
| "--br-circuit": "#ff6fa3", | ||
| "--br-circuit-cur": "#ffffff", | ||
| "--bg-tabs": "#ffdcef", | ||
| "--bg-circuit": "#fff0f6", | ||
| "--text-lite": "#ffffff", | ||
| "--text-dark": "#222", | ||
| "--text-panel": "#3a1f2b", | ||
| "--text-circuit": "#3a1f2b", | ||
| "--context-text": "#fff", | ||
| "--context-text-hov": "#222", | ||
| "--cus-radio_label": "#a85b79", | ||
| "--br-secondary": "#ffbfd6", | ||
| "--br-primary": "#fff", | ||
| "--bg-primary-moz": "hsla(340, 80%, 80%, 0.95)", | ||
| "--bg-primary-chr": "hsla(340, 80%, 80%, 0.75)", | ||
| "--bg-icons": "#ffb3d9", | ||
| "--bg-text": "#ffeef6", | ||
| "--bg-secondary": "#fff0f6", | ||
| "--canvas-stroke": "#ffe6f2", | ||
| "--canvas-fill": "#fff", | ||
| "--bg-toggle-btn-primary": "#ff8fb3", | ||
| "--primary-btn-hov": "#ff6fa3", | ||
| "--btn-danger": "#ff7b8a", | ||
| "--btn-danger-darken": "#e05571", | ||
| "--disable": "#d8a3b3", | ||
| "--qp-box-shadow-1": "#ffc3de", | ||
| "--qp-box-shadow-2": "#ffb0d1", | ||
| "--cus-btn-hov--bg": "#fff0f6", | ||
| "--cus-btn-hov-text": "#222", | ||
| "--node": "#ff3876", | ||
| "--stroke": "#6b2940", | ||
| "--fill": "#fff0f6", | ||
| "--hover-and-sel": "rgba(255, 111, 163, 0.9)", | ||
| "--wire-draw": "#6b2940", | ||
| "--wire-cnt": "#ff3876", | ||
| "--wire-pow": "#ff8fb3", | ||
| "--wire-sel": "#ffc3de", | ||
| "--wire-lose": "#ff7b8a", | ||
| "--mini-map": "#ff3876", | ||
| "--mini-map-stroke": "#a82a5a", | ||
| "--input-text": "#6b2940", | ||
| "--secondary-stroke": "#ff7b8a", | ||
| "--text": "#3a1f2b", | ||
| "--wire-norm": "#6b2940", | ||
| "--node-norm": "#ff3876", | ||
| "--splitter": "#ffd6e8", | ||
| "--output-rect": "#ff6fa3", | ||
| }, | ||
| "night-sky": { | ||
| "--primary": "#1f2937", | ||
| "--bg-navbar": "#111827", | ||
| "--text-navbar--alt": "#fff", | ||
| "--qp-br-tl": "#0f172a", | ||
| "--qp-br-rd": "#1f2a44", | ||
| "--br-circuit": "#374151", | ||
| "--br-circuit-cur": "#9ca3af", | ||
| "--bg-tabs": "#0b1220", | ||
| "--bg-circuit": "#0f172a", | ||
| "--text-lite": "#e5e7eb", | ||
| "--text-dark": "#111827", | ||
| "--text-panel": "#e5e7eb", | ||
| "--text-circuit": "#e5e7eb", | ||
| "--context-text": "#e5e7eb", | ||
| "--context-text-hov": "#000", | ||
| "--cus-radio_label": "#9ca3af", | ||
| "--br-secondary": "#4b5563", | ||
| "--br-primary": "#374151", | ||
| "--bg-primary-moz": "hsla(220, 20%, 10%, 0.92)", | ||
| "--bg-primary-chr": "hsla(220, 20%, 10%, 0.72)", | ||
| "--bg-icons": "#374151", | ||
| "--bg-text": "#0b1220", | ||
| "--bg-secondary": "#0b1220", | ||
| "--canvas-stroke": "#0b1220", | ||
| "--canvas-fill": "#0b1220", | ||
| "--bg-toggle-btn-primary": "#3b82f6", | ||
| "--primary-btn-hov": "#2563eb", | ||
| "--btn-danger": "#ef4444", | ||
| "--btn-danger-darken": "#b91c1c", | ||
| "--disable": "#6b7280", | ||
| "--qp-box-shadow-1": "#0b1220", | ||
| "--qp-box-shadow-2": "#111827", | ||
| "--cus-btn-hov--bg": "#111827", | ||
| "--cus-btn-hov-text": "#fff", | ||
| "--node": "#10b981", | ||
| "--stroke": "#9ca3af", | ||
| "--fill": "#0b1220", | ||
| "--hover-and-sel": "rgba(59,130,246,0.8)", | ||
| "--wire-draw": "#9ca3af", | ||
| "--wire-cnt": "#10b981", | ||
| "--wire-pow": "#60a5fa", | ||
| "--wire-sel": "#60a5fa", | ||
| "--wire-lose": "#ef4444", | ||
| "--mini-map": "#10b981", | ||
| "--mini-map-stroke": "#065f46", | ||
| "--input-text": "#9ca3af", | ||
| "--secondary-stroke": "#ef4444", | ||
| "--text": "#e5e7eb", | ||
| "--wire-norm": "#9ca3af", | ||
| "--node-norm": "#10b981", | ||
| "--splitter": "#374151", | ||
| "--output-rect": "#60a5fa", | ||
| } | ||
| } | ||
|
|
||
| export default DEFAULT_THEMES; |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.