matheusps / runtime-stylesheet

Dead simple runtime CSS-in-TS parser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Runtime Stylesheet

Parse vanilla-extract styles in runtime. Use it only for testing purposes - For production, use vanilla-extract 🙂.

Usage

Install the package:

pnpm add runtime-stylesheet

Start styling

import { Stylesheet } from 'runtime-stylesheet'

function Example(){
  return (
    <>
      <div className="container">content</div>
      <RuntimeStylesheet css={{ container: { background: '#000' } }} />
     </>
  )
}

About

Dead simple runtime CSS-in-TS parser


Languages

Language:TypeScript 99.1%Language:JavaScript 0.9%