1.0.3 • Published 5 months ago

@devup-ui/react v1.0.3

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
5 months ago


English | 한국어

Install

npm install @devup-ui/react

# on next.js
npm install @devup-ui/next-plugin

# on vite
npm install @devup-ui/vite-plugin

Features

  • Preprocessor
  • Zero Config
  • Zero FOUC
  • Zero Runtime
  • RSC Support
  • Must not use JavaScript, client-side logic, or hybrid solutions
  • Support Library mode
  • Zero Cost Dynamic Theme Support based on CSS Variables
  • Theme with Typing
  • Smallest size, fastest speed

Inspirations

  • Styled System
  • Chakra UI
  • Theme UI
  • Vanilla Extract
  • Rainbow Sprinkles
  • Kuma UI

Comparison Benchmarks

Next.js Build Time and Build Size (AMD Ryzen 9 9950X, 128GB RAM, Windows 11)

LibraryBuild TimeBuild Size
kuma-ui20.933s57,295,073b
chakra-ui36.961s129,527,610b
devup-ui15.162s48,047,678b

How it works

Devup UI is a CSS in JS preprocessor that does not require runtime. Devup UI eliminates the performance degradation of the browser through the CSS in JS preprocessor. We develop a preprocessor that considers all grammatical cases.

// Before
<Box bg={"red"}/>
// After
<Box className={"d0"}/>

Variables are fully supported.

// Before
<Box bg={colorVariable}/>
// After
<Box className={"d0"} style={{
    "--d0": colorVariable
}}/>

Various expressions and responsiveness are also fully supported.

// Before
<Box bg={["red", "blue", a > b ? "yellow" : variable]}/>
// After
<Box className={`d0 d1 ${a > b ? "d2" : "d3"}`} style={{
    "--d2": variable
}}/>

Support Theme with Typing

devup.json

{
  "theme": {
    "colors": {
      "default": {
        "text": "#000"
      },
      "dark": {
        "text": "white"
      }
    }
  }
}
// Type Safe
<Text color="$text"/>

Support Responsive And Pseudo Selector

You can use responsive and pseudo selector.

// Responsive with Selector
<Box _hover={{bg: ["red", "blue"]}}/>

// Another way
<Box _hover={[{bg: "red"}, {bg: "blue"}]}/>
1.0.3

5 months ago

1.0.2

5 months ago

1.0.1

5 months ago

1.0.0

6 months ago

0.1.34

7 months ago

0.1.33

7 months ago

0.1.32

8 months ago

0.1.31

9 months ago

0.1.30

9 months ago

0.1.29

9 months ago

0.1.28

9 months ago

0.1.27

9 months ago

0.1.26

9 months ago

0.1.25

9 months ago

0.1.24

9 months ago

0.1.23

9 months ago

0.1.22

9 months ago

0.1.21

9 months ago

0.1.20

9 months ago

0.1.19

9 months ago

0.1.18

9 months ago

0.1.17

10 months ago

0.1.16

10 months ago

0.1.15

10 months ago

0.1.14

10 months ago

0.1.13

10 months ago

0.1.12

10 months ago

0.1.11

10 months ago

0.1.10

10 months ago

0.1.9

10 months ago

0.1.8

10 months ago

0.1.7

10 months ago

0.1.6

10 months ago

0.1.5

10 months ago

0.1.4

10 months ago

0.1.3

10 months ago

0.1.2

10 months ago

0.1.1

10 months ago

0.1.0

10 months ago