Skip to content

Dark mode: bring brand pastel pair back to landing hero + cards#152

Merged
realmarcin merged 1 commit into
mainfrom
feat/dark-pastel-accents
Jul 5, 2026
Merged

Dark mode: bring brand pastel pair back to landing hero + cards#152
realmarcin merged 1 commit into
mainfrom
feat/dark-pastel-accents

Conversation

@realmarcin

Copy link
Copy Markdown
Contributor

Small dark-mode-only refinement of the TraitMech landing page. The dark theme had neutralized the brand pastel pair (#E6E6EA / #F7CDCD); this restores it in dark mode, additively.

What changed

  • .hero (dark only): darkened pastel-pair gradient fill #555356 → #5a4c4e + a thin full-strength vivid pastel-pair top edge (border-image: linear-gradient(90deg,#E6E6EA,#F7CDCD) 1, top only — existing 1px bottom border zeroed so only the top edge shows the pair).
  • .card (dark only): subtle 2px pastel-pair top bar via a ::before (the base .card has an all-sides border, so a ::before bar keeps it clean rather than filling all sides with border-image).

Both mirrored under the OS-default (@media (prefers-color-scheme: dark) / :root:not([data-theme="light"])) and the :root[data-theme="dark"] toggle selectors.

Files

  • src/traitmech/templates/index.html (source template)
  • pages/index.html (regenerated via just gen-pages)

Verification

  • Light theme byte-identical — every new rule lives inside a dark selector; diff is purely additive with zero removals.
  • Page background stays dark--pastel-b/--bg token values untouched.
  • Dark hero now shows the darkened pastel-pair gradient + vivid pastel-pair top edge; card tops carry a subtle pastel-pair bar; text stays legible.

Do not merge — leader merges.

🤖 Generated with Claude Code

Additive, dark-mode-only refinement of the TraitMech landing. The dark
theme had neutralized the pastel pair (#E6E6EA / #F7CDCD); this restores
it in dark:
- .hero: darkened pastel-pair fill (#555356 -> #5a4c4e) + a thin
  full-strength vivid pastel-pair top edge via border-image.
- .card: subtle 2px pastel-pair top bar (::before) so panel edges carry
  the pair too.

Mirrored under both the OS-default (prefers-color-scheme: dark) and the
data-theme="dark" toggle selectors. Light theme is byte-identical (all
new rules live inside dark selectors); page background stays dark
(--pastel-b/--bg untouched). Template + regenerated pages/index.html.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 5, 2026 08:13

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@realmarcin realmarcin merged commit 0c8e798 into main Jul 5, 2026
1 check passed
@realmarcin realmarcin deleted the feat/dark-pastel-accents branch July 5, 2026 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants