# write-css-in-js

> A JavaScript function to write CSS for DOM elements using CSS

Latest version **1.0.0** (published 2022-01-25) · ISC license · 0 weekly downloads

## Install

```sh
npm install write-css-in-js
pnpm add write-css-in-js
yarn add write-css-in-js
bun add write-css-in-js
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2022-01-25 |
| First published | 2022-01-25 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | dinuka |
| Maintainers | dinuka |

## Links

- npm: https://www.npmjs.com/package/write-css-in-js
- Repository: https://github.com/Dinuka-Dilshan/NoCSS
- Homepage: https://github.com/Dinuka-Dilshan/NoCSS#readme
- Issues: https://github.com/Dinuka-Dilshan/NoCSS/issues
- npm.io page: https://npm.io/package/write-css-in-js

## Recent versions

- 1.0.0 (latest) — 2022-01-25

## README

# NoCSS
A JavaScript function to write CSS for DOM elements using CSS


## How To Use

Function take two arguments. first one can be an array of strings or a string. Second one takes an object. use CSS properties and the values to style the selected elements.

 Target elements using classes 
 

    css('.className', {color: "red",fontSize:"2rem"});

  Target elements using Id

    css('#id', {color: "red"});

  Target elements using html tags
  

    css('tagName', {color: "red"});

Target multiple elements 

    css(['.className','#Id'], {color: "red"});

---
_Source: https://npm.io/package/write-css-in-js · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
