{"bugs":{"url":"https://github.com/tw-in-js/twind/issues"},"dist":{"shasum":"4c6a6d50924f185dbd8d08d665a0e65486453f75","tarball":"https://registry.npmjs.org/twind/-/twind-1.0.0-next.15.tgz","fileCount":37,"integrity":"sha512-B2nttmgTTvTBJ0K2NxJq2V9Adx9rjNoYRc5Kvz5ZSBo6ODKv0hSnCtfqQX3Sa5a96lxQL3nO0DVk5inoQOrOIg==","signatures":[{"sig":"MEQCICGKU2UtVKl0hOTx2UYTKVkBAGzq1b/a5q3YPViUbh08AiBgE94yLYp7ZG8vl7EODAGWvHSnXLGOhpmceZ42xM8K3w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":348440,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh5yuACRA9TVsSAnZWagAACEMP/iTisQ7F8wRC/7rBM+QY\nKXz2uHtGr+/EViEMJAXGzwRTqP4YYgasdMOE3epxuuXSueQHzVyBefQUdKrp\nwBxi9edufqCQ8zKYEhuAEaXJH6bK+pbqXcHjzoI0nOK5qSLWcmJSaQAJ5cBm\nGfyJkPvzsOxKXATV3hRj2m1w9v+YiXodnR3k3tuNgBmCBeYuiCYJP5LtMrki\nRgRVvBd3MB/0GLJ9qd1iVnOSFS+2W83+VvD9ae2LIYQ6pL9Zj7OpmCg8ZT2v\nL3nmeMzxCYMEMGWCOVodrL07LmMBbi4YaU5mYgs1U2ouDT106QPoSRXwBHY3\nYGoEqzIRI644xBR+wpH2HTql1PWGoHqALXsViWUony4N/NkItAVGDrHsl7Q8\n2bcK0Ob/X8NDORER/LIui5byhqGKh85vWQOeNrRuSG7TQbs0JdcKUrLEY6b3\nzIAQy7rF3TXxEFihsoPn6aEehctkuGIlD/oTZSgI6Ag/U3DIfXsZSHLeQLK+\nDNe2hbPnPSQZHRI04O5Mx28R7MuURs2SdkPQAoX+NOrAOl1GcMBnIzNVfjTM\nn/gO16souz4QLhbLC6OqFy0Pcyq6GEnVgxECRzz1blAgURMGJ3GcqCvnuToE\n+yGLyfGNv+3z2cV/4HZLpbaFEkp1VaLvxTdKe+/tB/pB81BGknqXD40SoWZk\nBrkD\r\n=bV3q\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./twind.cjs","name":"twind","type":"module","_from":"file:twind-1.0.0-next.15.tgz","types":"./twind.d.ts","unpkg":"./twind.global.js","author":{"url":"https://github.com/sastan","name":"Sascha Tandel"},"esnext":"./twind.esnext.js","module":"./twind.js","readme":"# twind\n\n---\n\n## READ THIS FIRST!\n\n**Twind v1 is still in beta. Expect bugs!**\n\nTwind v1 is a complete rewrite aiming to be compatible with Tailwind v3 classes\n\n---\n\nTailwind right in the browser without any build step.\n\n## Usage\n\n```sh\nnpm i twind@next\n```\n\n```js\nimport { setup } from 'twind'\n\n// You must call setup atleast once, but can call it multiple times\nsetup({\n  /* options */\n})\n```\n\nIncase you are not using SSR to inject the pre-computed styles apply the following pattern to prevent [FOUC](https://en.wikipedia.org/wiki/Flash_of_unstyled_content):\n\n```html\n<body class=\"!block\" style=\"display: none\">\n  <!-- ... -->\n</body>\n```\n\n**Script tag without a build step**\n\nAdd this line to your `index.html`:\n\n```html\n<head>\n  <!-- ... -->\n  <script src=\"https://cdn.jsdelivr.net/npm/twind@next\" crossorigin></script>\n  <!-- ... -->\n</head>\n```\n\nTo configure Twind add a script block _after_ the previous one (optional):\n\n```html\n<script>\n  twind.setup({\n    presets: [\n      // custom presets...\n    ],\n    theme: {\n      extend: {\n        colors: {\n          clifford: '#da373d',\n        },\n      },\n    },\n    rules: [\n      // custom rules...\n    ],\n    // ...\n  })\n</script>\n```\n\n**Presets**\n\n- [@twind/preset-autoprefix](https://www.npmjs.com/package/@twind/preset-autoprefix)\n- [@twind/preset-tailwind](https://www.npmjs.com/package/@twind/preset-tailwind)\n\nTo add another preset add its script after the current one:\n\n```html\n<head>\n  <!-- ... -->\n  <script src=\"https://cdn.jsdelivr.net/npm/twind@next\" crossorigin></script>\n  <script src=\"https://cdn.jsdelivr.net/npm/@twind/preset-ext@next\" crossorigin></script>\n  <script>\n    twind.setup({\n      presets: [twind_presetExt()],\n      // ...\n    })\n  </script>\n  <!-- ... -->\n</head>\n```\n\n**API**: accessible through the global `twind` variable\n\n- [`twind.setup`](#setupconfig--sheet--target)\n- `twind.tw` — from [@twind/runtime](https://www.npmjs.com/package/@twind/runtime#tw)\n- `twind.*` — everything from [@twind/core](https://www.npmjs.com/package/@twind/core#api)\n\n### `twind/cdn`\n\nA drop-in replacement for Tailwind CSS Play CDN that is almost 6 times smaller (96.4kb vs 16.9kB).\n\n```js\nimport { setup } from 'twind/play-cdn'\n```\n\n```html\n<script src=\"https://cdn.jsdelivr.net/npm/twind@next/cdn.global.js\" crossorigin></script>\n```\n\n**Presets**\n\n- [@twind/preset-autoprefix](https://www.npmjs.com/package/@twind/preset-autoprefix)\n- [@twind/preset-tailwind](https://www.npmjs.com/package/@twind/preset-tailwind)\n\n**API** — accessible through the global `twind` variable\n\n- [`twind.setup`](#setupconfig--sheet--target)\n- `twind.tw` — from [@twind/runtime](https://www.npmjs.com/package/@twind/runtime#tw)\n\n### `twind/core`\n\n```js\nimport { setup } from 'twind/core'\n```\n\n```html\n<script src=\"https://cdn.jsdelivr.net/npm/twind@next/core.global.js\" crossorigin></script>\n```\n\n**Presets**\n\nNone\n\n**API** — accessible through the global `twind` variable\n\n- [`twind.setup`](#setupconfig--sheet--target)\n- `twind.tw` — from [@twind/runtime](https://www.npmjs.com/package/@twind/runtime#tw)\n- `twind.*` — everything from [@twind/core](https://www.npmjs.com/package/@twind/core#api)\n\n## API\n\n### `setup(config [, sheet [, target]])`\n\nCan be called as many times as you want.\n","engines":{"node":">=12.4"},"exports":{".":{"node":{"import":"./twind.mjs","require":"./twind.cjs"},"types":"./twind.d.ts","esnext":"./twind.esnext.js","module":"./twind.js","script":"./twind.global.js","default":"./twind.js"},"./cdn":{"node":{"import":"./cdn.mjs","require":"./cdn.cjs"},"types":"./cdn.d.ts","esnext":"./cdn.esnext.js","module":"./cdn.js","script":"./cdn.global.js","default":"./cdn.js"},"./core":{"node":{"import":"./core.mjs","require":"./core.cjs"},"types":"./core.d.ts","esnext":"./core.esnext.js","module":"./core.js","script":"./core.global.js","default":"./core.js"},"./package.json":"./package.json"},"license":"MIT","_npmUser":{"name":"sastan","email":"s.tandel@me.com"},"homepage":"https://twind.dev","jsdelivr":"./twind.global.js","keywords":["twind","tw-in-js","tailwind","tailwindcss","tailwind-in-js"],"_resolved":"/home/runner/work/twind/twind/packages/twind/dist/twind-1.0.0-next.15.tgz","_integrity":"sha512-B2nttmgTTvTBJ0K2NxJq2V9Adx9rjNoYRc5Kvz5ZSBo6ODKv0hSnCtfqQX3Sa5a96lxQL3nO0DVk5inoQOrOIg==","deprecated":"use @twind/core instead","repository":{"url":"git+https://github.com/tw-in-js/twind.git","type":"git","directory":"packages/twind"},"_npmVersion":"8.1.2","description":"tailwindcss compat based on twind","directories":{},"maintainers":[{"name":"sastan","email":"s.tandel@me.com"},{"name":"lukejacksonn","email":"lukejacksonn@gmail.com"}],"sideEffects":false,"_nodeVersion":"16.13.2","contributors":[{"url":"lukejacksonn.github.io","name":"Luke Jackson"},{"url":"https://github.com/sastan","name":"Sascha Tandel"}],"dependencies":{"@twind/core":"1.0.0-next.13","@swc/helpers":"^0.3.2","@twind/runtime":"1.0.0-next.13","@twind/preset-tailwind":"1.0.0-next.14","@twind/preset-autoprefix":"1.0.0-next.13"},"publishConfig":{"tag":"next","access":"public","directory":"dist"},"_hasShrinkwrap":false,"peerDependencies":{"typescript":"^4.4.0"},"peerDependenciesMeta":{"typescript":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/twind_1.0.0-next.15_1642539903745_0.8163558671340105","host":"s3://npm-registry-packages"},"_id":"twind@1.0.0-next.15","version":"1.0.0-next.15"}