@styils/solid
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.

Package Sidebar

Install

npm i @styils/solid

Weekly Downloads

2

Version

1.1.6

License

MIT

Unpacked Size

260 kB

Total Files

22

Last publish

Collaborators

  • zaire