cleo_design_tokens 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/cleo_design_tokens.rb +2 -2
- data/package.json +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 215d1cc5e872b8400676638c4a0930d8f20d6e334caf0e7c117677c735cea53a
|
|
4
|
+
data.tar.gz: d506d01b5a4d3be6145fad24cbc3b5f1d89aa289f948394d1939d86cd3963de9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9f781c2741cc7892415faab886987a2993d568dcfabf2f60c84e90eecede885351876cd09b3cd32aa8ae5d4599a5536a430a0b6d3a91b711f6f9fe341f02c09d
|
|
7
|
+
data.tar.gz: 8685f9666f1a2443e490ef3210d0882bd56643f079ee4e385e431f5a1e0786716a72375b63ce2022fd9d8e825362a6de5db87ca9b4c4649d352e561399d5dd07
|
data/lib/cleo_design_tokens.rb
CHANGED
|
@@ -51,9 +51,9 @@ module CleoDesignTokens
|
|
|
51
51
|
return "auto".freeze if multiplier == "auto"
|
|
52
52
|
|
|
53
53
|
pixels = multiplier * SPACING_BASE_UNIT_PX if multiplier.is_a?(Numeric)
|
|
54
|
-
unless multiplier.is_a?(Numeric) && !multiplier.is_a?(Complex) && multiplier.finite? &&
|
|
54
|
+
unless multiplier.is_a?(Numeric) && !multiplier.is_a?(Complex) && multiplier.finite? && (pixels % 1).zero?
|
|
55
55
|
raise ArgumentError,
|
|
56
|
-
"spacing multiplier must be \"auto\" or a
|
|
56
|
+
"spacing multiplier must be \"auto\" or a finite multiple of 0.25; received #{multiplier.inspect}"
|
|
57
57
|
end
|
|
58
58
|
|
|
59
59
|
"#{pixels.to_i}px".freeze
|
data/package.json
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cleo_design_tokens
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Cleo
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-09-
|
|
11
|
+
date: 2026-09-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Flattens Cleo's colour design tokens (packages/tokens/tokens/color) into
|
|
14
14
|
frozen colors.primitives / colors.semantic lookups, with the theme passed alongside
|