Skip to content

feat(design-data): add Articles section to Spectrum Design Data site - #1230

Merged
GarthDB merged 7 commits into
mainfrom
docs/design-tokens-articles-section
Sep 18, 2026
Merged

GarthDB merged 7 commits into
mainfrom
docs/design-tokens-articles-section

Conversation

@GarthDB

@GarthDB GarthDB commented Jul 10, 2026

Copy link
Copy Markdown
Member

Description

Adds an "Articles" section to the Spectrum Design Data docs site (docs/site/), for release notes, roadmap posts, and in-depth concept/decision write-ups. Ships with a first article, "Understanding Spectrum design tokens", a technical/forward-looking companion to the S2 brand site's design-tokens page.

Related Issue

N/A — internal docs improvement, not tied to an open issue.

Motivation and Context

The public S2 design-tokens page is getting a concept-first refresh aimed at designers, and is deliberately light on where the token format is headed. The Spectrum Design Data site serves the technical audience (token consumers/authors/implementers) and had no home for narrative, point-in-time writing. This adds that home, using real, verified token names/values, and links forward into the published spec (/spec/) rather than duplicating it.

How Has This Been Tested?

  • Built the site locally (moon run site:copyContent && moon run site:build) and verified the Articles nav entry, index listing with category filter, and the article page render correctly with Spectrum table/link styling applied.
  • Verified every token name and value cited in the article against packages/tokens/src/*.json.
  • Confirmed docs/markdown/pages/articles/index.md is correctly generated by the markdown-generator.

Screenshots (if appropriate):

N/A

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@changeset-bot

changeset-bot Bot commented Jul 10, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: bf617dc

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.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

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

Adds a lightweight blog-style section to the docs/site 11ty site for
release notes, roadmap posts, and in-depth concept/decision write-ups,
with a first article covering the token format for a technical audience.

- docs/site/src/articles/: new post collection (directory data + layout)
- docs/site/src/pages/articles/index.md: category-filterable listing page
- docs/site/src/includes/layout/header.liquid, src/data/navigation.js: nav entry
- docs/site/eleventy.config.js: passthrough copy for article images
- docs/site/src/articles/understanding-spectrum-tokens.md: first post,
  a technical/forward-looking companion to the S2 "Design tokens" page,
  using verified real token names and linking into the published spec

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@GarthDB
GarthDB force-pushed the docs/design-tokens-articles-section branch from d5d1ea8 to a85a33e Compare September 17, 2026 22:46
@github-actions

Copy link
Copy Markdown
Contributor

🎨 Token Changes Report

Tokens Changed (0)

Original Branch: main


This comment was automatically generated by the token diff tool. 🤖

@github-actions

Copy link
Copy Markdown
Contributor

🧩 Component Schema Changes Report

No component schema changes detected.

This comment was automatically generated by the component schema diff tool. 🤖

GarthDB and others added 6 commits September 17, 2026 17:04
- **understanding-spectrum-tokens.md**: fix the Banner structure example
  (`banner-gap-horizontal` no longer exists; use
  `banner-padding-horizontal-compact` → `{spacing-100}`) and correct the
  lifecycle field description to match the real nested `lifecycle` object
  (`lifecycle.introduced`/`deprecatedIn`/`replacedBy`) instead of flat
  snake_case field names.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
- **docs/site/src/articles/exporting-tokens-to-dtcg.md**: new article
  covering the three DTCG export entry points (resolve/query/export), how
  $type is derived, mode-aware alias resolution, and the known color-format
  deviation.
- **.claude/skills/docs-voice-tone/SKILL.md**: new skill adapting Spectrum's
  voice principles (Clear, Genuine, Concise, Upfront) into a review pass for
  docs-site prose, meant to run after `humanizer` on new/edited articles.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…pectrum-design-data-4nrb)

- **docs/site/src/pages/articles/index.md**: fixed filter buttons using
  .is-active (unstyled) instead of .is-selected; fixed Liquid tag whitespace
  so markdown-it no longer wraps the second filter button in a stray <p>,
  which broke the flex row layout; restructured card markup with semantic
  classes and correct Badge markup.
- **docs/site/src/assets/js/article-filter.js**: toggle .is-selected +
  aria-pressed instead of the broken .is-active class.
- **docs/site/package.json**: added @spectrum-css/badge dependency, which
  was referenced in markup but never installed, so category labels
  rendered as unstyled plain text.
- **docs/site/src/assets/css/global/global.css**: import @spectrum-css/badge
  CSS.
- **docs/site/src/assets/css/components/articles.css**: new stylesheet for
  filter/list/card layout and typography, values verified against installed
  @spectrum-css/tokens.
- **docs/site/src/assets/css/index.css**: register the new articles.css import.
- **docs/site/eleventy.config.js**: fixed spectrum-body-links transform to
  merge/dedupe the class attribute on <a> tags instead of blindly
  prepending, which produced invalid duplicate class attributes once
  article markup supplied its own class.
- **docs/site/DESIGN.md**: new Impeccable DESIGN.md for the docs site,
  verified against installed @spectrum-css tokens.
- **docs/site/.impeccable/design.json**: sidecar with shadows, motion,
  breakpoints, and narrative extending DESIGN.md.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- **docs/site/src/articles/README.md**: new — documents the four article
  categories already implied by the Articles page subtitle (Concepts,
  Release notes, Roadmap, Decisions), their intended content sources, and
  the minimal per-post frontmatter shape. No code changes needed since the
  filter UI already derives categories dynamically from post frontmatter.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- docs/site/eleventy.config.js: exclude src/articles/README.md from
  the build so the contributor doc stops leaking as a public
  /articles/README/ page.
- docs/site/src/articles/exporting-tokens-to-dtcg.md: correct the
  font-size-200 DTCG example value (16.0 -> 19.0), verified against
  the real CLI output.
- docs/site/src/layouts/article.liquid: fix category badge markup to
  match the index page (spectrum-Badge--neutral, inner Badge-label
  span).
- docs/site/src/assets/css/components/articles.css: Prettier-format
  the font-family declaration.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@GarthDB
GarthDB merged commit f68cece into main Sep 18, 2026
8 checks passed
@GarthDB
GarthDB deleted the docs/design-tokens-articles-section branch September 18, 2026 16:55
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.

1 participant