{"bugs":{"url":"https://github.com/modulz/stitches/issues"},"dist":{"shasum":"fe9ed7e8b9517794ceeacb66d1439ed1d9ae8990","tarball":"https://registry.npmjs.org/@stitches/core/-/core-0.1.0-canary.0.tgz","fileCount":9,"integrity":"sha512-M5SJYjB+CQsKHukySWWqzOA8lkDaR3rNED2IEQaQiYpg1xo1jyBGlo8giOycqIB1K9WhevhCD2Nl/dJ8bWRbbw==","signatures":[{"sig":"MEQCIQC6+PbTsumgxTRVyHpewMGy5GAdQ3fonHJxToTqlcoXVgIfBdNU6v6iBhJ89n5fDi1ZZY4wWqGsnV6k1IiTRhhMKQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":417392,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgJr8hCRA9TVsSAnZWagAA3lAP/1xsZUWRbiXPE+Zcnq/H\nSH6cGNVdMoXElKu6XR7QcsLWHyuFBqMv81L2Fd5XavlR/D1FcC47r4/UgsIm\n8gub/Opz0YfVUFpKDPLgSydJfu5ZCAr51hIp9uKdnwb4r1yL0qtRdQlFQUUh\n4IJdBn7pkTg6DwFJQr8Id/UD91WHpScQZNU/lD3X5lDUBkecKdnPbHKtXUnU\ni5An4wLbq6n+DwB41+qqSxrqzLjsZwv4b6/TPzWU0FlxnFG2iq0xtxiE/eWv\nWVb3Yo041UbC4dLtCKI2fKwe3CsJpY6HPGQdrcpT1ABJyCQHpFthMlQ0HWMM\nmpg/GCKEH8D94xn1V17Ql86aXFM1V3kkTjC4vPuQxtT/dsZOSh3TR+6tFU3S\npphD0m/ZyoYZ9+cERg3Ojxd7YcT6rK9thl5zHyxzN+xHbOyypoVlHgvl86IP\nmRn0ws+gEJrPV0KLbrbYHaDxYzAXZd5mn9dlae1MmSoi+PP8pwBpV/gweZ2i\nhvmk39zHkQ/xXXaFC3fyOIbm0M07/JBMeOcying2bG/loTac5urtmhHCP0Mb\nZkmEd/Atfp1JQzKYmAVhM6ROlonq+Xffc62g0tfrwqb6JZMn7ia19g48L9Ux\nuINIQg3KAJR4lG3L5Midze3Ra/TqXd8rdmpSorDAitqGjcF8m7me83LzNuNX\n2hcw\r\n=OzkP\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":"d2d04f083ceaa3eaabe690220799f407993b559c","license":"MIT","typings":"types/index.d.ts","_npmUser":{"name":"peduarte","email":"contact@peduarte.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.8.0+x64 (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.8.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.0_1613152033239_0.008275486235556961","host":"s3://npm-registry-packages"},"_id":"@stitches/core@0.1.0-canary.0","version":"0.1.0-canary.0"}