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

Improve naming of contextual CSS custom properties #1510

Merged
merged 7 commits into from
Sep 17, 2024

Conversation

jpzwarte
Copy link
Member

As discussed, for contextual tokens we want to use the following naming convention: --sl-[a-z][a-zA-Z]*(-[a-z][a-zA-Z]*)*

This PR changes the build-themes.js to apply this transformation to the following files:

  • primitives.json
  • system.json
  • *-new.json

All the other JSON files still use the old everyting-is-kebab-case convention.

Copy link

changeset-bot bot commented Sep 11, 2024

🦋 Changeset detected

Latest commit: 0066a17

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

This PR includes changesets to release 2 packages
Name Type
@sl-design-system/menu Patch
@sl-design-system/sanoma-learning 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

Copy link
Contributor

github-actions bot commented Sep 11, 2024

🕸 Website preview

You can view a preview here (commit 0066a17a6cc2e02333eeb5161b0b5bdf660091b3).

Copy link
Contributor

github-actions bot commented Sep 11, 2024

🕸 Storybook preview

You can view a preview here (commit 0066a17a6cc2e02333eeb5161b0b5bdf660091b3).

Copy link
Collaborator

@anna-lach anna-lach left a comment

Choose a reason for hiding this comment

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

Maybe @Diaan can also take w look? :)

.changeset/clever-vans-help.md Show resolved Hide resolved
@jpzwarte jpzwarte merged commit 563dccc into main Sep 17, 2024
9 of 13 checks passed
@jpzwarte jpzwarte deleted the fix/token-to-css-conversion-casing branch September 17, 2024 13:35
@github-actions github-actions bot mentioned this pull request Sep 17, 2024
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