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

Closed
wants to merge 50 commits into from
Closed

[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

@libertymayc libertymayc force-pushed the theme-json-theme-2.0 branch from 87fbbe9 to dd534f3 Compare March 19, 2024 19:32
"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/[email protected]
yarn add @salt-ds/[email protected]
yarn add @salt-ds/[email protected]

Copy link
Contributor

github-actions bot commented Mar 20, 2024

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

@libertymayc libertymayc changed the base branch from theme-json to main March 20, 2024 19:47
@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/[email protected]
yarn add @salt-ds/[email protected]
yarn add @salt-ds/[email protected]

@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/[email protected]
yarn add @salt-ds/[email protected]
yarn add @salt-ds/[email protected]

@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/[email protected]
yarn add @salt-ds/[email protected]

@libertymayc libertymayc force-pushed the theme-json-theme-2.0 branch from 200c7fd to 8fd8f1c Compare May 17, 2024 15:34
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/[email protected]
yarn add @salt-ds/[email protected]
yarn add @salt-ds/[email protected]

…irs. foundations only override if -next file is provided
@libertymayc libertymayc force-pushed the theme-json-theme-2.0 branch from 3f902cd to 2bb83c3 Compare May 17, 2024 15:51
@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/[email protected]
yarn add @salt-ds/[email protected]
yarn add @salt-ds/[email protected]

@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.

3 participants