{"bugs":{"url":"https://github.com/modulz/stitches/issues"},"dist":{"shasum":"c60c0f42caf578ef390b44688a58b39fbc8d9e85","tarball":"https://registry.npmjs.org/@stitches/core/-/core-0.1.0-canary.6.tgz","fileCount":9,"integrity":"sha512-2X5h8ooIUS+lCPQknPRw2n+Qx1gSXdzkQj0YrN3QGM85r0xeWWD5BgvmeMIh1IWSdnPbXYjd1KcCm4/LOehLHA==","signatures":[{"sig":"MEUCIB4BIs7rKAi59+A7fUQJnye8F7OgREPyDXLXzEqmoDvHAiEAntOhx2KZJ7aJB06Z+bkI226yODGu25KUxW3p32WFwvs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":424134,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgLDicCRA9TVsSAnZWagAAr4EP/iCQxbTdO2b7zNwmTqbm\n/pRnylDd+94aHslg1Bif6w/ovX2oTrx7s9g3mxQwNufmquyDR26VfDb9mGXA\n39/CodcsnmChSwgLDd5zhb8InHZkrCGY/H+rz2eKIrxBS2cpToTNR1rhlRir\nzP6sdS/r2wM11M5qPm7+VMCfCo0xVpYjHOCtQxhuWJTWqnhC0J77sHVhbKJx\nUt/gSngpb9nuXOGHuEERvC7hQaEvlg1Dpbu62vkQ9L5TZVYbM7dfEdMkk4gW\nhK/n0YvD4pORE+TnND4uLt4mMVvGkSX8UO3UIE3Tq46fsgWyG0nu7aWKL5aJ\nayye3dv9z0G5Iwcz1MqUfyqpzWjNJMInTTB/VNQ1F95o9HYPwyXT8lkezgIQ\n57iAlZnBMXLjnRS2pFQ00yKybxCZbdcicybPG9QRv1aGo+/knbGpT4TFEmyS\nxnK8oiRiTHuExoQDCVRfIQyYRwQOWpdqFd1IFPRXRtbJrlCc/xP8JaVXq1fd\ndjLWfy14fudicGPpoYIlszICtbjCrhuJhuz5J8VbpMCoflSNf34K3DtoVYhU\nZQH097NXRnm8IZewRW7rGsQ23E+tsI/nmq7ARJKbYqXYJX9ze8l/xg93KUCg\n8jrXboEdNGMHhFv5Js86gh1RoQQ8I3mhXudsHTl8tSwnV9sj7cxiyyyrB5uu\nRsig\r\n=GjBE\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/stitches.core.cjs.cjs","name":"@stitches/core","type":"module","unpkg":"dist/stitches.core.iife.js","module":"dist/stitches.core.esm.mjs","readme":"# Stitches Core\n\nNear-zero runtime, server-side rendering, multi-variant support, and best-in-class developer experience.\n\n## Get started\n\n```sh\nnpm install @stitches/core\n```\n\n```js\nimport createCss from '@stitches/core'\n\nconst sheet = createCss({\n  theme: {\n    colors: {\n      black: '#2f2f2f',\n      white: '#f3f3f3',\n    },\n  },\n})\n\nconst button = sheet.css({\n  all: 'unset',\n  boxShadow: '0 0 0 1px $black',\n  backgroundColor: '$black',\n  color: '$white',\n  padding: '.5em 1em',\n})\n\nconst alertButton = sheet.css(button, {\n  boxShadow: '0 0 0 1px red',\n})\n\nconsole.log(`<button class=\"${button}\">`) // html will include a unique class name for the button component\nconsole.log(`<style>${sheet}</style>`) // css will include a unique rule for the button component\n```\n\n## Configure an instance\n\n```js\nimport createCss from '@stitches/core'\n\nexport const { css } = createCss({\n  // adds a prefix to all classnames to avoid clashes\n  prefix: 'my-lib',\n\n  // maps tokens to properties\n  theme: {\n    colors: {\n      red: 'tomato',\n    },\n    space: {\n      0: '1rem',\n    },\n  },\n\n  // creates breakpoints with media queries\n  conditions: {\n    tablet: '@media (min-width: 700px)',\n  },\n\n  // creates or configures css properties\n  utils: {\n    mX: (value) => ({\n      marginLeft: value,\n      marginRight: value,\n    }),\n    mY: (value) => ({\n      marginTop: value,\n      marginBottom: value,\n    }),\n  },\n})\n\ncss({\n  // assigns a custom property that resolves `tomato`\n  color: '$red',\n\n  // assigns `0` to `margin-left` and `margin-right`\n  marginX: 0,\n\n  // assign \"blue\" when the breakpoint is matched\n  when: {\n    tablet: {\n      color: 'blue',\n    },\n  },\n})\n```\n\n## Themes\n\nCreate themes to override defaults:\n\n```js\nimport createCss from '@stitches/core'\n\nexport const { css } = createCss({\n  theme: {\n    colors: {\n      primary: 'tomato',\n    },\n  },\n})\n\nexport const curiousTheme = css.theme({\n  colors: {\n    primary: 'pink',\n  },\n})\n```\n","gitHead":"9feb3917ff33fb653f524fead372234b427af0b2","license":"MIT","typings":"types/index.d.ts","_npmUser":{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},"homepage":"https://github.com/modulz/stitches#readme","keywords":["component","components","create","css","css-in-js","global","globals","javascript","js","nesting","object","object-oriented","oo","oocss","oriented","scope","scoped","style","styled","styles","stylesheet","stylesheets","theme","themes","theming","token","tokens","type","typed","types","transform","ts","variable","variables"],"repository":{"url":"git+https://github.com/modulz/stitches.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v15.5.0+arm64 (darwin)","description":"The modern CSS-in-JS library","directories":{},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},{"name":"colmtuite","email":"colmtuite@gmail.com"},{"name":"peduarte","email":"contact@peduarte.com"}],"_nodeVersion":"15.5.0","contributors":[{"name":"Christian Alfoni","email":"christianalfoni@gmail.com"},{"name":"Pedro Duarte","email":"pedro@modulz.app"},{"name":"Abdulhadi Alhallak","email":"abdulhadi@modulz.app"},{"name":"Jonathan Neal","email":"jonathan@modulz.app"}],"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/core_0.1.0-canary.6_1613510812166_0.9103352003855971","host":"s3://npm-registry-packages"},"_id":"@stitches/core@0.1.0-canary.6","version":"0.1.0-canary.6"}