https://github.com/styocss/styocss
The instant on-demand Atomic CSS-in-JS engine
https://github.com/styocss/styocss
atomic-css css css-in-js engine front-end typescript
Last synced: about 1 year ago
JSON representation
The instant on-demand Atomic CSS-in-JS engine
- Host: GitHub
- URL: https://github.com/styocss/styocss
- Owner: styocss
- License: mit
- Created: 2023-03-01T15:28:40.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-29T08:20:26.000Z (over 1 year ago)
- Last Synced: 2024-10-29T09:41:08.881Z (over 1 year ago)
- Topics: atomic-css, css, css-in-js, engine, front-end, typescript
- Language: TypeScript
- Homepage:
- Size: 713 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
✨ StyoCSS ✨
The instant on-demand Atomic CSS-in-JS engine
Atomic CSS + CSS-in-JS = StyoCSS
🚧 This project is still under development. 🚧
The API is not stable yet.
---
## Introduction
### What is StyoCSS?
> StyoCSS is an Atomic CSS-in-JS engine that allow you to write style in CSS-in-JS way and output in Atomic CSS way.
>
> Inspired by [UnoCSS](https://github.com/unocss/unocss), [WindiCSS](https://github.com/windicss/windicss), [TailwindCSS](https://github.com/tailwindlabs/tailwindcss), [StylifyCSS](https://github.com/stylify) and [Fela.js](https://github.com/robinweser/fela)!
### Why StyoCSS is been created?
Click to 👀 the reason
> I love the idea of Atomic CSS, there are many great Atomic CSS solutions out there, such as UnoCSS, WindiCSS, TailwindCSS, Stylify, etc.
>
> Unfortunately, I am poor to memorize the utility class names, so UnoCSS, WindiCSS or TailwindCSS is not for me.
>
> I am surprised by the zero learning curve concept of Stylify, but I don't like the idea of using a custom syntax to workaround the limitations of html class attribute.
>
> To solve the problems above, the CSS-in-JS way is the best way to write styles, but it is not the best way to output styles.
>
> So I created StyoCSS, it is a Atomic CSS-in-JS engine that allow you to write style in CSS-in-JS way and output in Atomic CSS way!
---
## Features
- 🥰 Framework Agnostic
> It is decoupled from any framework, so you can use it with any framework!
- 🛠 Zero Runtime
> It transforms CSS-in-JS to Atomic CSS at build time!
- 📖 Zero Learning Curve
> In the simplest case, you just need to know the css property names!
- 🤖 TypeScript Auto-Completion
> It has built-in TypeScript support, so you can get auto-completion!
---
Vite + Vue3 Example
---
## License
[MIT](./LICENSE)