Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Add badges
  • Loading branch information
arkarlov authored Sep 25, 2024
1 parent 409e61d commit 84be101
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# react-style-stringify

[![NPM Version](https://img.shields.io/npm/v/react-style-stringify)](https://www.npmjs.com/package/react-style-stringify)
[![npm bundle size](https://img.shields.io/bundlephobia/min/react-style-stringify/latest)](https://www.npmjs.com/package/react-style-stringify)
[![Module type](https://img.shields.io/badge/module_type-cjs%2Besm-f7df1e)](https://www.npmjs.com/package/react-style-stringify)
[![NPM Type Definitions](https://img.shields.io/npm/types/react-style-stringify?color=3178C6)](https://www.npmjs.com/package/react-style-stringify)
[![NPM Downloads](https://img.shields.io/npm/dm/react-style-stringify)](https://www.npmjs.com/package/react-style-stringify)

A utility for converting React `CSSProperties` objects or `Record<string, CSSProperties>` into CSS strings.

This 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.
Expand Down

0 comments on commit 84be101

Please sign in to comment.