Skip to content

Docs: Adding foundation section - Colours#220

Merged
zoharma merged 1 commit into
mainfrom
zma/ds-theme-docs-foundation-colour
Jul 16, 2026
Merged

Docs: Adding foundation section - Colours#220
zoharma merged 1 commit 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 3 times, most recently 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
- 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.

@zoharma

zoharma commented Jul 16, 2026

Copy link
Copy Markdown
Contributor Author

@NKatti2011 Have added it as issue #258. Could we approve this?

@NKatti2011
NKatti2011 self-requested a review July 16, 2026 10:38
NKatti2011
NKatti2011 previously approved these changes Jul 16, 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.

Am approving but as discussed the removal of data-mode from root may cause downstream issues re flicker suppression in another PR.

@zoharma
zoharma dismissed NKatti2011’s stale review July 16, 2026 10:39

The merge-base changed after approval.

@zoharma
zoharma requested a review from NKatti2011 July 16, 2026 10:40
NKatti2011
NKatti2011 previously approved these changes Jul 16, 2026
@zoharma
zoharma dismissed NKatti2011’s stale review July 16, 2026 10:44

The merge-base changed after approval.

@zoharma
zoharma requested a review from NKatti2011 July 16, 2026 10:45
@zoharma
zoharma force-pushed the zma/ds-theme-docs-foundation-colour branch from 7fad52b to 9af1896 Compare July 16, 2026 10:56
@zoharma
zoharma merged commit a756b49 into main Jul 16, 2026
2 checks passed
@zoharma zoharma added this to the DS Release milestone Jul 16, 2026
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