Skip to content

Conversation

@drwpow
Copy link
Contributor

@drwpow drwpow commented Nov 11, 2025

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

  • View Playground
  • See comments
  • This only adds a /playground URL for us to preview. Doesn’t add link anywhere

@netlify
Copy link

netlify bot commented Nov 11, 2025

Deploy Preview for designtokensorg ready!

Name Link
🔨 Latest commit 977adfe
🔍 Latest deploy log https://app.netlify.com/projects/designtokensorg/deploys/6913c943f16e5e0008e6eefe
😎 Deploy Preview https://deploy-preview-349--designtokensorg.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.

@@ -0,0 +1,3 @@
{
"formatter": "prettier"
Copy link
Contributor Author

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'
Copy link
Contributor Author

@drwpow drwpow Nov 11, 2025

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 {
Copy link
Contributor Author

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';
Copy link
Contributor Author

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">
Copy link
Contributor Author

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

@drwpow drwpow force-pushed the drwpow/playground branch 7 times, most recently from 0b5c998 to d46fc54 Compare November 11, 2025 23:39
// 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({
Copy link
Contributor Author

@drwpow drwpow Nov 11, 2025

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.

@kaelig
Copy link
Member

kaelig commented Nov 15, 2025

That's soooo cool!

Suggestion #1: remove the footer, so users stay in the editor when scrolling down
Suggestion #2: on load, show a modal explaining what's going on. Landing on the editor is quite a lot to take in!

Fix: horizontal scrollbar (can't upload here, so I'll share a screenshot on Slack)

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.

3 participants