From e7f9e52a93c29217ead4ccdbd1a7d248af2bce8a Mon Sep 17 00:00:00 2001 From: Destan Sarpkaya Date: Wed, 4 Nov 2026 23:38:20 +0100 Subject: [PATCH] style(theme): switch the brand palette from green to orange (#E95420) (#19) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ### Description This PR replaces the hero gradient SVG with an orange version. It also switches the brand palette from green to orange, with `#E95420` as the base color. | Role | Color | Source | |---|---|---| | color | `#E95420` | base color | | hover | `#EC6E41` | base mixed with 15% white | | pressed | `#C34113` | middle stop of the hero gradient | | faded | `#E954202f` | base at the previous transparency | | focus background | `#E954201a` | base at the previous transparency | Changed places: - The theme files `src/ui/theme/themes.ts` and `src/themes.ts`. - The Naive UI primary colors in light mode. Light mode used the library's default green before. - The colored card gradient, which uses the hero gradient stops. - The focus backgrounds of `c-input-text` and `c-select`. - The UnoCSS `primary` color. - The PWA theme color, the Safari mask icon, and the color converter's starting color. - The hero in `src/layouts/base.layout.vue` has no divider under the title. The divider styles were the only user of `useThemeVars` in that file, so the import is gone too. ### Additional context - The `success` color stays green on purpose. - The hero SVG keeps the gradient id `small-hero-gradient-1`. A short id like `a` could clash with other inline SVGs on the page. - The favicons and app icon PNGs in `public/` keep the old colors. - Verification: `pnpm typecheck` passes, and ESLint passes on the changed `src` files. Screenshots of the home page in light and dark mode showed the orange hero and badges. I did not run the production build or the unit tests. --- ### What is the purpose of this pull request? - [ ] Bug fix - [ ] New Feature - [ ] Documentation update - [x] Other 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01PEUYi1VdYVqUgdM21rF6Xe --------- Co-authored-by: Claude --- index.html | 2 +- public/safari-pinned-tab.svg | 2 +- src/assets/hero-gradient.svg | 28 ++++++------------- src/components/ColoredCard.vue | 4 +-- src/layouts/base.layout.vue | 12 +------- src/themes.ts | 15 +++++++--- src/tools/color-converter/color-converter.vue | 2 +- src/ui/c-input-text/c-input-text.theme.ts | 2 +- src/ui/c-select/c-select.theme.ts | 2 +- src/ui/theme/themes.ts | 16 +++++------ unocss.config.ts | 2 +- vite.config.ts | 2 +- 12 files changed, 38 insertions(+), 51 deletions(-) diff --git a/index.html b/index.html index 9e2fa6cc..7f726248 100644 --- a/index.html +++ b/index.html @@ -20,7 +20,7 @@ - + diff --git a/public/safari-pinned-tab.svg b/public/safari-pinned-tab.svg index ed942cc7..10a144fc 100644 --- a/public/safari-pinned-tab.svg +++ b/public/safari-pinned-tab.svg @@ -1,6 +1,6 @@ - + diff --git a/src/assets/hero-gradient.svg b/src/assets/hero-gradient.svg index 8d7c624e..4d7c76a9 100644 --- a/src/assets/hero-gradient.svg +++ b/src/assets/hero-gradient.svg @@ -1,23 +1,13 @@ - - - - + + + + - - - - - - - - - - - - - - - \ No newline at end of file + + + + + diff --git a/src/components/ColoredCard.vue b/src/components/ColoredCard.vue index 0407e655..ab501e85 100644 --- a/src/components/ColoredCard.vue +++ b/src/components/ColoredCard.vue @@ -22,8 +22,8 @@ const { icon, title } = toRefs(props);