Skip to content

Docs/2882 [documentation] design tokens documentation is not updated#3212

Draft
anna-lach wants to merge 14 commits into
mainfrom
docs/2882-documentation-design-tokens-documentation-is-not-updated
Draft

Docs/2882 [documentation] design tokens documentation is not updated#3212
anna-lach wants to merge 14 commits into
mainfrom
docs/2882-documentation-design-tokens-documentation-is-not-updated

Conversation

@anna-lach
Copy link
Copy Markdown
Collaborator

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.

Copilot AI review requested due to automatic review settings April 13, 2026 12:18
@anna-lach anna-lach linked an issue Apr 13, 2026 that may be closed by this pull request
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 13, 2026

⚠️ No Changeset found

Latest commit: 09a99ae

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

💥 An error occurred when fetching the changed packages and changesets in this PR
Some errors occurred when validating the changesets config:
The package "@sl-design-system/grid" depends on the ignored package "@sl-design-system/example-data", but "@sl-design-system/grid" is not being ignored. Please add "@sl-design-system/grid" to the `ignore` option.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 13, 2026

🕸 Storybook preview

You can view a preview here (commit 09a99aec0d89f83f4809b7b462433e69d0ebeb7a).

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread website/src/categories/design-tokens/color/color-tokens-table.njk
Comment thread website/src/categories/design-tokens/color/color-tokens-table.njk
Comment thread website/src/categories/design-tokens/size/size-tokens-table.njk Outdated
Copilot AI review requested due to automatic review settings April 14, 2026 10:26
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 25 out of 25 changed files in this pull request and generated 7 comments.

Comment thread website/src/categories/design-tokens/color/color-tokens-table.njk
Comment thread website/src/categories/design-tokens/size/size-tokens-table.njk
Comment thread website/src/categories/design-tokens/space/space-tokens-table.njk
Comment thread website/src/_data/tokens/borderTokens.cjs Outdated
Comment thread website/src/_data/tokens/theme-new.json
Comment thread website/src/categories/design-tokens/size/size-tokens-table.njk
Comment thread website/src/categories/design-tokens/color/color-tokens-table.njk
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 14, 2026

🕸 Website preview

You can view a preview here (commit 09a99aec0d89f83f4809b7b462433e69d0ebeb7a).

Copilot AI review requested due to automatic review settings April 14, 2026 13:10
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 28 out of 28 changed files in this pull request and generated 4 comments.

Comment thread website/src/_data/tokens/elevationTokens.cjs
Comment thread website/src/_data/tokens/theme-new.json
Comment thread website/src/_data/tokens/theme-new.json
Comment thread website/src/categories/design-tokens/color/color-tokens-table.njk
@anna-lach anna-lach changed the title Docs/2882 documentation design tokens documentation is not updated Docs/2882 [documentation] design tokens documentation is not updated Apr 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Documentation] Design tokens documentation is not updated

2 participants