Skip to content

Cms-Dark-Mode - #1861

Open
ChrisTouo wants to merge 51 commits into
mainfrom
1209-cms-dark-mode
Open

Cms-Dark-Mode#1861
ChrisTouo wants to merge 51 commits into
mainfrom
1209-cms-dark-mode

Conversation

@ChrisTouo

Copy link
Copy Markdown
Collaborator

No description provided.

@ChrisTouo ChrisTouo linked an issue Jul 29, 2026 that may be closed by this pull request
@ChrisTouo
ChrisTouo force-pushed the 1209-cms-dark-mode branch from 02d3403 to 4c22df7 Compare July 29, 2026 09:49
ChrisTouo and others added 27 commits July 29, 2026 12:14
…ng in (#1858)

Wraps the account/login banner and privacy-policy banner in Vue Transitions
using the grid-template-rows 0fr->1fr technique so height (not just opacity)
animates smoothly, avoiding the layout-shift jank on appearance/removal.

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
- Updated background and text colors in EditContentBasic.vue, EditContentImage.vue, EditContentMedia.vue, EditContentParent.vue, TagSelector.vue, RichTextEditor.vue, FormLabel.vue, LTextToggle.vue, GroupSelector.vue, ImageEditor.vue, and MediaEditor.vue to improve visibility and aesthetics in dark mode.
- Adjusted hover and active states for buttons and toggles to ensure consistent user experience in dark mode.
- Ensured that error and help messages are clearly visible in both light and dark themes.
brucefrankstad26-beep and others added 8 commits August 11, 2026 08:45
- Updated background and text colors in EditContentBasic.vue, EditContentImage.vue, EditContentMedia.vue, EditContentParent.vue, TagSelector.vue, RichTextEditor.vue, FormLabel.vue, LTextToggle.vue, GroupSelector.vue, ImageEditor.vue, and MediaEditor.vue to improve visibility and aesthetics in dark mode.
- Adjusted hover and active states for buttons and toggles to ensure consistent user experience in dark mode.
- Ensured that error and help messages are clearly visible in both light and dark themes.
@brucefrankstad26-beep

Copy link
Copy Markdown
Collaborator
Screenshot 2026-08-11 at 13 15 59 Screenshot 2026-08-11 at 13 16 19 Screenshot 2026-08-11 at 13 16 39 Screenshot 2026-08-11 at 13 16 48 Screenshot 2026-08-11 at 13 16 58 Screenshot 2026-08-11 at 13 17 06 Screenshot 2026-08-11 at 13 17 14 Screenshot 2026-08-11 at 13 17 53

some screenshots from the work so far...any comments?

@MrDirkelz

Copy link
Copy Markdown
Collaborator

Looks good. Only thing I would say is the text feels a bit bright

@johan-bell johan-bell left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The approach (Tailwind darkMode: "class" + persisted theme ref + selector modal) is right, but there are functional regressions and a consistent pattern of replacing light-mode colours instead of adding dark: variants.

Blocking — functional regressions:

  • LInput.vue:192:rightAddOnDisabled/@click were moved outside the span's opening tag, so they render as literal text and the click handler is dead (affects LTextarea, AffinityConfigPanel).
  • DisplayCard.vue:50 — stray Apply line pasted between </script> and <template>.
  • LButton.vue:20 — the sm size variant is commented out; ~15 files still pass size="sm" and lose their padding. Lines 45/47 also duplicate the muted compound with conflicting margins, and the primary/tertiary disabled-state classes were dropped.

Blocking — light-mode breakage (dark colours applied unconditionally): e.g. EditContentValidation.vue:160 (bg-slate-700/800 without dark:), LanguageDisplayCard.vue:31, EmptyState.vue:33, RedirectDisplaycard.vue:89, StorageFormModal.vue:220 (all text-zinc-100/200 on white cards), LCard.vue:59 (dark border in light mode), SideBar.vue:257, LanguageCoverageCard.vue:39-54 (light-mode highlight gone).

Structural: cms/index.html root keeps bg-zinc-50 text-zinc-900 with no dark variants — that's why ~100 per-component overrides were needed, and the ~71 untouched .vue files (groups/, users/, autoGroupMappings/, recommendations/) are unreadable in dark mode. Adding dark variants at the root (plus a pre-paint theme script to avoid the light flash) would shrink this PR a lot.

Minor: French comments in LCard/LInput, unused isDarkTheme export, matchMedia comment narrates the bug (see repo comment style), transparent/conflicting padding classes in DashboardStatCards.

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.

CMS: Dark mode

4 participants