Skip to content

Commit a8f4c73

Browse files
DarioSollerDario Sollerjorenbroekema
authored
fix: use default ColorJS precision and support math in modifiers
* refactor: prepare a constants file for default math fraction digits and default color precision * fix: explicitly set the default color precision equally where ColorJS is used [#352] * test: update unit test assertions * chore: updated package-lock.json in order to get the unit tests run again (cherry picked from commit 1c151ee) * fix: migrate to latest TS and colorjs.io, move to vitest (cherry picked from commit 76dbfba) # Conflicts: # test/integration/color-modifier-references.test.ts # test/spec/color-modifiers/transformColorModifiers.spec.ts * fix: resolve calculated color modifier values [#348] * tests(unit): add mix modifier value calculation unit test (cherry picked from commit 0e7ce70) * tests(integration): add mix color integration tests (cherry picked from commit 72bca07) # Conflicts: # test/integration/color-modifier-references.test.ts * tests: add a view more tests for alpha, lighten and darken color modifier value calculations * chore: adding changeset --------- Co-authored-by: Dario Soller <dario.soller@allianz.de> Co-authored-by: jorenbroekema <joren.broekema@gmail.com>
1 parent 3b1b5c3 commit a8f4c73

26 files changed

+2729
-2896
lines changed

.changeset/grumpy-lights-leave.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@tokens-studio/sd-transforms': minor
3+
---
4+
5+
- Supporting color modifier value calculations
6+
- Changing the default color precision to the ColorJS default of 5
7+
- Updating the integration tests to use vitest instead of mocha chai

0 commit comments

Comments
 (0)