Skip to content

Fix/align color precision to colorjs default #354

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

Conversation

DarioSoller
Copy link
Contributor

Because of the chain of consequences of the ColorJS precision change idea, we now should just stick with the ColorJS default precision. That way the misconception on how precision in ColorJS works should be fixed to a precision value, that was actually assumed to be used in sd-transforms.

Related Links:

Therefore this PR brings the following changes:

  • Supporting color modifier value calculations
  • Changing the default color precision to the ColorJS default of 5
  • Updating the integration tests to use vitests instead of mocha

Dario Soller and others added 8 commits April 10, 2025 23:45
(cherry picked from commit 76dbfba)

# Conflicts:
#	test/integration/color-modifier-references.test.ts
#	test/spec/color-modifiers/transformColorModifiers.spec.ts
(cherry picked from commit 72bca07)

# Conflicts:
#	test/integration/color-modifier-references.test.ts
Copy link

changeset-bot bot commented Apr 10, 2025

🦋 Changeset detected

Latest commit: def63c2

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

This PR includes changesets to release 1 package
Name Type
@tokens-studio/sd-transforms 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

@DarioSoller
Copy link
Contributor Author

DarioSoller commented Apr 10, 2025

Adding changeset after your review @jorenbroekema
EDIT: I now already did add a changeset, as most of the code has already been partly reviewed once.

@DarioSoller DarioSoller force-pushed the fix/align-color-precision-to-colorjs-default branch from 198b97e to def63c2 Compare April 11, 2025 13:53
@jorenbroekema jorenbroekema merged commit a8f4c73 into tokens-studio:main Apr 11, 2025
2 checks passed
@jorenbroekema
Copy link
Member

Awesome, thanks again for taking lead on this!

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