Skip to content
/ styils Public

Lightweight and fast css-in-js solution. Support for topics, Polymorphism, SSR, Sourcemap, Full type definitions

License

Notifications You must be signed in to change notification settings

styils/styils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

简体中文

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

Vue 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.