Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sanity/demo

Package Overview
Dependencies
Maintainers
44
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sanity/demo - npm Package Compare versions

Comparing version 1.0.2 to 2.0.0

10

dist/index.js

@@ -5,7 +5,9 @@ const fontFamily = {

serif: "PT Serif, serif"
}, radius = [0, 1, 3, 6, 9, 12, 21], screen = [640, 768, 1024, 1280, 1536], space = [0, 4, 8, 12, 20, 32, 52, 84, 136, 220];
export {
fontFamily,
radius,
screen,
space
};
const radius = [0, 1, 3, 6, 9, 12, 21];
const screen = [640, 768, 1024, 1280, 1536];
const space = [0, 4, 8, 12, 20, 32, 52, 84, 136, 220];
export { fontFamily, radius, screen, space };
//# sourceMappingURL=index.js.map

55

dist/tailwind.js

@@ -1,23 +0,18 @@

import { black, white, hues } from '@sanity/color';
import { space, radius, fontFamily, screen } from '@sanity/demo';
import { black, white, hues } from "@sanity/color";
import { space, radius, fontFamily, screen } from "@sanity/demo";
function _buildTailwindColorTints(tints) {
return Object.fromEntries(Object.entries(tints).map(_ref => {
let [tintKey, tint] = _ref;
return [tintKey, tint.hex];
}));
return Object.fromEntries(Object.entries(tints).map(([tintKey, tint]) => [tintKey, tint.hex]));
}
const _round = num => num.toFixed(7).replace(/(\.[0-9]+?)0+$/, "$1").replace(/\.0$/, "");
const _rem = px => "".concat(_round(px / 16), "rem");
const theme = {
const _round = (num) => num.toFixed(7).replace(/(\.[0-9]+?)0+$/, "$1").replace(/\.0$/, ""), _rem = (px) => `${_round(px / 16)}rem`, theme = {
extend: {
spacing: {
1: "".concat(space[1], "px"),
2: "".concat(space[2], "px"),
3: "".concat(space[3], "px"),
4: "".concat(space[4], "px"),
5: "".concat(space[5], "px"),
6: "".concat(space[6], "px"),
7: "".concat(space[7], "px"),
8: "".concat(space[8], "px"),
9: "".concat(space[9], "px")
1: `${space[1]}px`,
2: `${space[2]}px`,
3: `${space[3]}px`,
4: `${space[4]}px`,
5: `${space[5]}px`,
6: `${space[6]}px`,
7: `${space[7]}px`,
8: `${space[8]}px`,
9: `${space[9]}px`
},

@@ -103,7 +98,7 @@ typography: {

borderRadius: {
none: "".concat(radius[0]),
sm: "".concat(radius[1], "px"),
DEFAULT: "".concat(radius[2], "px"),
md: "".concat(radius[3], "px"),
lg: "".concat(radius[4], "px"),
none: `${radius[0]}`,
sm: `${radius[1]}px`,
DEFAULT: `${radius[2]}px`,
md: `${radius[3]}px`,
lg: `${radius[4]}px`,
full: "9999px"

@@ -128,10 +123,12 @@ },

screens: {
sm: "".concat(screen[0], "px"),
md: "".concat(screen[1], "px"),
lg: "".concat(screen[2], "px"),
xl: "".concat(screen[3], "px"),
"2xl": "".concat(screen[4], "px")
sm: `${screen[0]}px`,
md: `${screen[1]}px`,
lg: `${screen[2]}px`,
xl: `${screen[3]}px`,
"2xl": `${screen[4]}px`
}
};
export { theme };
export {
theme
};
//# sourceMappingURL=tailwind.js.map
{
"type": "module",
"name": "@sanity/demo",
"version": "1.0.2",
"version": "2.0.0",
"description": "Design tokens for implementing demos and templates at Sanity.io.",

@@ -63,33 +63,33 @@ "files": [

"devDependencies": {
"@commitlint/cli": "^17.4.3",
"@commitlint/config-conventional": "^17.4.3",
"@sanity/color": "2.2.3",
"@sanity/pkg-utils": "^2.2.5",
"@sanity/semantic-release-preset": "^4.0.0",
"@commitlint/cli": "^18.6.1",
"@commitlint/config-conventional": "^18.6.2",
"@sanity/color": "3.0.0",
"@sanity/pkg-utils": "^4.2.8",
"@sanity/semantic-release-preset": "^4.1.6",
"@types/node": "^18.13.0",
"@types/react": "^18.0.28",
"@types/react-dom": "^18.0.11",
"@typescript-eslint/eslint-plugin": "^5.52.0",
"@typescript-eslint/parser": "^5.52.0",
"@types/react": "^18.2.57",
"@types/react-dom": "^18.2.19",
"@typescript-eslint/eslint-plugin": "^7.0.2",
"@typescript-eslint/parser": "^7.0.2",
"commitizen": "^4.3.0",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.34.0",
"eslint-config-prettier": "^8.6.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.32.2",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsx-a11y": "^6.8.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"husky": "^8.0.3",
"lint-staged": "^13.1.2",
"postcss": "^8.4.21",
"prettier": "^2.8.4",
"prettier-plugin-tailwindcss": "^0.2.2",
"rimraf": "^4.1.2",
"semantic-release": "^20.1.0",
"tailwindcss": "^3.2.6",
"typescript": "^4.9.5"
"postcss": "^8.4.35",
"prettier": "^3.2.5",
"prettier-plugin-tailwindcss": "^0.5.11",
"rimraf": "^4.4.1",
"semantic-release": "^22.0.12",
"tailwindcss": "^3.4.1",
"typescript": "^5.3.3"
},
"peerDependencies": {
"@sanity/color": "^2",
"@sanity/color": "^2 || ^3.0.0",
"tailwindcss": "^3"

@@ -106,3 +106,3 @@ },

},
"packageManager": "pnpm@7.27.0",
"packageManager": "pnpm@8.15.3",
"publishConfig": {

@@ -109,0 +109,0 @@ "access": "public"

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