1.6.7 • Published 8 days ago

@yamada-ui/core v1.6.7

Weekly downloads
-
License
MIT
Repository
github
Last release
8 days ago

@yamada-ui/core

Styled API for creating atomic, theme-aware component styling.

Installation

$ pnpm add @yamada-ui/core

or

$ yarn add @yamada-ui/core

or

$ npm install @yamada-ui/core

Problem

In modern web development, we have lots of solutions and architectures that have tried to unify how components are styled. We've seen CSS architectures like BEM, SMACSS, etc, and frameworks like Bootstrap, and Tailwind CSS.

While these solutions work great, we still think there is a sheer amount of work required to create a fully customizable, theme-aware component.

Moreover, Many existing UI component libraries, which have been around for a long time, are facing challenges in aligning with the requirements of modern web development.

Solutions

UI Elements

Yamada UI provides enhanced JSX elements that can be styled directly via props, or can accept the common sx prop for custom styles.

We'll provide a ui function, just like styled-components. Users can create any component using the ui.[element]. The resulting component will be a styled component and have all system props.

<ui.div bg="green" _hover={{ bg: "red" }}>Hover me</ui.div>

<ui.h1 fontSize="2rem">Yamada UI</ui.h1>

// create your own box
const Box = ui.div

// or

const Box = ui("div", {
  baseStyle: {
    // ... your styles
  }
})

// you can still use the `as` prop
<Box as="h1">This is my box</Box>

// components that inherit the logic of Yamada UI.
const UIComponent = ui(YourComponent)

Contribution

Wouldn't you like to contribute? That's amazing! We have prepared a contribution guide to assist you.

License

This package is licensed under the terms of the MIT license.

1.6.7

8 days ago

1.6.6

13 days ago

1.6.5

21 days ago

1.6.4

25 days ago

1.6.3

28 days ago

1.6.2

1 month ago

1.6.1

1 month ago

1.6.0

1 month ago

1.5.0

2 months ago

1.4.4

2 months ago

1.4.3

2 months ago

1.4.2

2 months ago

1.4.1

3 months ago

1.4.0

3 months ago

1.3.2

3 months ago

1.3.1

3 months ago

1.3.0

4 months ago

1.2.2

4 months ago

1.2.0

4 months ago

1.2.1

4 months ago

1.1.4

4 months ago

1.1.3

4 months ago

1.1.2

4 months ago

1.1.1

5 months ago

1.1.0

5 months ago

1.0.0

5 months ago

0.15.4

5 months ago

0.15.3

5 months ago

0.15.2

5 months ago

0.15.0

5 months ago

0.15.1

5 months ago

0.14.2

5 months ago

0.14.1

5 months ago

0.14.0

5 months ago

0.13.2

5 months ago

0.13.1

5 months ago

0.13.0

5 months ago

0.3.1

11 months ago

0.7.0

8 months ago

0.9.4

7 months ago

0.9.3

8 months ago

0.10.0

7 months ago

0.8.0

8 months ago

0.4.1

10 months ago

0.4.0

11 months ago

0.4.3

10 months ago

0.4.2

10 months ago

0.11.0

7 months ago

0.11.1

7 months ago

0.11.2

7 months ago

0.11.3

7 months ago

0.9.0

8 months ago

0.5.4

10 months ago

0.5.3

10 months ago

0.9.2

8 months ago

0.9.1

8 months ago

0.5.0

10 months ago

0.5.2

10 months ago

0.5.1

10 months ago

0.12.7

6 months ago

0.12.8

5 months ago

0.12.0

7 months ago

0.12.1

7 months ago

0.12.2

7 months ago

0.12.3

7 months ago

0.12.4

7 months ago

0.12.5

6 months ago

0.12.6

6 months ago

0.6.3

9 months ago

0.6.2

9 months ago

0.6.5

8 months ago

0.6.4

9 months ago

0.6.1

9 months ago

0.6.0

10 months ago

0.3.0

11 months ago

0.2.3

11 months ago

0.2.2

11 months ago

0.2.1

11 months ago

0.2.0

11 months ago

0.1.6

11 months ago

0.1.5

11 months ago

0.1.4

11 months ago

0.1.3

11 months ago

0.1.2

11 months ago

0.1.1

11 months ago

0.1.0

11 months ago