{"bugs":{"url":"https://github.com/modulz/stitches/issues"},"dist":{"shasum":"573971b4da9c45478bfeaa15023a52db746b4eb0","tarball":"https://registry.npmjs.org/@stitches/core/-/core-0.1.0-canary.14.tgz","fileCount":24,"integrity":"sha512-b5UT0/Z4tJoMP75te6rQyP80S+fvMXhRXZBWBL5SJ75a/EQHXdPImuKhVBJKmpT4Ir+W43YWK8I+1+uykH7ucw==","signatures":[{"sig":"MEUCIBnIXvyoUUJawOtL+C6pqmWYfVNh/eiXIhaGp8R0199mAiEAjOQTdJH0IF7dG3Ix0hI2oFuFpF+lNztVD8jMYXiu+vk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":382200,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgRn3fCRA9TVsSAnZWagAAo7UP/jt38/xMRbl7puW2dyEb\npkBRe/CbYvL+DNTHe3WC0qTbNKmVbJsO3xnHwcGg8F1RgZLQB5m3dbFsi3rz\nPNMudWvoSFrxz9HbiWGLA+3wdB+8q40NPPO8jth7rvZgAr1eHMMNrg0WTN/V\nixNuTe5ejh5s5/AvCkFNGTIIbVdZcKfcbCupWFEDZuek13R1zdUGboLIezMi\nTRUL5Th+4ykmT7Qz0o/0WsapGdDU87RTND2TOk2RXoPogJaRClOlyPF0Jgbu\n/H3DMrFXEWm4jHB0eqnyObekHAjCzo845AWb3w1Ie6+RJtPTat3DK0AC8fb4\nJsjCtgP6DpeR/lWdIo+cZLrANCWUeUbCvci8RCbkXMkHjks1HOq2HSZ8XL8W\nxWsR65gz1WAc15o0veRuao+ABjxTIjrXxW7IBjyL/zxI5v7CJqVKS6BI7Vd4\nmIZFllGThAt3XRMhLhVu8kBQBfkjx+gtz7/74O9+C8rlqmiJEUopTt4/5k/g\nMydKl9lYaDITriac3mkUiCKRFBzTrQOeJqh6Ej+Ypix9KqlkP+8K3CV4mC15\nD5/D/7h/BPnZGaaAYhBunCdKB+1X8HblUVEssxy97US52Y6zTlbKXhVP5nSx\njJM4dFZJW2zARd58QSMvhVH+d9nduorX1FmuFLHeHEeOUqmM64i4fYW68DEL\nPSr2\r\n=8WM8\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.cjs","name":"@stitches/core","type":"module","unpkg":"dist/index.iife.js","module":"dist/index.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":"020eeabd1a1c4f4748a0fa53ea2672a8de0aa355","license":"MIT","typings":"types/index.d.ts","_npmUser":{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},"homepage":"https://github.com/modulz/stitches#readme","jsdelivr":"dist/index.iife.js","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/4.0.0/node@v15.10.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"}],"sideEffects":false,"_nodeVersion":"15.10.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.14_1615232479192_0.7017570377584175","host":"s3://npm-registry-packages"},"_id":"@stitches/core@0.1.0-canary.14","version":"0.1.0-canary.14"}