22 <img src =" https://raw.githubusercontent.com/dev-five-git/devup-ui/main/media/logo.svg " alt =" Devup UI logo " width =" 300 " />
33</div >
44
5-
65<h3 align =" center " >
76 Zero Config, Zero FOUC, Zero Runtime, CSS in JS Preprocessor
87</h3 >
2322<a href =" https://discord.gg/8zjcGc7cWh " >
2423<img alt =" Discord " src =" https://img.shields.io/discord/1321362173619994644.svg?label=&logo=discord&logoColor=ffffff&color=7389D8&labelColor=6A7EC2 " />
2524</a >
26- <a href =" https://codecov.io/gh/dev-five-git/devup-ui " >
27- <img src =" https://codecov.io/gh/dev-five-git/devup-ui/graph/badge.svg?token=8I5GMB2X5B " />
25+ <a href =" https://codecov.io/gh/dev-five-git/devup-ui " >
26+ <img src =" https://codecov.io/gh/dev-five-git/devup-ui/graph/badge.svg?token=8I5GMB2X5B " />
2827</a >
2928</div >
3029
@@ -76,48 +75,58 @@ npm install @devup-ui/webpack-plugin
7675
7776Next.js Build Time and Build Size (github action - ubuntu-latest)
7877
79- | Library | Version | Build Time | Build Size |
80- | -------------------------- | ---------- | ------------ | ------------------- |
81- | tailwindcss | 4.1.13 | 20.22s | 57,415,796 bytes |
82- | styleX | 0.15.4 | 38.97s | 76,257,820 bytes |
83- | vanilla-extract | 1.17.4 | 20.09s | 59,366,237 bytes |
84- | kuma-ui | 1.5.9 | 21.61s | 67,422,085 bytes |
85- | panda-css | 1.3.1 | 22.01s | 62,431,065 bytes |
86- | chakra-ui | 3.27.0 | 29.99s | 210,122,493 bytes |
87- | mui | 7.3.2 | 22.21s | 94,231,958 bytes |
88- | devup-ui(per-file css) | 1.0.18 | 18.23s | 57,440,953 bytes |
89- | devup-ui(single css) | 1.0.18 | 18.35s | 57,409,008 bytes |
78+ | Library | Version | Build Time | Build Size |
79+ | ---------------------- | ------- | ---------- | ----------------- |
80+ | tailwindcss | 4.1.13 | 20.22s | 57,415,796 bytes |
81+ | styleX | 0.15.4 | 38.97s | 76,257,820 bytes |
82+ | vanilla-extract | 1.17.4 | 20.09s | 59,366,237 bytes |
83+ | kuma-ui | 1.5.9 | 21.61s | 67,422,085 bytes |
84+ | panda-css | 1.3.1 | 22.01s | 62,431,065 bytes |
85+ | chakra-ui | 3.27.0 | 29.99s | 210,122,493 bytes |
86+ | mui | 7.3.2 | 22.21s | 94,231,958 bytes |
87+ | devup-ui(per-file css) | 1.0.18 | 18.23s | 57,440,953 bytes |
88+ | devup-ui(single css) | 1.0.18 | 18.35s | 57,409,008 bytes |
9089
9190## How it works
9291
9392Devup UI is a CSS in JS preprocessor that does not require runtime.
9493Devup UI eliminates the performance degradation of the browser through the CSS in JS preprocessor.
9594We develop a preprocessor that considers all grammatical cases.
9695
97- ``` typescript
98- const before = <Box bg = { " red" } />
96+ ``` tsx
97+ const before = <Box bg = " red" />
9998
100- const after = <div className = " d0" />
99+ const after = <div className = " d0" />
101100```
102101
103102Variables are fully supported.
104103
105- ```typescript
106- const before = <Box bg = {colorVariable}/>
107-
108- const after = <div className = " d0" style = {{
109- " --d0" : colorVariable
110- }}/>
104+ ``` tsx
105+ const before = <Box bg = { colorVariable } />
106+
107+ const after = (
108+ <div
109+ className = " d0"
110+ style = { {
111+ ' --d0' : colorVariable ,
112+ }}
113+ />
114+ )
111115```
112116
113117Various expressions and responsiveness are also fully supported.
114118
115- ```typescript
116- const before = <Box bg = {[" red" , " blue" , a > b ? " yellow" : variable ]}/>
117-
118- const after = <div className = {` d0 d1 ${a > b ? " d2" : " d3" } ` } style = {{
119- " --d2" : variable
120- }}/>
119+ ``` tsx
120+ const before = <Box bg = { [' red' , ' blue' , a > b ? ' yellow' : variable ]} />
121+
122+ const after = (
123+ <div
124+ className = { ` d0 d1 ${a > b ? ' d2' : ' d3' } ` }
125+ style = { {
126+ ' --d2' : variable ,
127+ }}
128+ />
129+ )
121130```
122131
123132Support Theme with Typing
@@ -139,36 +148,40 @@ Support Theme with Typing
139148}
140149```
141150
142- ```typescript
151+ ``` tsx
143152// Type Safe
144- <Text color = " $text" />
153+ <Text color = " $text" />
145154```
146155
147156Support Responsive And Pseudo Selector
148157
149158You can use responsive and pseudo selector.
150159
151- ```typescript
160+ ``` tsx
152161// Responsive with Selector
153- const box = <Box _hover = {{bg: [" red" , " blue" ]}} />
162+ const box = <Box _hover = { { bg: [' red' , ' blue' ] } } />
154163
155164// Same
156- const box = <Box _hover = {[{bg: " red" }, {bg: " blue" }]}/>
165+ const box = <Box _hover = { [{ bg: ' red' }, { bg: ' blue' }]} />
157166```
158167
159168## How to Contribute
160169
161170### Requirements
171+
162172- [ Node.js] ( https://nodejs.org ) (LTS version recommended)
163173- [ Rust] ( https://rustup.rs ) compiler
164174- pnpm package manager (` npm install -g pnpm ` )
165175
166176### Development Setup
177+
167178To set up the development environment, install the following packages:
179+
168180``` sh
169181pnpm i
170182pnpm build
171183cargo install cargo-tarpaulin
172184cargo install wasm-pack
173185```
174- After installation , run ` pnpm test ` to ensure everything works correctly .
186+
187+ After installation, run ` pnpm test ` to ensure everything works correctly.
0 commit comments