Socket
Socket
Sign inDemoInstall

css-token

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

css-token - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

8

dist/index.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc