1- # WIP
2-
3- Zero Config, Zero FOUC, Zero Runtime, CSS in JS Preprocessor
4-
5- # Devup UI
1+ <div align =" center " >
2+ <img src =" https://raw.githubusercontent.com/dev-five-git/devup-ui/main/media/logo.svg " alt =" Devup UI logo " width =" 300 " />
3+ </div >
4+
5+
6+ <h3 align =" center " >
7+ Zero Config, Zero FOUC, Zero Runtime, CSS in JS Preprocessor
8+ </h3 >
9+
10+ ---
11+
12+ <iframe src =" https://github.com/sponsors/dev-five-git/button " title =" Sponsor dev-five-git " height =" 32 " width =" 114 " style =" border : 0 ; border-radius : 6px ;" ></iframe >
13+
14+ <div >
15+ <img src =' https://img.shields.io/npm/v/@devup-ui/react ' >
16+ <img src =' https://img.shields.io/bundlephobia/minzip/@devup-ui/react ' >
17+ <img alt =" Github Checks " src =" https://badgen.net/github/checks/dev-five-git/devup-ui " />
18+ <img alt =" Apache-2.0 License " src =" https://img.shields.io/github/license/dev-five-git/devup-ui " />
19+ <a href =" https://www.npmjs.com/package/@devup-ui/react " >
20+ <img alt =" NPM Downloads " src =" https://img.shields.io/npm/dm/@devup-ui/react.svg?style=flat " />
21+ </a >
22+ <a href =" https://badgen.net/github/stars/dev-five-git/devup-ui " >
23+ <img alt =" Github Stars " src =" https://badgen.net/github/stars/dev-five-git/devup-ui " />
24+ </a >
25+ <a href =" https://discord.gg/BtNffusw " >
26+ <img alt =" Discord " src =" https://img.shields.io/discord/1321362173619994644.svg?label=&logo=discord&logoColor=ffffff&color=7389D8&labelColor=6A7EC2 " />
27+ </a >
28+ <a href =" https://codecov.io/gh/dev-five-git/devup-ui " >
29+ <img src =" https://codecov.io/gh/dev-five-git/devup-ui/graph/badge.svg?token=8I5GMB2X5B " />
30+ </a >
31+ </div >
32+
33+ ---
634
735English | [ 한국어] ( README_ko.md )
836
937## Install
1038
11- > npm install @devup-ui/react
39+ ``` sh
40+ npm install @devup-ui/react
41+
42+ # on next.js
43+ npm install @devup-ui/next-plugin
44+
45+ # on vite
46+ npm install @devup-ui/vite-plugin
47+ ```
1248
1349## Features
1450
@@ -18,6 +54,10 @@ English | [한국어](README_ko.md)
1854- Zero Runtime
1955- RSC Support
2056- Must not use JavaScript, client-side logic, or hybrid solutions
57+ - Support Library mode
58+ - Zero Cost Dynamic Theme Support based on CSS Variables
59+ - Theme with Typing
60+ - Smallest size, fastest speed
2161
2262## Inspirations
2363
@@ -28,7 +68,17 @@ English | [한국어](README_ko.md)
2868- Rainbow Sprinkles
2969- Kuma UI
3070
31- ## Goal
71+ ## Comparison Benchmarks
72+
73+ Next.js Build Time and Build Size (AMD Ryzen 9 9950X, 128GB RAM, Windows 11)
74+
75+ | Library | Build Time | Build Size |
76+ | -----------| ------------| --------------|
77+ | kuma-ui | 20.933s | 57,295,073b |
78+ | chakra-ui | 36.961s | 129,527,610b |
79+ | devup-ui | 15.162s | 48,047,678b |
80+
81+ ## How it works
3282
3383Devup UI is a CSS in JS preprocessor that does not require runtime.
3484Devup UI eliminates the performance degradation of the browser through the CSS in JS preprocessor.
@@ -38,7 +88,7 @@ We develop a preprocessor that considers all grammatical cases.
3888// Before
3989< Box bg= {" red" }/ >
4090// After
41- < Box className= {" bg-red-0 " }/ >
91+ < Box className= {" d0 " }/ >
4292```
4393
4494Variables are fully supported.
@@ -47,8 +97,8 @@ Variables are fully supported.
4797// Before
4898< Box bg= {colorVariable}/ >
4999// After
50- < Box className= {" bg-0 " } style= {{
51- " --bg-0 " : colorVariable
100+ < Box className= {" d0 " } style= {{
101+ " --d0 " : colorVariable
52102}}/ >
53103```
54104
@@ -58,7 +108,44 @@ Various expressions and responsiveness are also fully supported.
58108// Before
59109< Box bg= {[" red" , " blue" , a > b ? " yellow" : variable]}/ >
60110// After
61- < Box className= {` bg-red-0 bg-blue-1 ${ a > b ? " bg-yellow-2 " : " bg-2 " } ` } style= {{
62- " --bg-2 " : variable
111+ < Box className= {` d0 d1 ${ a > b ? " d2 " : " d3 " } ` } style= {{
112+ " --d2 " : variable
63113}}/ >
64114```
115+
116+ Support Theme with Typing
117+
118+ ` devup.json `
119+
120+ ``` json
121+ {
122+ "theme" : {
123+ "colors" : {
124+ "default" : {
125+ "text" : " #000"
126+ },
127+ "dark" : {
128+ "text" : " white"
129+ }
130+ }
131+ }
132+ }
133+ ```
134+
135+ ``` jsx
136+ // Type Safe
137+ < Text color= " $text" / >
138+ ```
139+
140+ Support Responsive And Pseudo Selector
141+
142+ You can use responsive and pseudo selector.
143+
144+ ``` jsx
145+ // Responsive with Selector
146+ < Box _hover= {{bg: [" red" , " blue" ]}}/ >
147+
148+ // Same
149+ < Box _hover= {[{bg: " red" }, {bg: " blue" }]}/ >
150+
151+ ```
0 commit comments