JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q30014F
  • License MIT

A tiny React styling library inspired by styled-components

Package Exports

  • @aurhight/jsx-css

Readme

jsx-css

A tiny zero-runtime CSS-in-JS styling library for React — inspired by styled-components, but minimal and fast. Built as a practice project to learn about CSS-in-JS libraries.


🚀 Features

  • 🎯 Use plain object styles — no tagged templates
  • ⚡ Runtime CSS generation using hashed classNames
  • 🧠 Supports :hover, ::after, @media, and more
  • 💅 Designed to be familiar for styled-components users

📦 Installation

npm install jsx-css

✨ Usage

import JsxCss from "jsx-css";

<JsxCss.div
  styles={{
    color: "red",
    ":hover": {
      color: "blue",
    },
    "::after": {
      content: '"🔥"',
      display: "inline-block",
    },
  }}
>
  Hello world
</JsxCss.div>