{"_id":"react-style-stringify","_rev":"7-9d16aa002078680496b48bc37a2ca16a","name":"react-style-stringify","dist-tags":{"latest":"1.2.0"},"versions":{"0.0.1":{"name":"react-style-stringify","version":"0.0.1","keywords":["css","css-strings","css-properties","stringify","styles","react-styles","style-map"],"author":{"name":"Artem Karlov"},"license":"MIT","_id":"react-style-stringify@0.0.1","maintainers":[{"name":"kartem","email":"ar.karlov@gmail.com"}],"homepage":"https://github.com/ArtemKarlov/react-style-stringify#readme","bugs":{"url":"https://github.com/ArtemKarlov/react-style-stringify/issues"},"dist":{"shasum":"877c0adb8e32a90d62f4113605a1bc26de44f721","tarball":"https://registry.npmjs.org/react-style-stringify/-/react-style-stringify-0.0.1.tgz","fileCount":28,"integrity":"sha512-L7jWdOf+++PlTOOlLPZLHAIi0W4iU6gS4AC1saQXutC9408mo1+PcsElx3tOwxJMSknOPpnBWX1zKJW58jppWw==","signatures":[{"sig":"MEYCIQDzyvu93UIGa2/2GcZ9f4Jb3pXgHvSG0OiuJYKO6ueyXwIhAKN3q+f/pgALclvDGDvQhVE4/es0w9+WiOyzrokibrhh","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10535},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=14.0.0"},"exports":{".":{"import":"./dist/index.js","default":"./dist/index.js"}},"gitHead":"8a424c19021b4d57de0dee1e7d169835d99d9651","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"tsc --build"},"_npmUser":{"name":"kartem","email":"ar.karlov@gmail.com"},"repository":{"url":"git+https://github.com/ArtemKarlov/react-style-stringify.git","type":"git"},"_npmVersion":"10.8.1","description":"A utility for converting React CSSProperties and style maps into CSS strings, designed to simplify the management of inline styles in HTML email templates and React projects.","directories":{},"_nodeVersion":"22.3.0","dependencies":{"@emotion/unitless":"^0.10.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.2","@types/react":"^18.3.5"},"peerDependencies":{"react":"^18.0.0"},"_npmOperationalInternal":{"tmp":"tmp/react-style-stringify_0.0.1_1726410304744_0.7035752856970747","host":"s3://npm-registry-packages"}},"0.0.2":{"name":"react-style-stringify","version":"0.0.2","keywords":["css","css-strings","css-properties","stringify","styles","react-styles","style-map"],"author":{"name":"Artem Karlov"},"license":"MIT","_id":"react-style-stringify@0.0.2","maintainers":[{"name":"kartem","email":"ar.karlov@gmail.com"}],"homepage":"https://github.com/arkarlov/react-style-stringify#readme","bugs":{"url":"https://github.com/arkarlov/react-style-stringify/issues"},"dist":{"shasum":"ae4a2fbbec32453045199ec5f26d08e491787c24","tarball":"https://registry.npmjs.org/react-style-stringify/-/react-style-stringify-0.0.2.tgz","fileCount":28,"integrity":"sha512-ymuAGNRvC0Jben5fp2nSBd2a7FLo/qHekByWg/ix4wOpPJTJpDlRUdLnMCivXvbAHPxnMJGmfUaJm4JBVms0iw==","signatures":[{"sig":"MEYCIQCZEzr6dzO5+dM85NS/5QU5esKX34lZx4doQ5x5ti2FDQIhAMI8ENj5IzjY2nNy2C9bQqGYgddsmVHXNughvZVzU7qI","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12909},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=14.0.0"},"exports":{".":{"import":"./dist/index.js","default":"./dist/index.js"}},"gitHead":"6e3c5d9176c209a07b148769251b17bb64803ec3","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"tsc --build"},"_npmUser":{"name":"kartem","email":"ar.karlov@gmail.com"},"repository":{"url":"git+https://github.com/arkarlov/react-style-stringify.git","type":"git"},"_npmVersion":"10.8.1","description":"A utility for converting React CSSProperties and style maps into CSS strings, designed to simplify the management of inline styles in HTML email templates and React projects.","directories":{},"_nodeVersion":"22.3.0","dependencies":{"@emotion/unitless":"^0.10.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.2","@types/react":"^18.3.5"},"peerDependencies":{"react":"^18.0.0"},"_npmOperationalInternal":{"tmp":"tmp/react-style-stringify_0.0.2_1726500784806_0.03447404273311516","host":"s3://npm-registry-packages"}},"1.0.0":{"name":"react-style-stringify","version":"1.0.0","keywords":["css","css-strings","css-properties","stringify","styles","react-styles","style-map"],"author":{"name":"Artem Karlov"},"license":"MIT","_id":"react-style-stringify@1.0.0","maintainers":[{"name":"kartem","email":"ar.karlov@gmail.com"}],"homepage":"https://github.com/arkarlov/react-style-stringify#readme","bugs":{"url":"https://github.com/arkarlov/react-style-stringify/issues"},"dist":{"shasum":"3c8c92b62651173030d46172f9317c86d7a57924","tarball":"https://registry.npmjs.org/react-style-stringify/-/react-style-stringify-1.0.0.tgz","fileCount":9,"integrity":"sha512-ychOZEMXtP4PYBcFl5viKagJF+aqMsX85XLKs2FCPoKysKHYbU+oVpMLFAWkL+2JnXlSbV80dOSBWc9ERmQK6Q==","signatures":[{"sig":"MEUCIAdG0Aup4/5iGb95E81vse6VNKCHBpxK8T6BdnhvaWM0AiEAl35xihSVwjxYfiTvX1QpE71UCxW6PFh8BUMWhK+Hr5c=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":22468},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","engines":{"node":">=14.0.0"},"exports":{".":{"import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"409e61d9e0be327e3d4e77b9e6e3b1aeb86a60cf","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"tsup"},"_npmUser":{"name":"kartem","email":"ar.karlov@gmail.com"},"repository":{"url":"git+https://github.com/arkarlov/react-style-stringify.git","type":"git"},"_npmVersion":"10.8.1","description":"A utility for converting React CSSProperties and style maps into CSS strings, designed to simplify the management of inline styles in HTML email templates and React projects.","directories":{},"_nodeVersion":"22.3.0","dependencies":{"@emotion/unitless":"^0.10.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.0","typescript":"^5.6.2","@types/react":"^18.3.5"},"_npmOperationalInternal":{"tmp":"tmp/react-style-stringify_1.0.0_1727206986684_0.2297122013697135","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"react-style-stringify","version":"1.0.1","keywords":["css","css-string","css-in-js","react-style","style-objects"],"author":{"name":"Artem Karlov"},"license":"MIT","_id":"react-style-stringify@1.0.1","maintainers":[{"name":"kartem","email":"ar.karlov@gmail.com"}],"homepage":"https://github.com/arkarlov/react-style-stringify#readme","bugs":{"url":"https://github.com/arkarlov/react-style-stringify/issues"},"dist":{"shasum":"acd768f072060e8dff7db9e0b3edc7334b1ffc63","tarball":"https://registry.npmjs.org/react-style-stringify/-/react-style-stringify-1.0.1.tgz","fileCount":9,"integrity":"sha512-rO6+KTT0ASsvsm05hoNOeXK1dyeD137Hm/CQLJxoJq/yEwNk5bKE2q6fSoq/JcYHLJc4YOJLqpWgVhRj5rmUnw==","signatures":[{"sig":"MEUCIBcAngFT6i+4om7SXwrpuoadNvO/YSQs9t3DZv7HPUhWAiEApf8MeCUdvrxBxIzk9I55Mm2ALkJirXt2HwDfxgXz+54=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":23752},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","engines":{"node":">=14.0.0"},"exports":{".":{"import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"2d5ae1705bece643cf408292b8e26cd45b59bdd5","scripts":{"test":"vitest --config vitest.config.ts","build":"tsup"},"_npmUser":{"name":"kartem","email":"ar.karlov@gmail.com"},"repository":{"url":"git+https://github.com/arkarlov/react-style-stringify.git","type":"git"},"_npmVersion":"10.8.1","description":"A utility for converting React CSSProperties and style maps into CSS strings, designed to simplify the management of inline styles in HTML email templates and React projects.","directories":{},"_nodeVersion":"22.3.0","dependencies":{"@emotion/unitless":"^0.10.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.0","vitest":"^2.1.1","typescript":"^5.6.2","@types/react":"^18.3.5"},"_npmOperationalInternal":{"tmp":"tmp/react-style-stringify_1.0.1_1729533402215_0.4985494213098305","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"react-style-stringify","version":"1.1.0","keywords":["css","css-string","css-in-js","react-style","style-objects"],"author":{"name":"Artem Karlov"},"license":"MIT","_id":"react-style-stringify@1.1.0","maintainers":[{"name":"kartem","email":"ar.karlov@gmail.com"}],"homepage":"https://github.com/arkarlov/react-style-stringify#readme","bugs":{"url":"https://github.com/arkarlov/react-style-stringify/issues"},"dist":{"shasum":"5f4fa092e6dda6b25475a4a77c80722c8b1def7e","tarball":"https://registry.npmjs.org/react-style-stringify/-/react-style-stringify-1.1.0.tgz","fileCount":9,"integrity":"sha512-QCY1SwOsZrOSXTGl67BCnixQO3Sck+4zKl/gfghLzsIdCydrTs8vg3r0pInHsde/qtpFvfMbHc/gREXdTNvo7g==","signatures":[{"sig":"MEYCIQD0myjEZnDO0C9FKySAxL+pcPpEG7PiIl5nv8mcchCqewIhAOpmqVdWr2vOB7McInqln2CybynhbyePt/Qcjd3BKTG/","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25706},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","engines":{"node":">=14.0.0"},"exports":{".":{"import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"8b5be0f783e30e38f1829d043c6256612f7f948d","scripts":{"test":"vitest --config vitest.config.ts","build":"tsup"},"_npmUser":{"name":"kartem","email":"ar.karlov@gmail.com"},"repository":{"url":"git+https://github.com/arkarlov/react-style-stringify.git","type":"git"},"_npmVersion":"10.8.1","description":"A utility for converting React CSSProperties and style maps into CSS strings, designed to simplify the management of inline styles in HTML email templates and React projects.","directories":{},"_nodeVersion":"22.3.0","dependencies":{"@emotion/unitless":"^0.10.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.0","vitest":"^2.1.1","typescript":"^5.6.2","@types/react":"^18.3.5"},"_npmOperationalInternal":{"tmp":"tmp/react-style-stringify_1.1.0_1729796059536_0.25196135497999017","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"react-style-stringify","version":"1.1.1","keywords":["css","css-string","css-in-js","react-style","style-objects"],"author":{"name":"Artem Karlov"},"license":"MIT","_id":"react-style-stringify@1.1.1","maintainers":[{"name":"kartem","email":"ar.karlov@gmail.com"}],"homepage":"https://github.com/arkarlov/react-style-stringify#readme","bugs":{"url":"https://github.com/arkarlov/react-style-stringify/issues"},"dist":{"shasum":"003e641050fa8f0b4d8d7b6a8cdc4c27a89bf6dd","tarball":"https://registry.npmjs.org/react-style-stringify/-/react-style-stringify-1.1.1.tgz","fileCount":9,"integrity":"sha512-amTb1Ud9NVT/9WRgKjCGSfuRZgWcXfKqAoDe/FoyKExoVGY4HDQdgGWuruGPz1OZv1274JLpDbSqDSlx6mBCag==","signatures":[{"sig":"MEYCIQCbEA44w1t5CZScSsKmypnpvJau6rEt9dXNGLTXhtCG9gIhALnJXm+wvy24Xc2nT1OvB+Ug2gJv1SCAABW8sJnuDuSD","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":26766},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","engines":{"node":">=14.0.0"},"exports":{".":{"import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"c4ebe9b62db4a3880177a9d9e711ea8297fc40cd","scripts":{"test":"vitest run --config vitest.config.ts","build":"tsup","test:watch":"vitest --config vitest.config.ts"},"_npmUser":{"name":"kartem","email":"ar.karlov@gmail.com"},"repository":{"url":"git+https://github.com/arkarlov/react-style-stringify.git","type":"git"},"_npmVersion":"11.1.0","description":"A utility for converting React CSSProperties and style maps into CSS strings, designed to simplify the management of inline styles in HTML email templates and React projects.","directories":{},"_nodeVersion":"22.14.0","dependencies":{"@emotion/unitless":"^0.10.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.0","vitest":"^2.1.1","typescript":"^5.6.2","@types/react":"^18.3.5"},"_npmOperationalInternal":{"tmp":"tmp/react-style-stringify_1.1.1_1747302561313_0.3293222608376347","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"react-style-stringify","version":"1.2.0","description":"A utility for converting React CSSProperties and style maps into CSS strings, designed to simplify the management of inline styles in HTML email templates and React projects.","keywords":["css","css-string","css-in-js","react-style","style-objects"],"license":"MIT","author":{"name":"Artem Karlov"},"homepage":"https://github.com/arkarlov/react-style-stringify#readme","repository":{"type":"git","url":"git+https://github.com/arkarlov/react-style-stringify.git"},"main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","exports":{".":{"require":"./dist/index.js","import":"./dist/index.mjs"}},"scripts":{"build":"tsup","test":"vitest run --config vitest.config.ts","test:watch":"vitest --config vitest.config.ts"},"dependencies":{"@emotion/unitless":"^0.10.0"},"devDependencies":{"@types/react":"^19.1.6","tsup":"^8.5.0","typescript":"^5.8.3","vitest":"^3.2.2"},"engines":{"node":">=14.0.0"},"_id":"react-style-stringify@1.2.0","gitHead":"dd5c33ac8e4feb85e5aa7ebcf15284002ef439cf","bugs":{"url":"https://github.com/arkarlov/react-style-stringify/issues"},"_nodeVersion":"22.14.0","_npmVersion":"11.1.0","dist":{"integrity":"sha512-88JZckqgbfXJaGcDQoTFKRmBwHBF0Ddaxz3PL9Q+vywAJruBY+NdN+ZiKSBe7r/pWtjbt0naZdtH5oNI1X3FLA==","shasum":"d6ffc475dde8e9f8e3014f383f942666e8fb983a","tarball":"https://registry.npmjs.org/react-style-stringify/-/react-style-stringify-1.2.0.tgz","fileCount":9,"unpackedSize":49915,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCC24lORmEVDWImR+obsz1VOXoY7ThphjCBI141MUMzlQIgIn6UgZas0Tc61MOXWGw7w3OGA4MtD/ijEahqqzMYzoM="}]},"_npmUser":{"name":"kartem","email":"ar.karlov@gmail.com"},"directories":{},"maintainers":[{"name":"kartem","email":"ar.karlov@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/react-style-stringify_1.2.0_1749759603576_0.5107862972110517"},"_hasShrinkwrap":false}},"time":{"created":"2024-09-15T14:25:04.743Z","modified":"2025-06-12T20:20:03.966Z","0.0.1":"2024-09-15T14:25:04.908Z","0.0.2":"2024-09-16T15:33:04.988Z","1.0.0":"2024-09-24T19:43:06.853Z","1.0.1":"2024-10-21T17:56:42.415Z","1.1.0":"2024-10-24T18:54:19.717Z","1.1.1":"2025-05-15T09:49:21.503Z","1.2.0":"2025-06-12T20:20:03.761Z"},"bugs":{"url":"https://github.com/arkarlov/react-style-stringify/issues"},"author":{"name":"Artem Karlov"},"license":"MIT","homepage":"https://github.com/arkarlov/react-style-stringify#readme","keywords":["css","css-string","css-in-js","react-style","style-objects"],"repository":{"type":"git","url":"git+https://github.com/arkarlov/react-style-stringify.git"},"description":"A utility for converting React CSSProperties and style maps into CSS strings, designed to simplify the management of inline styles in HTML email templates and React projects.","maintainers":[{"name":"kartem","email":"ar.karlov@gmail.com"}],"readme":"# react-style-stringify\n\n[![NPM Version](https://img.shields.io/npm/v/react-style-stringify)](https://www.npmjs.com/package/react-style-stringify)\n[![npm bundle size](https://img.shields.io/bundlephobia/min/react-style-stringify/latest)](https://www.npmjs.com/package/react-style-stringify)\n[![Module type](https://img.shields.io/badge/module_type-cjs%2Besm-f7df1e)](https://www.npmjs.com/package/react-style-stringify)\n[![NPM Type Definitions](https://img.shields.io/npm/types/react-style-stringify?color=3178C6)](https://www.npmjs.com/package/react-style-stringify)\n[![NPM Downloads](https://img.shields.io/npm/dm/react-style-stringify)](https://www.npmjs.com/package/react-style-stringify)\n\n[![GitHub Actions - Tests](https://github.com/arkarlov/react-style-stringify/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/arkarlov/react-style-stringify/actions/workflows/tests.yml)\n\nA utility for converting React `CSSProperties` objects or `Record<string, CSSProperties>` into CSS strings.\n\nThis utility was originally created to simplify the process of adding inline CSS styles to HTML email templates in a React project. Previously, all styles were written as plain strings, which became unmanageable as the project grew. To make styles more maintainable and consistent, this utility was developed to convert React `CSSProperties` objects into CSS strings, streamlining the process of embedding styles in the final HTML before sending emails.\n\n## Features\n\n- Converts a single `CSSProperties` object to a CSS string.\n- Converts a `Record<string, CSSProperties>` map to a CSS string.\n- Automatically adds units (`px` by default) for numeric values.\n- Optionally injects the `!important` statement for each css declaration.\n\n## Installation\n\n```bash\nnpm install react-style-stringify\n```\n\nor\n\n```bash\nyarn add react-style-stringify\n```\n\n> [!TIP]\n> This package uses the `CSSProperties` type from `@types/react`.\n>\n> If you're working with TypeScript and don't use React, install [@types/react](https://www.npmjs.com/package/@types/react).\n\n## Usage\n\n### Import utils\n\n```tsx\nimport {\n  stringifyCSSProperties,\n  stringifyStyleMap,\n} from \"react-style-stringify\";\n```\n\n### Convert a single `CSSProperties` object\n\n```tsx\nconst cssString = stringifyCSSProperties({\n  flex: 1,\n  padding: 20,\n  backgroundColor: \"teal\",\n});\n// Output: \"flex:1;padding:20px;background-color:teal;\"\n\nconst importantCssString = stringifyCSSProperties(\n  {\n    flex: 1,\n    padding: 20,\n    backgroundColor: \"teal\",\n  },\n  { important: true } // `true` in versions <= 1.1.1\n);\n// Output: \"flex:1!important;padding:20px!important;background-color:teal!important;\"\n\nconst cssStringWtihDefinedUnit = stringifyCSSProperties(\n  {\n    padding: 10,\n    fontSize: 1.6,\n  },\n  {\n    unit: \"em\",\n  }\n);\n// Output: \"padding:10em;font-size:1.6em;\"\n\nconst cssStringWtihDefinedUnitMap = stringifyCSSProperties(\n  {\n    padding: 10,\n    fontSize: 1.6,\n  },\n  {\n    unit: { fontSize: \"rem\" },\n  }\n);\n// Output: \"padding:10px;font-size:1.6rem;\"\n```\n\n> [!WARNING]\n> In versions `<= 1.1.1`, only `true` was accepted as the second argument.\n> As of `v1.2.0`, the options object `{ important: true }` is recommended.\n\n### Convert a `Record<string, CSSProperties>` object\n\n```tsx\nconst cssMapString = stringifyStyleMap({\n  p: {\n    margin: 0,\n    color: \"teal\",\n  },\n  \"#root ul.my-list > li\": {\n    padding: 10,\n  },\n});\n// Output: \"p{margin:0;color:teal;}#root ul.my-list>li{padding:10px;}\"\n```\n\n> [!NOTE]\n> The `options` argument is forwarded internally to `stringifyCSSProperties`, so all options (like `important` or `unit`) work the same way.\n\n### Generic\n\n```ts\nimport {\n  stringifyStyleDeclaration,\n  stringifyStyleRule,\n} from \"react-style-stringify\";\n\ntype MyStyle = {\n  padding: number;\n  fontSize: number;\n};\n\nstringifyStyleDeclaration<MyStyle>({\n  padding: 10,\n  fontSize: 16,\n})\n// Output: \"padding:10px;font-size:16px;\"\n\nstringifyStyleRule<MyStyle>({\n  \".container\": {\n      padding: 10,\n      fontSize: 16,\n  },\n});\n// Output: \".container{\"padding:10px;font-size:16px;\"}\"\n```\n\n> [!NOTE]\n> The `options` argument works the same way as for `stringifyCSSProperties` and `stringifyStyleMap`.\n\n## API\n\n### Types\n\n```ts\ntype StyleMap = Record<string, CSSProperties>;\n\ntype CSSUnit = \"px\" | \"em\" | \"rem\" | \"vw\" | \"vh\" | \"%\";\n\ntype CSSUnitMap<K extends PropertyKey = string> = {\n    [P in K]?: CSSUnit;\n};\n\ntype StringifyOptions<T extends object = Record<string, string | number>> = {\n    important?: boolean;\n    unit?: CSSUnit | CSSUnitMap<keyof T>;\n};\n\ntype StyleDeclaration = Record<string, string | number>;\n\ntype StyleRule<T extends object = StyleDeclaration> = Record<string, T>;\n```\n\n### Functions\n\n```ts\nfunction stringifyCSSProperties(\n  cssProperties: CSSProperties,\n  optionsOrImportant?: StringifyOptions<CSSProperties> | boolean\n): string;\n\nfunction stringifyStyleMap(\n  styleMap: StyleMap,\n  optionsOrImportant?: StringifyOptions<CSSProperties> | boolean\n): string;\n```\n\n### Generic\n\n```ts\nfunction stringifyStyleDeclaration<T extends object = StyleDeclaration>(\n  styleDeclaration: T,\n  options?: StringifyOptions<T>\n): string;\n\nfunction stringifyStyleRule<T extends object = StyleDeclaration>(\n  styleRule: StyleRule<T>,\n  options?: StringifyOptions<T>\n): string;\n```\n\n## Dependencies\n\n- **[@emotion/unitless](https://www.npmjs.com/package/@emotion/unitless)**: Handles checking for CSS properties that are unitless (e.g., `line-height`, `z-index`, etc.).\n\n## Requirements\n\n- **[@types/react](https://www.npmjs.com/package/@types/react)**: The package uses React's `CSSProperties` type for defining style objects.\n\n## Contributing\n\nContributions are welcome! If you have ideas or improvements, feel free to open an issue or submit a pull request.\n\n### Steps to contribute:\n\n1. Fork the repository.\n2. Create a new branch (`git checkout -b feature-name`).\n3. Make your changes and commit (`git commit -am 'Add new feature'`).\n4. Push to the branch (`git push origin feature-name`).\n5. Create a pull request.\n\nPlease make sure your code adheres to the project's coding standards and passes the existing tests.\n","readmeFilename":"README.md"}