Skip to content

Docs: Adding foundation section - Colours#220

Open
zoharma wants to merge 4 commits into
mainfrom
zma/ds-theme-docs-foundation-colour
Open

Docs: Adding foundation section - Colours#220
zoharma wants to merge 4 commits into
mainfrom
zma/ds-theme-docs-foundation-colour

Conversation

@zoharma

@zoharma zoharma commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Introduced Foundation section with:

  1. Colour
    1.1 Theme Colours

Changes:

  • Adding Foundation section with colours page
  • Adding theme colours page
  • Added views for both light and dark modes
  • Adding the relevant css and ability to do so.
  • Remove typography and icons (to be pushed to another PR)
  • Remove :root from data-mode="{mode}" so that the mode can be used in any container

@zoharma zoharma force-pushed the zma/ds-theme-docs-foundation-colour branch 3 times, most recently from 075dc35 to 73fc711 Compare June 16, 2026 16:53
@zoharma zoharma marked this pull request as ready for review June 17, 2026 15:43
@zoharma zoharma marked this pull request as draft July 6, 2026 11:39
@zoharma zoharma changed the base branch from main to vbe/new-ds-theme July 6, 2026 11:40
@zoharma zoharma changed the base branch from vbe/new-ds-theme to main July 6, 2026 11:40
@zoharma zoharma force-pushed the zma/ds-theme-docs-foundation-colour branch 2 times, most recently from db21b01 to 710c8d5 Compare July 7, 2026 10:01
@zoharma zoharma changed the title Adding foundation section Adding foundation section - Colours Jul 7, 2026
@zoharma zoharma force-pushed the zma/ds-theme-docs-foundation-colour branch from 2b42962 to 0146d8e Compare July 7, 2026 10:21
@zoharma zoharma changed the title Adding foundation section - Colours Docs: Adding foundation section - Colours Jul 7, 2026
NKatti2011
NKatti2011 previously approved these changes Jul 10, 2026

@NKatti2011 NKatti2011 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.

LGTM

@zoharma zoharma force-pushed the zma/ds-theme-docs-foundation-colour branch 2 times, most recently from a296765 to 24963e6 Compare July 10, 2026 16:07
@zoharma zoharma force-pushed the zma/ds-theme-docs-foundation-colour branch 2 times, most recently from a6f3e7a to 6ab5cbc Compare July 10, 2026 18:02
- Adding Foundation section with colours page
- Adding theme colours page
- Added views for both light and dark modes
- Adding the relevant css and ability to do so.
- Remove typography and icons (to be pushed to another PR)
- Remove :root from [data-mode="${mode}"] so that the mode can be used in any container
@zoharma zoharma force-pushed the zma/ds-theme-docs-foundation-colour branch from 6ab5cbc to 6d711b2 Compare July 10, 2026 18:05
@zoharma zoharma requested a review from NKatti2011 July 10, 2026 18:07
@zoharma zoharma marked this pull request as ready for review July 14, 2026 12:29
zoharma and others added 3 commits July 14, 2026 14:40
- Refactored the theme to remove redundant code and restore missing functionality.
- Added fallback light/dark hex values for improved MUI compatibility (to support MRT)
- Updated and cleaned up theme overrides to consume design tokens exclusively.
- Reorganised the theme file and refreshed documentation/comments throughout.
- Fixed the MuiTab &:hover rule by replacing the incorrect on-primary-container token with on-surface in the DiamondDS theme.
- Removed the unused ThemeOnlyArgs type and marked the unused OutlinedInput theme parameter accordingly.
- Resolved test failures and added new tests for the CSS changes.
- Fixed CSS-related issues.
- Adding Foundation section with colours page
- Adding theme colours page
- Added views for both light and dark modes
- Adding the relevant css and ability to do so.
- Remove typography and icons (to be pushed to another PR)
- Remove :root from [data-mode="${mode}"] so that the mode can be used in any container
NKatti2011
NKatti2011 previously approved these changes Jul 14, 2026
@zoharma zoharma dismissed NKatti2011’s stale review July 14, 2026 15:31

The merge-base changed after approval.

@NKatti2011

Copy link
Copy Markdown
Collaborator

Just realised:

For this ticket - now that data-mode is supported on any container rather than just :root, worth flagging: ThemeProvider's flicker-suppression MutationObserver on 251 only watches document.documentElement, so nested containers using their own data-mode won't get transition suppression. Is this expected/acceptable?

@zoharma

zoharma commented Jul 15, 2026

Copy link
Copy Markdown
Contributor Author

@NKatti2011 that's a good point and it's worth exploring. The main reason for this change here is so that we can show dark mode elements in the docs in Storybook (set in light mode). There might be other usages for it in the future, for components to have their own dark/light mode settings (such as code-views and editors), but that may require further exploration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants