Problem/Motivation

Drupal 12's new administration theme, confusingly titled "Admin", will likely be the default theme in Drupal 12. It supports dark mode, and by default it matches the user's preference.

Paragraphs hard codes some color values into the CSS, which obviously won't adapt to dark mode.

I created a documentation page that guides maintainers how to fix this at https://www.drupal.org/docs/core-modules-and-themes/core-themes/default-...

Example of the problem:

Issue fork paragraphs-3619718

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

mherchel created an issue. See original summary.

mherchel changed the visibility of the branch 3619718-support-dark-mode to hidden.

mherchel’s picture

Worked with Claude to generate the initial MR. Just pushed, but haven't yet tested. Will test right now and see how good Claude + my docs really are.

mherchel’s picture

Status: Active » Needs review
Issue tags: +Needs manual testing

This is looking good. But needs extensive manual testing (Paragraphs does so much).

We need to test Claro (should be no changes), and both light and dark modes of the Admin theme.

mherchel’s picture

PS. You can test this in 11.4.4 (but not before then)

mherchel’s picture

Issue summary: View changes
ishfaqafridi85’s picture

StatusFileSize
new206.46 KB
new201.22 KB
new201.87 KB
new169.65 KB

I manually tested MR !281 on Drupal 11.4.8 with Paragraphs 1.23.0 using Chrome on macOS.

The test page contained multiple Paragraph types, including expanded sections and nested cards. I tested the Paragraphs editing interface with the following administration themes and modes:

  • Admin theme in light mode
  • Admin theme in dark mode
  • Claro

I also tested expanding and collapsing Paragraph items and opening the Paragraphs action dropdown. The backgrounds, borders, labels, icons, focus styles and dropdown remained readable in both Admin colour modes. Claro retained its expected fallback appearance.

I did not observe an obvious visual regression in the tested interface. The MR works as expected in this environment.

Screenshots attached

vasyl vasylkiv’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: -Needs manual testing

Set the proper status.