Skip to content

docs(border): update token descriptions#178

Merged
bennypowers merged 10 commits intomainfrom
coreyvickery-token-docs-test-02-16
Mar 10, 2026
Merged

docs(border): update token descriptions#178
bennypowers merged 10 commits intomainfrom
coreyvickery-token-docs-test-02-16

Conversation

@coreyvickery
Copy link
Collaborator

Update token docs for border width to provide clearer guidance on usage and examples for LLMs.

Update token docs for border width to provide clearer guidance on usage and examples for LLMs.
@coreyvickery coreyvickery added the docs Improvements or additions to documentation label Feb 17, 2026
@changeset-bot
Copy link

changeset-bot bot commented Feb 17, 2026

🦋 Changeset detected

Latest commit: 715a9f7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@rhds/tokens Patch

Not sure what this means? Click here to learn what changesets are.

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

@netlify
Copy link

netlify bot commented Feb 17, 2026

Deploy Preview for red-hat-design-tokens ready!

Name Link
🔨 Latest commit 715a9f7
🔍 Latest deploy log https://app.netlify.com/projects/red-hat-design-tokens/deploys/69b0305a8d72610008f48965
😎 Deploy Preview https://deploy-preview-178--red-hat-design-tokens.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@bennypowers bennypowers changed the title Update token docs descriptions in border.yml docs(border): update token descriptions Feb 17, 2026
Copy link
Contributor

@adamjohnson adamjohnson left a comment

Choose a reason for hiding this comment

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

Screenshot of Border tokens page on uxdot with these updated descriptions

This is what it will look like with the updated token descriptions on the uxdot Tokens > Border page.

I think these descriptions are sufficient if a little verbose for where they will be displayed. That said, perhaps we must convey this amount of information to get the guidelines across.

@adamjohnson adamjohnson moved this to Review 🔍 in Red Hat Design System Mar 2, 2026
@coreyvickery
Copy link
Collaborator Author

Screenshot of Border tokens page on uxdot with these updated descriptions This is what it will look like with the updated token descriptions on the uxdot Tokens > [Border](https://ux.redhat.com/tokens/border/) page.

I think these descriptions are sufficient if a little verbose for where they will be displayed. That said, perhaps we must convey this amount of information to get the guidelines across.

@adamjohnson @bennypowers Yes, definitely a bit too long for ux dot, but isn't longer better to educate LLMs?

I wonder if we can keep both, a shorter version that lives on ux dot and a longer version that lives in code that the LLMs can consume.

@bennypowers
Copy link
Member

Re: verbosity : we need to aim for the least verbose description possible which still contains the total necessary information

For example, if it's necessary for a certain slot to contain a particular type of element in order for that host element to be accessible, we must say that. Likewise, for a token. If it is absolutely necessary that a particular token only be used for certain purposes, we must make that explicit.

@coreyvickery
Copy link
Collaborator Author

@bennypowers @adamjohnson Maybe worth it to establish a max character count.

@bennypowers
Copy link
Member

around 400 chars, as a general rule. We may decide later to adjust that

bennypowers and others added 2 commits March 10, 2026 16:48
Co-authored-by: Adam Johnson <adam.b.johnson1@gmail.com>
Key changes across all descriptions:
- Removed "This token" preambles — descriptions now start with the action directly
- Limited examples to 3 elements (e.g., "Button, Call to action, Card, Field, Table" → "Button, Card, or Field")
- Replaced "It is recommended to apply this token to" → "Recommended for"
- Replaced "leveraging" with direct language
- Replaced verbose WCAG references ("as outlined by WCAG guidelines" → "per WCAG")
- Removed filler like "a modern look and feel", "a little extra"
- Fixed typo: $descrition → $description on the default token

Assisted-By: Claude Opus 4.6 <noreply@anthropic.com>
@bennypowers
Copy link
Member

Key changes across all descriptions:

  • Removed "This token" preambles — descriptions now start with the action directly
  • Limited examples to 3 elements (e.g., "Button, Call to action, Card, Field, Table" → "Button, Card, or Field")
  • Replaced "It is recommended to apply this token to" → "Recommended for"
  • Replaced "leveraging" with direct language
  • Replaced verbose WCAG references ("as outlined by WCAG guidelines" → "per WCAG")
  • Removed filler like "a modern look and feel", "a little extra"
  • Fixed typo: $descrition → $description on the default token

@bennypowers
Copy link
Member

I think this is now an exemplary PR. Visual appearance on docs pages is of secondary concern: let's write our bible first, and gussy it up after

@bennypowers bennypowers enabled auto-merge (squash) March 10, 2026 14:54
@bennypowers bennypowers merged commit 257d876 into main Mar 10, 2026
6 checks passed
@bennypowers bennypowers deleted the coreyvickery-token-docs-test-02-16 branch March 10, 2026 14:54
@github-project-automation github-project-automation bot moved this from Review 🔍 to Done ☑️ in Red Hat Design System Mar 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation

Projects

Status: Done ☑️

Development

Successfully merging this pull request may close these issues.

3 participants