{"bugs":{"url":"https://github.com/modulz/stitches/issues"},"dist":{"shasum":"624b4a7a9c94d3c1cb080e6eed2f6c1757e3bca2","tarball":"https://registry.npmjs.org/@stitches/core/-/core-0.1.0-canary.7.tgz","fileCount":9,"integrity":"sha512-99H7c9yMuZ9hzlTPY9h+zDCbJshKFyh5Bc0eUt4dAvZwXPf0lZ9s/NDBO3ivFQgUsa7D0dgjaJNq928MEakRiQ==","signatures":[{"sig":"MEUCIQDaK+WFoZdX7yzK3jSyJKNoSNwSZ49fRwNAqqr73MQQjwIgJ1iMJbVGOZeSZcydeo2Wxeey3hv+KgEJQAyt4H565Dc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":424324,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgLaR2CRA9TVsSAnZWagAAvL4P/1VpQWuL8fbzT38zm30k\nhx5xtXMU8u61SdT4hdTTdYnxhOiTqOOUBctBylPUaJXxXzsujpwn59SdjoJj\nL7P1H54nl6a2ojTd7LTJ23GBrkYzu785m9rtlg+P2jqIAvjoEZAHFzlQJ+5f\njPKtnVCUIpRwYygWFkMjV/FDxoGTl2nOU5Tn/BM8dsQt64IfxOIBbTZw9x06\ngR/NMwUKLblSeN5JvyIRarrPwmxjGhMAg+Ykq29mVCd1AWmLhc8j99IDhqS/\n5tHotUcUpqYvqS3jjKinH4qaedN88HHjAlsOSCQGzfVkOdQo9L6YS5YzNNcF\n1TZH0W5/Vl47L6pLlPlXBGMxVLaLBCIC5V/TtI4HjL5YMKWkgEJFd/bBwyxL\n3fVOOqU7JkBMr485qGikLg5F594HBcExpiPJfRcmy2c2U5oiWRvGfSTjMwrI\n+Cq94BTTOWrrqnIy9VfpW5OY2obkFVNdLTdmTGRA6M8H01yyVCQQcmJ8fjIj\nLbdde4xVSkgW2zJUpph5bUNIA1XVJ3ELoh5etjouyhXj+UEjot7DbMcaMuwF\n6QBdoY7LrJ1gBORURyMNF7e4+oSFLcfFtmQWHhJDKhot+FROjBbgQhoQKTFO\nw0CrN0EAqIySKa19AFlrQ2IlAn88bsvTRdug3dmuggR6RvGEG+JlL3xsbzaq\nrsTp\r\n=/9NY\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":"22205256ea1f4ea9127c3bf3e6751b5d7d9dd117","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.7_1613603957644_0.6553441600484575","host":"s3://npm-registry-packages"},"_id":"@stitches/core@0.1.0-canary.7","version":"0.1.0-canary.7"}