refactor: improve web UI with rounded corners and micro-interactions#7
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates the Svelte web dashboard styling by introducing two new “Rust” themes and applying more rounded corners plus small interaction effects (hover/click feedback), with an attempt to improve accessibility via prefers-reduced-motion.
Changes:
- Added new
rust(light) andrust-darkthemes and registered them in theme imports and theme selection data. - Updated multiple UI components to use larger border radii and added hover/active micro-interactions.
- Added a global
prefers-reduced-motionCSS rule intended to reduce motion.
Reviewed changes
Copilot reviewed 13 out of 13 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| web-svelte/src/styles/themes/_rust.css | Adds the Rust light theme CSS variables. |
| web-svelte/src/styles/themes/_rust-dark.css | Adds the Rust dark theme CSS variables. |
| web-svelte/src/styles/themes.css | Imports the new Rust theme files. |
| web-svelte/src/styles/app.css | Adds a prefers-reduced-motion media query for animations/transitions. |
| web-svelte/src/lib/stores/theme.svelte.ts | Registers new theme IDs in the theme store. |
| web-svelte/src/lib/data/themes.ts | Adds Rust themes to theme grouping/selection data. |
| web-svelte/src/lib/components/TunnelCard.svelte | Updates card rounding and adds hover scale micro-interaction. |
| web-svelte/src/lib/components/NewConnection.svelte | Updates section/input rounding and sizing. |
| web-svelte/src/lib/components/EditConnection.svelte | Updates section/input rounding and button micro-interactions. |
| web-svelte/src/lib/components/Dropdown.svelte | Updates rounding for the trigger/menu/options. |
| web-svelte/src/lib/components/DeleteModal.svelte | Updates close button rounding and consolidates transition classes. |
| web-svelte/src/lib/components/ConnectionsPanel.svelte | Updates panel rounding and hover shadow behavior. |
| web-svelte/src/lib/components/Button.svelte | Updates rounding and adds active scale feedback. |
Comments suppressed due to low confidence (1)
web-svelte/src/lib/stores/theme.svelte.ts:32
Themeis used as a type parameter (e.g.$state<Theme>, return type ofgetInitialTheme, and casts inTHEMES.includes(...)), but thetype Theme = typeof THEMES[number];alias was removed and no replacement/import exists. This will fail TypeScript checking/build. Reintroduce theThemetype alias (or import an equivalent) so these annotations compile; consider also typingset(theme: Theme)to avoid repeated casts.
] as const;
const STORAGE_KEY = 'ftm-theme';
let currentTheme = $state<Theme>('dracula');
function getInitialTheme(): Theme {
if (typeof window === 'undefined') return 'dracula';
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Make the web dashboard more friendly and rounded with:
Changes