wagtail / wagtail/guide

Refactor dark/light colour setup

Open
#198 0 comments 1 reaction 1 assignee View on GitHub

@thibaudcolas is already working on this.

Since Jun 18, 2026.

Dominant language
Python
Stars
36
Forks
39
Avg merge
2d 5h
Merged PRs (30d)
3

Description

Switch to css custom properties for text colours and background colours that are changed with the dark/light theme, this would remove a lot of the logic from the seperate scss components and make the codebase a lot cleaner:

I'd suggest something like defining:

--color-text;
--color-text-standout;
--color-background
--color-background-standout;

which we could then map to:

Light theme:

--color-text: $color--off-black;
--color-text-standout: $color--black;
--color-background: $color--light-grey;
--color-background-standout: $color--white;

Dark theme:

--color-text: $color--light-grey;
--color-text-standout: $color--white;
--color-background: $color--off-black;
--color-background-standout: $color--black;

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.