{"_id":"@bitcurve/flint-style","name":"@bitcurve/flint-style","dist-tags":{"latest":"0.0.0"},"versions":{"0.0.0":{"name":"@bitcurve/flint-style","type":"module","version":"0.0.0","license":"MIT","main":"dist/index.js","types":"dist/index.d.ts","sideEffects":false,"repository":{"type":"ssh","url":"git+ssh://git@github.com/appcurve/flint.git","directory":"packages/style"},"publishConfig":{"access":"public"},"exports":{".":{"import":"./dist/index.js","require":"./dist/index.cjs","types":"./dist/index.d.ts"}},"devDependencies":{"tailwind-merge":"^2.3.0","tailwindcss":"^3.4.4","typescript":"^5.5.3"},"peerDependencies":{"tailwind-merge":"^2.3.0"},"scripts":{"build":"tsup src/index.ts --format cjs,esm --dts","lint":"eslint src","check":"tsc --noEmit","test":"vitest"},"_id":"@bitcurve/flint-style@0.0.0","description":"This package exports a custom `cn()` function for merging class names that incorporates a special configuration of `tailwind-merge` and a custom drop-in replacement of `clsx` for one less dependency.","bugs":{"url":"https://github.com/appcurve/flint/issues"},"homepage":"https://github.com/appcurve/flint#readme","_integrity":"sha512-3j5GX0EtZ7Qf4yas2RAykPX7RzBUW9P5P2n+QqePIpkHnY6hktNhixGurkO8MLQKnxkX9o8vhdw8Gp713sxyfg==","_resolved":"/tmp/e72b9074bbe68b7b844d8e62a417de48/bitcurve-flint-style-0.0.0.tgz","_from":"file:bitcurve-flint-style-0.0.0.tgz","_nodeVersion":"20.14.0","_npmVersion":"10.7.0","dist":{"integrity":"sha512-3j5GX0EtZ7Qf4yas2RAykPX7RzBUW9P5P2n+QqePIpkHnY6hktNhixGurkO8MLQKnxkX9o8vhdw8Gp713sxyfg==","shasum":"6110dd9730f304e75d8bc945571dd5eeccc661cd","tarball":"https://registry.npmjs.org/@bitcurve/flint-style/-/flint-style-0.0.0.tgz","fileCount":9,"unpackedSize":31865,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEYACll63sfX2otOtnIM6s9QfNwuulBXwfY73pG6g/f0AiBJRpWWneBMVpM8HPT49E0RKinXeVCWorsrP95EZ6IimQ=="}]},"_npmUser":{"name":"bitcurvesystems","email":"contact@bitcurve.com"},"directories":{},"maintainers":[{"name":"bitcurvesystems","email":"contact@bitcurve.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/flint-style_0.0.0_1720122041505_0.7604280703207671"},"_hasShrinkwrap":false}},"time":{"created":"2024-07-04T19:40:41.409Z","0.0.0":"2024-07-04T19:40:41.652Z","modified":"2024-07-04T19:40:41.981Z"},"maintainers":[{"name":"bitcurvesystems","email":"contact@bitcurve.com"}],"description":"This package exports a custom `cn()` function for merging class names that incorporates a special configuration of `tailwind-merge` and a custom drop-in replacement of `clsx` for one less dependency.","homepage":"https://github.com/appcurve/flint#readme","repository":{"type":"ssh","url":"git+ssh://git@github.com/appcurve/flint.git","directory":"packages/style"},"bugs":{"url":"https://github.com/appcurve/flint/issues"},"license":"MIT","readme":"# @bitcurve/flint-style\n\nThis package exports a custom `cn()` function for merging class names that incorporates a special configuration of `tailwind-merge` and a custom drop-in replacement of `clsx` for one less dependency.\n\nThe `cn()` function is configured to recognize and merge custom class names corresponding to custom tailwindcss variants and utilities that are defined by the preset and plugins exported by the `@bitcurve/flint-tailwind` package.\n\n## Installation\n\nInstall the package as a dependency and ensure that the peer dependency `tailwind-merge` is also installed.\n\n```sh\npnpm add @bitcurve/flint-style tailwind-merge\n```\n\nThe `cn()` function assumes that the consuming project is using `tailwindcss` configured to use the prest exported by `@bitcurve/flint-tailwind`.\n\n## Usage\n\n### Merge css class names with `cn()`\n\n```ts\nimport { cn } from '@bitcurve/flint-style'\n\nconst className = cn('text-primary-500', 'bg-primary-100', 'hover:bg-primary-200')\n```\n\nThe `cn()` function supports the same syntax as `clsx` including arrays and objects.\n\nRefer to the clsx docs for more details: https://www.npmjs.com/package/clsx\n","readmeFilename":"README.md"}