Skip to content
Draft
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/design-tokens/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Changed

- Dark theme `background.default` updated to pure black `#000000` to support A/B testing and preview builds. CSS variables, JS theme tokens, and Figma JSON have been synchronized accordingly.

## [8.3.0]

### Changed
Expand Down
2 changes: 1 addition & 1 deletion packages/design-tokens/src/css/dark-theme-colors.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/* Background default should be the darkest shade, 0 elevation.
Section is +1 elevation, subsection is +2 elevation.
Alternative should be deprecated. */
--color-background-default: var(--brand-colors-grey-grey900);
--color-background-default: var(--brand-colors-black);
--color-background-section: var(--brand-colors-grey-grey800);
--color-background-subsection: var(--brand-colors-grey-grey700);
--color-background-alternative: var(--brand-colors-grey-grey1000);
Expand Down
2 changes: 1 addition & 1 deletion packages/design-tokens/src/figma/darkTheme.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"background": {
"default": {
"value": "{grey.900}",
"value": "{black}",
"type": "color",
"parent": "Theme Colors/Dark mode",
"description": "For default neutral surface."
Expand Down
6 changes: 3 additions & 3 deletions packages/design-tokens/src/js/themes/darkTheme/colors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ import type { ThemeColors } from '../types';

export const colors: ThemeColors = {
background: {
/** For default neutral surface (#222325) */
default: brandColor.grey900,
/** For default neutral surface (pure black #000000) */
default: brandColor.black,
/** For sunken neutral surface below background/default. (#121314) */
alternative: brandColor.grey1000,
/** For section bg usually over background/default (#31333A) */
section: brandColor.grey800,
/** For subsection bg usually over background/section (#222325) */
/** For subsection bg usually over background/section (#252628) */
subsection: brandColor.grey700,
/** For muted neutral surface (#ffffff0a) */
muted: '#ffffff0a',
Expand Down
Loading