Docs/2882 [documentation] design tokens documentation is not updated#3212
Docs/2882 [documentation] design tokens documentation is not updated#3212anna-lach wants to merge 14 commits into
Conversation
…on-design-tokens-documentation-is-not-updated
…on-design-tokens-documentation-is-not-updated
…on-design-tokens-documentation-is-not-updated
… new tokens, new scripts for copying new tokens (base-new, theme-new)
|
🕸 Storybook previewYou can view a preview here (commit |
There was a problem hiding this comment.
Pull request overview
This PR updates the design tokens documentation pages in the website to support and display newly introduced token sources (system/primitives/base-new/theme-new) with improved structure, section anchors, and vertical tab navigation.
Changes:
- Adds new token data sources under
website/src/_data/tokens/(including “new” base/theme tokens) and helper data transformers. - Updates design token category pages/templates to introduce anchored sections and support vertical-tab navigation.
- Extends the website build (wireit) token-copy pipeline to include the newly required token JSON files.
Reviewed changes
Copilot reviewed 21 out of 21 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| website/src/categories/design-tokens/text/text.md | Wrapes token tables in a wrapper section and adds <ds-vertical-tabs> to enable in-page navigation. |
| website/src/categories/design-tokens/text/text-tokens-table.njk | Splits text tokens into multiple anchored sections (typography/font size/font weight/deprecated). |
| website/src/categories/design-tokens/space/space.md | Adds wrapper section and <ds-vertical-tabs> next to content. |
| website/src/categories/design-tokens/space/space-tokens-table.njk | Adds anchored heading for the Space section. |
| website/src/categories/design-tokens/size/size.md | Adds wrapper section and <ds-vertical-tabs> next to content. |
| website/src/categories/design-tokens/size/size-tokens-table.njk | Adds a new “Size” section based on primitives and a deprecated section (core). |
| website/src/categories/design-tokens/opacity/opacity.md | Adds wrapper section and <ds-vertical-tabs> next to content. |
| website/src/categories/design-tokens/opacity/opacity-tokens-table.njk | Adds anchored heading for the Opacity section. |
| website/src/categories/design-tokens/color/color.md | Adds wrapper section and <ds-vertical-tabs> next to content. |
| website/src/categories/design-tokens/color/color-tokens-table.njk | Adds new tables for system colors and theme color tokens, plus deprecated palettes. |
| website/src/categories/design-tokens/border/border.md | Adds wrapper section and <ds-vertical-tabs> next to content. |
| website/src/categories/design-tokens/border/border-tokens-table.njk | Adds anchored heading for the Border section. |
| website/src/categories/design-tokens/animation/animation.md | Adds wrapper section and <ds-vertical-tabs> next to content. |
| website/src/categories/design-tokens/animation/animation-tokens-table.njk | Adds anchored heading for the Animation section. |
| website/src/_data/tokens/themeColorTokens.cjs | Adds a helper that flattens theme color tokens into a list for table rendering. |
| website/src/_data/tokens/theme-new.json | Adds the new theme token JSON source for the website to consume. |
| website/src/_data/tokens/textTokens.cjs | Adds a helper that flattens new text tokens and primitive font weights for rendering. |
| website/src/_data/tokens/system.json | Adds the system token JSON source for the website to consume. |
| website/src/_data/tokens/primitives.json | Adds the primitives token JSON source for the website to consume. |
| website/src/_data/tokens/base-new.json | Adds the new base token JSON source for the website to consume. |
| website/package.json | Extends the copy-tokens wireit pipeline to copy the additional token sources into the website. |
…on-design-tokens-documentation-is-not-updated
🕸 Website previewYou can view a preview here (commit |
This pull request updates the website to display new design tokens (and deprecated ones) in a more structured way The main changes include adding new token data files to the website, updating the build process to handle these files, and enhancing the design token documentation pages with improved tables and navigation.