-
Notifications
You must be signed in to change notification settings - Fork 75
feat: add DTCG playground #349
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for designtokensorg ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
.zed/settings.json
Outdated
| @@ -0,0 +1,3 @@ | |||
| { | |||
| "formatter": "prettier" | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I’ve been using Zed more often; we have a .vscode folder so hopefully this isn’t too much noise?
| @@ -1,4462 +0,0 @@ | |||
| lockfileVersion: '9.0' | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a mistake; any lockfile not in the root is ignored anyway.
| } | ||
|
|
||
| main table { | ||
| .page table { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change: don’t add global styling for all <main> elements
| import { GITHUB_URL, SITE_TITLE } from '@/consts'; | ||
| import { GITHUB_URL } from '@/consts'; | ||
| import { menu } from '@/site.config'; | ||
| import { Icon } from 'astro-icon/components'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cleans up unused imports
| --- | ||
|
|
||
| <!doctype html> | ||
| <html lang="en"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adds yet another “blank” layout, for when we only want the header and footer. Base.astro is still for custom pages, and Markdown.astro is for markdown-generated pages
0b5c998 to
d46fc54
Compare
d46fc54 to
977adfe
Compare
| // JSON.stringify() stores these in memory as strings, but declaring them as | ||
| // objects prevents simple typos and errors | ||
| export default { | ||
| 'sds.resolver.json': JSON.stringify({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note on these files: these are in .ts files because they’re way more portable. Ironically, if these were .json files, we’d have to make sure everything is imported and bundled correctly, which is more work (because we probably wouldn’t want 1 network request per .json file, we’d be bundling, but there’d be more indirection in the setup). Since we need all these at runtime, and the user is editing in-browser, just doing the work of putting them in a TypeScript object is more straightforward.
Changes
Adds token playground at
/playground(original source). Adds 2 examples—GitHub Primer and Figma SDS, both MIT-licensed.CleanShot.2025-11-11.at.16.37.53.mp4
Submitting to this repo licenses all code under the existing W3C license.
How to Review
/playgroundURL for us to preview. Doesn’t add link anywhere