Skip to content

Conversation

@drwpow
Copy link
Collaborator

@drwpow drwpow commented Mar 27, 2025

Changes

The in-progress, updated DTCG color format will use components rather than channels. Still allow both for the meantime, but provide a warning for folks for when it’s updated

How to Review

  • Tests updated
  • Tests kept for both components and channels so this is somewhat backwards-compatible

@changeset-bot
Copy link

changeset-bot bot commented Mar 27, 2025

🦋 Changeset detected

Latest commit: 98c375e

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

This PR includes changesets to release 12 packages
Name Type
@terrazzo/token-tools Minor
@terrazzo/parser Minor
@terrazzo/cli Minor
@terrazzo/plugin-css Major
@terrazzo/plugin-js Major
@terrazzo/plugin-sass Major
@terrazzo/plugin-swift Major
@terrazzo/plugin-tailwind Major
@terrazzo/token-lab Patch
@terrazzo/use-color Patch
@terrazzo/react-color-picker Patch
@terrazzo/tiles 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

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Mar 27, 2025

Deploying terrazzo with  Cloudflare Pages  Cloudflare Pages

Latest commit: 98c375e
Status: ✅  Deploy successful!
Preview URL: https://ad183821.terrazzo.pages.dev
Branch Preview URL: https://update-color.terrazzo.pages.dev

View logs

case 'lab': {
await labCmd({ config, configPath, flags, logger });
try {
require.resolve('@terrazzo/token-lab');
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

cc @lilnasy not a perfect solution, but manually requiring folks install this is a short-term solution to breaking the circular dep chain that prevents the CLI from being tested reliably, or having to pull from npm. Having to pull from published packages in the test suite could cause some regressions, and would limit us in what we’re able to test.

But once users install this I think the circular dep may still be there, so I’ll come up with another solution as this gets closer to a stable release (and we’ll celebrate and have lots of fanfare etc etc). For now, this just unblocks the CLI from releasing / auto-installing @terrazzo/token-lab for everyone

Copy link
Contributor

Choose a reason for hiding this comment

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

This is great. Until stable release, whatever allows progress is a good solution.

},
"scripts": {
"build": "tsc -p tsconfig.build.json",
"build": "tsc -p tsconfig.build.json && pnpm run build:lab",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Test that the lab can build properly

@@ -1,4 +1,4 @@
import '@terrazzo/tokens/dist/index.css';
Copy link
Collaborator Author

@drwpow drwpow Mar 27, 2025

Choose a reason for hiding this comment

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

@lilnasy This removes one circular dep, but not all.

Between @terrazzo/fonts, @terrazzo/tiles, @terrazzo/tokens, @terrazzo/react-color-picker and @terrazzo/use-color, none of those packages really matter; it’s not important to me to continue publishing those and keeping them separate. The token lab is far more important, and if we wanted to, we could just shove everything React-related in here; that’d be fine. Users could even just import React components from the token-lab, too.

In the future, publishing @terrazzo/react-color-picker would be nice, but still less important than the token lab. Short-term we could just squash all packages into Lab and worry about that later (and we don’t have to use the Terrazzo CLI in the token lab for that fact either—we could just manually style everything who cares).

@drwpow drwpow merged commit 44ff082 into main Mar 27, 2025
9 checks passed
@drwpow drwpow deleted the update-color branch March 27, 2025 16:49
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