Skip to content
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

[WIP] json for theme 2.0 #3143

Draft
wants to merge 50 commits into
base: main
Choose a base branch
from
Draft

[WIP] json for theme 2.0 #3143

wants to merge 50 commits into from

Conversation

libertymayc
Copy link
Contributor

Builds from color-palette-next branch to use salt theme 2.0

Copy link

changeset-bot bot commented Mar 19, 2024

🦋 Changeset detected

Latest commit: 2bb83c3

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

This PR includes changesets to release 1 package
Name Type
@salt-ds/theme Minor

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

Copy link

vercel bot commented Mar 19, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
saltdesignsystem ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 17, 2024 4:01pm

"opacity": "{foundations.opacity.opacity-8}"
},
"color-white-8a": {
"$value": "#ffffff00",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

unsure where opacity stands in theme 2.0, if we would link to an opacity foundation here, and have color and opacity as separate values like the JSON structure for theme 1 fade tokens @origami-z

}
}

function validate() {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@origami-z this should check all paths are correct refs

@libertymayc
Copy link
Contributor Author

/release-pr

Copy link
Contributor

🫰✨ Thanks @libertymayc! Your snapshots have been published to npm.

Test the snapshots by updating your package.json with the newly published versions:

yarn add @salt-ds/core@0.0.0-snapshot-20240320173647
yarn add @salt-ds/lab@0.0.0-snapshot-20240320173647
yarn add @salt-ds/theme@0.0.0-snapshot-20240320173647

Copy link
Contributor

github-actions bot commented Mar 20, 2024

Storybook Preview Link https://c21ee998.saltdesignsystem-storybook.pages.dev

@libertymayc
Copy link
Contributor Author

/release-pr

Copy link
Contributor

🫰✨ Thanks @libertymayc! Your snapshots have been published to npm.

Test the snapshots by updating your package.json with the newly published versions:

yarn add @salt-ds/core@0.0.0-snapshot-20240320194833
yarn add @salt-ds/lab@0.0.0-snapshot-20240320194833
yarn add @salt-ds/theme@0.0.0-snapshot-20240320194833

@libertymayc
Copy link
Contributor Author

/release-pr

Copy link
Contributor

🫰✨ Thanks @libertymayc! Your snapshots have been published to npm.

Test the snapshots by updating your package.json with the newly published versions:

yarn add @salt-ds/core@0.0.0-snapshot-20240320195607
yarn add @salt-ds/lab@0.0.0-snapshot-20240320195607
yarn add @salt-ds/theme@0.0.0-snapshot-20240320195607

@libertymayc
Copy link
Contributor Author

/release-pr

Copy link
Contributor

🫰✨ Thanks @libertymayc! Your snapshots have been published to npm.

Test the snapshots by updating your package.json with the newly published versions:

yarn add @salt-ds/core@0.0.0-snapshot-20240422144812
yarn add @salt-ds/theme@0.0.0-snapshot-20240422144812

Copy link
Contributor

🫰✨ Thanks @libertymayc! Your snapshots have been published to npm.

Test the snapshots by updating your package.json with the newly published versions:

yarn add @salt-ds/core@0.0.0-snapshot-20240517153906
yarn add @salt-ds/lab@0.0.0-snapshot-20240517153906
yarn add @salt-ds/theme@0.0.0-snapshot-20240517153906

…irs. foundations only override if -next file is provided
@libertymayc
Copy link
Contributor Author

/release-pr

Copy link
Contributor

🫰✨ Thanks @libertymayc! Your snapshots have been published to npm.

Test the snapshots by updating your package.json with the newly published versions:

yarn add @salt-ds/core@0.0.0-snapshot-20240517155318
yarn add @salt-ds/lab@0.0.0-snapshot-20240517155318
yarn add @salt-ds/theme@0.0.0-snapshot-20240517155318

@origami-z origami-z force-pushed the unified-color-palette branch 3 times, most recently from f260109 to 09d4ce5 Compare May 22, 2024 15:51
Base automatically changed from unified-color-palette to main May 22, 2024 16:10
@origami-z
Copy link
Contributor

origami-z commented Oct 21, 2024

Some quick thoughts for future myself while starting #4041, trying to think how we can best leverage tools out there, e.g. v4 of style-dictionary supports DTCG now.

  • packages/theme/json/theme.json, need to think about tooling compatibility on top level mode/density/etc blocks, how can we indicate they are replacements
    • e.g., should it be $modes as key, { [modeName: string]: Array<string> } as value
  • To help use tools out there, trying to see how existing tools define variable "modes"
    • If there are format out there, test them
    • If not, think about whether Salt format / tool should be used to produce individual json (in specific mode/density/stylingOptions) to use other tools

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.

2 participants