Comparing version 0.0.4 to 0.0.5
@@ -14,6 +14,6 @@ /// <reference lib="dom" /> | ||
readonly teal: 165; | ||
readonly mint: 180; | ||
readonly cyan: 195; | ||
readonly sky: 220; | ||
readonly blue: 245; | ||
readonly mint: 185; | ||
readonly cyan: 205; | ||
readonly sky: 230; | ||
readonly blue: 256; | ||
readonly indigo: 275; | ||
@@ -20,0 +20,0 @@ readonly purple: 300; |
@@ -61,6 +61,6 @@ // src/createToken.ts | ||
teal: 165, | ||
mint: 180, | ||
cyan: 195, | ||
sky: 220, | ||
blue: 245, | ||
mint: 185, | ||
cyan: 205, | ||
sky: 230, | ||
blue: 256, | ||
indigo: 275, | ||
@@ -126,2 +126,6 @@ purple: 300, | ||
} | ||
if (hue === "indigo") { | ||
if (shade < 6) | ||
h += 12 - shade * 2; | ||
} | ||
if (shade === 1) | ||
@@ -148,2 +152,6 @@ return 10; | ||
} | ||
if (shade === 5) { | ||
if (hue === "cyan") | ||
return 40; | ||
} | ||
if (shade === 6) { | ||
@@ -153,5 +161,5 @@ if (hue === "sky") | ||
} | ||
if (shade >= 5 && shade <= 8) | ||
if (shade >= 5 && shade <= 9) | ||
return 42.5; | ||
return -5 * (shade - 17); | ||
return -5 * (shade - 18); | ||
})(); | ||
@@ -173,2 +181,3 @@ switch (hue) { | ||
case "purple": | ||
case "blue": | ||
c *= 1.1; | ||
@@ -175,0 +184,0 @@ break; |
{ | ||
"name": "css-token", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Design tokens & utilities for CSS and JS", | ||
@@ -5,0 +5,0 @@ "type": "module", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
154422
4785