Add custom Solstice theme with a dark/light toggle #1

Merged
pitfriedrich merged 1 commits from feature/solstice-theme into main 2026-08-08 13:49:57 +00:00
Owner

Introduces a custom Aura theme variant (amber daylight / aurora cyan
midnight, via -light/-dark token pairs) and a header toggle button to
switch between them at runtime, using the Vaadin 25 ColorScheme API
(Page#setColorScheme, @ColorScheme) rather than the older Lumo-only
theme-attribute pattern. The choice is persisted in a cookie so it
survives reloads and future sessions without any client-side script,
and is restored flash-free on the next visit via an
IndexHtmlRequestListener.

Co-Authored-By: Claude Sonnet 5 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01BNL5syWGwM7KnFcuZeEKQ1

Introduces a custom Aura theme variant (amber daylight / aurora cyan midnight, via -light/-dark token pairs) and a header toggle button to switch between them at runtime, using the Vaadin 25 ColorScheme API (Page#setColorScheme, @ColorScheme) rather than the older Lumo-only theme-attribute pattern. The choice is persisted in a cookie so it survives reloads and future sessions without any client-side script, and is restored flash-free on the next visit via an IndexHtmlRequestListener. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BNL5syWGwM7KnFcuZeEKQ1
pitfriedrich added 1 commit 2026-08-08 13:48:33 +00:00
Add custom Solstice theme with a dark/light toggle
CI / Build & Test (pull_request) Successful in 1m6s
3e209dfcbc
Introduces a custom Aura theme variant (amber daylight / aurora cyan
midnight, via -light/-dark token pairs) and a header toggle button to
switch between them at runtime, using the Vaadin 25 ColorScheme API
(Page#setColorScheme, @ColorScheme) rather than the older Lumo-only
theme-attribute pattern. The choice is persisted in a cookie so it
survives reloads and future sessions without any client-side script,
and is restored flash-free on the next visit via an
IndexHtmlRequestListener.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BNL5syWGwM7KnFcuZeEKQ1
pitfriedrich merged commit 4e98042b35 into main 2026-08-08 13:49:57 +00:00
pitfriedrich deleted branch feature/solstice-theme 2026-08-08 13:49:57 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: pitfriedrich/2FATest#1