@styils/react
TypeScript icon, indicating that this package has built-in type declarations

1.1.6 • Public • Published

简体中文

styils

styils

coverage gzip gzip gzip

Lightweight and fast css-in-js tool

🌟 Features

  • 🎭 Polymorphism
  • 🔵 Full ts type
  • 🗺 Support SourceMap
  • 🛎 Support SSR
  • 🎨 Support Themes
  • ☘️ Small size compression + gzip 4kb
  • ⚡️ Near native rendering speed

Documentation

It's very fast. Almost as fast as using native css, and even faster than native rendering under certain conditions

Bench

Styils React

npm

React wrapper including the styled API.

npm install @styils/react

Styils Solid

npm

Solid wrapper including the styled API.

npm install @styils/solid

Styils Vue (Only supports vue3)

npm

Solid wrapper including the styled API.

npm install @styils/vue

Styils Babel Plugin

npm

This is required for sourcemap. Note that babel-plugin does not support vue suorcemap

More

npm install @styils/babel-plugin

Styils Vite Plugin

npm

Wraps @styils/babel-plugin and provides vue sourcemap support.

More babel options

npm install @styils/vite-plugin

SSR Example

Example

Credits

Styils was inspired by other css in js tools such as emotion, goober, stitches. Thanks.

Benchmarks come from stitches

License

Licensed under the MIT License, Copyright © 2022-present zoy-l

See LICENSE for more information.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @styils/react

      Weekly Downloads

      3

      Version

      1.1.6

      License

      MIT

      Unpacked Size

      270 kB

      Total Files

      23

      Last publish

      Collaborators

      • zaire