Skip to content

Add configurable accent color and dark-mode support - #93

Merged
Fivell merged 1 commit into
masterfrom
feature/configurable-accent-and-dark
Oct 13, 2026
Merged

Fivell merged 1 commit into
masterfrom
feature/configurable-accent-and-dark

Conversation

@Fivell

@Fivell Fivell commented Oct 13, 2026

Copy link
Copy Markdown
Member

Expose the picker's colors as CSS custom properties so a host theme can drive them, add dark-mode support, and make the xdsoft navigation arrows visible in dark mode.

  • --aa-datetimepicker-* custom properties (accent, surface, surface-2, text, text-muted, border, hover) with the previous hard-coded values kept as fallbacks, so existing users see no change.
  • Dark-mode styling that follows the host theme's dark tokens (pinned html[data-theme="dark"] and @media (prefers-color-scheme: dark) when not pinned light).
  • Recolor the prev/next month nav arrows so they stay visible on a dark surface.

Lets active_admin_theme-based admins keep the datetime picker on-theme in both light and dark mode instead of hard-coding the picker's colors downstream.

The dark mixin themed the picker surface but left the month prev/next, the
today home button and the time-column scrollers as their dark PNG sprite, so
they disappeared on the dark background. Invert them to light icons, and
recolor the xdsoft copyright watermark from the dark text tokens instead of
near-black.
@Fivell
Fivell force-pushed the feature/configurable-accent-and-dark branch from 0aa5ccc to 8d6f9dc Compare October 13, 2026 10:51
@Fivell
Fivell merged commit 50f556f into master Oct 13, 2026
25 checks passed
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.

1 participant