{"_id":"@dkuku/tailwind-color-palette","_rev":"2-78c97f9957a936301104f275b5953a32","name":"@dkuku/tailwind-color-palette","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@dkuku/tailwind-color-palette","version":"1.0.0","description":"Personalized color palettes for Tailwindcss.","author":{"name":"Kyle Coburn"},"license":"ISC","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"rimraf dist && tsc","prepare":"rimraf dist && tsc && jest","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/ky-is/tailwind-color-palette.git"},"bugs":{"url":"https://github.com/ky-is/tailwind-color-palette/issues"},"homepage":"https://github.com/ky-is/tailwind-color-palette#readme","eslintConfig":{"extends":"@ky-is/eslint-config/typescript"},"eslintIgnore":["dist","node_modules*"],"dependencies":{"@types/chroma-js":"^1.4.2","chroma-js":"^2.0.3"},"devDependencies":{"@ky-is/eslint-config":"^1.7.0","@types/jest":"^24.0.13","@typescript-eslint/eslint-plugin":"^2.3.1","@typescript-eslint/parser":"^2.3.1","eslint":"^5.16.0","eslint-plugin-typescript":"^0.14.0","jest":"^24.8.0","rimraf":"^2.6.3","ts-jest":"^24.0.2","tslint":"^5.16.0","typescript":"^3.4.5","typescript-eslint-parser":"^22.0.0"},"directories":{"lib":"lib","test":"tests"},"keywords":["tailwind","chroma"],"gitHead":"acaa2115a59f84be495ff5feacd8c72404b26384","_id":"@dkuku/tailwind-color-palette@1.0.0","_nodeVersion":"8.14.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-pyhtClbv3+88SxrwzNNQr8A6yiLEGnzAUj2raRIZIS2Dg6m6BcjEI5QC5RysU316QmN/bKGMXuXJ7UdWuytswA==","shasum":"4f8e2da32b8ef89e9cc26b3ab87d132b5289b111","tarball":"https://registry.npmjs.org/@dkuku/tailwind-color-palette/-/tailwind-color-palette-1.0.0.tgz","fileCount":5,"unpackedSize":6804,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdi9YQCRA9TVsSAnZWagAAEUcP/RMYfioY3SAQpobzJqjb\naf+unBN83Dk0p6Gbt3eg7Mb4qF1z/k/Nt15IqFLlUZDhLNWUIXaqyL3ttVKw\n/3+d3TmN3CSd7hyEU6Uzw6s+fqbHNnZ1LYTq2zq4o52a6I9uiE+cuTnDrxVy\nSF/sXtdSCBHCTDAsOqNz5Y2gT6YSLBjhkSV/RX1b6pvjhSkhp6G9KqqJ01Cq\nB+VYkiXk4i+tcDxqfOd+OUXh1zKvc59or4zOv5XHc8fBEPGbby6ou8Zlj6+e\nYR82A8ruzZvaqH72E/pGFuHL4DTNHhlkogffA/SWZUraLYF9w4FVB/gmusgs\nCCiXrRNwxlYiruKTqfYrj0yIOjzmu565Nn6rIt/Uh1BpuVeYAo/CtLA1BWWR\nQ6GRQYKwn1jU3xK+SJX/7G4XIYi9yWUAX8nL14wgQiLHA/UldxohMzp/K0eG\nzt9tHpnrz3HUWtikOSTPb1I57mkpdrvWF0xBpwWL/K2M9E6rMbYGuCZFp7Pn\nsJJWIlBn2oK77SEPvTHzsSv97uOGEpdeEC3CwQNJTkBI+kSbIvMjD9eO2gXd\no4PWPE5KUvrCF7F2AOlua9y/+o+hJNuv/hVj49nphUvxkedzLnYuNhB+ipH5\ndL1n7QoEerYzJFlP0dqXFzDkfFgwpVoEq3g2Z3vHF1zzFWNTzYTMVKuBr6Db\nZUiN\r\n=7N4t\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGrfTYlXS13GlHioLwcUMibiJDMVXJqtqA6Ld+k3gMgsAiApbU+MT+aDD7e0JDF09gJOJaZJIDDC6y9ML5GPRZqgMw=="}]},"maintainers":[{"name":"dkuku","email":"daniel.kuku@gmail.com"}],"_npmUser":{"name":"dkuku","email":"daniel.kuku@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tailwind-color-palette_1.0.0_1569445390867_0.40678549755535465"},"_hasShrinkwrap":false},"1.0.1":{"name":"@dkuku/tailwind-color-palette","version":"1.0.1","description":"Personalized color palettes for Tailwindcss.","author":{"name":"Kyle Coburn"},"license":"ISC","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"rimraf dist && tsc","prepare":"rimraf dist && tsc && jest","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/ky-is/tailwind-color-palette.git"},"bugs":{"url":"https://github.com/ky-is/tailwind-color-palette/issues"},"homepage":"https://github.com/ky-is/tailwind-color-palette#readme","eslintConfig":{"extends":"@ky-is/eslint-config/typescript"},"eslintIgnore":["dist","node_modules*"],"dependencies":{"@types/chroma-js":"^1.4.3","chroma-js":"^2.0.3"},"devDependencies":{"@ky-is/eslint-config":"^1.7.0","@types/jest":"^24.0.13","@typescript-eslint/eslint-plugin":"^2.3.1","@typescript-eslint/parser":"^2.3.1","eslint":"^5.16.0","eslint-plugin-typescript":"^0.14.0","jest":"^24.8.0","rimraf":"^2.6.3","ts-jest":"^24.0.2","tslint":"^5.16.0","typescript":"^3.4.5","typescript-eslint-parser":"^22.0.0"},"directories":{"lib":"lib","test":"tests"},"keywords":["tailwind","chroma"],"gitHead":"acaa2115a59f84be495ff5feacd8c72404b26384","_id":"@dkuku/tailwind-color-palette@1.0.1","_nodeVersion":"8.14.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-8KrrihbYSkuPBN15KjTNpaI55OZjNuJf8I/1bKu+dXErNpFiK+Os7ZDgPKteEk4BT9xuHzfEmZ4JEEgqeF8iuA==","shasum":"0f43301ea18799eaaafab0f62d45716d31439c2e","tarball":"https://registry.npmjs.org/@dkuku/tailwind-color-palette/-/tailwind-color-palette-1.0.1.tgz","fileCount":5,"unpackedSize":6790,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdjkH9CRA9TVsSAnZWagAAT4kP/1QPRGMIyljF0bp676n0\n+XQldmfQ8rXwEUR75gDzX4fSDo4s8c98uipwqPycIXQtBPxGKibdm+lde58x\ntmqNov4n9913jhgZ+Irxp5anB9S9f+VoMmbk7z0oWj2iywVo8NQYdtjfjIu6\nrZTkQK36YGZ1dBtJIR8yqZaw1bGTQH+6QuvcZNDkl/3vsa1gkD4GWj+P355F\njgIrZBYVdpNl8XIw7HDJlDzTAFdGTKIn9y7YdLqA99WzUa7+M8/LIhXLJPLS\nSugNYK0Sxy9TmtU/xfXO23od9Z9vAM3legRorh9eQJUDE03LZ5+iLl12nDU2\ns20MJ3LscKz5SwpnyIHl9U9OXVka6ENF9fuyZz5TFzGbyt7myYllFCbLywy8\nXBl0f/7eY3HED2uKHPsthaeD66h3dejSSmSo2bG9rxyOmiHQ05QXxtpUT4QA\nqeFyquByKmfn7/DrWcRP1bf1Tz3bujgPIWaQRSioU2FJCU/IjA75AbdoLTHT\nQbsDXY0yLkS0G1mace2u10RRZNsejMg0XBQt89PccKcPUf4XDKdqcWp/89Wj\nC7//jXHc1HCI/a1TGjrk9GXEtwq3U+2ynH+/u8Y2KXgC2IASW7/cK2jCz49m\nbTHnI3CZY+ki6N7l4IaE6YAiFO939E772Hv1iOCtyXi1M2s7J2FFfQYOuGju\nGrTt\r\n=5KaY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIByhIKqsxph4GHh6KUUBmri54vi036kiVsEfdC24pnnwAiB7fpk6n9HBK2tdAmSCGshPF71u1BA87fF+s3b4G+SlWQ=="}]},"maintainers":[{"name":"dkuku","email":"daniel.kuku@gmail.com"}],"_npmUser":{"name":"dkuku","email":"daniel.kuku@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tailwind-color-palette_1.0.1_1569604091111_0.08559052971737602"},"_hasShrinkwrap":false}},"time":{"created":"2019-09-25T21:03:10.651Z","1.0.0":"2019-09-25T21:03:11.005Z","modified":"2022-04-05T04:51:28.752Z","1.0.1":"2019-09-27T17:08:12.873Z"},"maintainers":[{"name":"dkuku","email":"daniel.kuku@gmail.com"}],"description":"Personalized color palettes for Tailwindcss.","homepage":"https://github.com/ky-is/tailwind-color-palette#readme","keywords":["tailwind","chroma"],"repository":{"type":"git","url":"git+https://github.com/ky-is/tailwind-color-palette.git"},"author":{"name":"Kyle Coburn"},"bugs":{"url":"https://github.com/ky-is/tailwind-color-palette/issues"},"license":"ISC","readme":"# tailwind-color-palette\n\nPersonalized color palettes for Tailwindcss. Generates the nine `100`–`900` classes for your color, plus optional UI and grayscale colors (based on https://github.com/adevade/color-scheme-generator).\n\nFor Tailwind 1.0:\n```bash\nnpm install --save-dev @ky-is/tailwind-color-palette\n```\n\nFor Tailwind 0.x, see the [0.x branch](https://github.com/ky-is/tailwind-color-palette/tree/tailwind-0.x).\n\n## Configuration\n\nIn `tailwind.config.js`:\n\n```js\nmodule.exports = {\n  theme: {\n    colors: require('@ky-is/tailwind-color-palette')('#e7a', {grayscale: true, ui: true}),\n// ...\n```\n\nThis generates the following colors, tinted by the provided color:\n- Brand: `brand-(100–900)`\n- Grayscale: `gray-(100–900)`\n- UI: `cta-(100–900)`, `info-(100–900)`, `warning-(100–900)`, `success-(100–900)`, `danger-(100–900)`\n\n## Options\n\nThe first parameter is the `color` to generate the palette from. The second is an optional object with:\n\n- `name` (String, default: 'brand'): The class name prefix for this color (e.g. `text-brand-light` for the default).\n- `ui` (Boolean, default: false): Whether to generate UI color classes (`cta`, `info`, `warning`, `success`, `danger`), tinted with `color`.\n- `grayscale` (Boolean, default: false): Whether to generate grayscale color classes, tinted with `color`.\n\n### Advanced Options\n\n- `uiMix` (Number, default: 0.2, range: 0-1): The proportion of the `color` parameter to mix into the UI colors.\n- `grayscaleMix` (Number, default: 0.03, range: 0-1): The proportion of the `color` parameter to mix into the gray colors.\n- `palette` (Object, default: {}): An object of existing color definitions to be appended to.\n\n## Examples\n\nSimple all colors:\n```js\nconst colors = tailwindColorPalette('#FFC0CB', {grayscale: true, ui: true})\n```\n\nPrimary + secondary:\n```js\nconst primaryColors = tailwindColorPalette('#38C172', {name: 'primary', grayscale: true, ui: true})\nconst secondaryColors = tailwindColorPalette('#3490DC', {name: 'secondary'})\nconst colors = Object.assign(secondaryColors, primaryColors)\n```\n\nNo color mixing:\n```js\nconst colors = tailwindColorPalette('#E3342F', {grayscale: true, grayscaleMix: 0, ui: true, uiMix: 0})\n```\n","readmeFilename":"README.md"}