compo-css
TypeScript icon, indicating that this package has built-in type declarations

0.0.0 • Public • Published

Compo Css

Component based css with vanila javascript.

Get Started

Install Compo Css to your project.

pnpm install compo-css

Example

import ccss form "compo-css";

const div = ccss("div")`
    padding: 20px;
    background-color: teal;
    font-family: sans-serif;

`;
const p = ccss("p")`
    margin: 0;
    font-size: 5rem;
    font-weight: 700;
    background-color: red;
`;

p.innerText = "Compo Css";

div.append(p);

document.querySelector("body").append(div);

Package Sidebar

Install

npm i compo-css

Weekly Downloads

1

Version

0.0.0

License

MIT

Unpacked Size

5.73 kB

Total Files

12

Last publish

Collaborators

  • mdmahikaishar001