deca-org / deca-ui

DecaUI is production-ready themeable component library built with StitchesJS.

Home Page:https://www.deca-ui.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Warning I am sorry to say that as of June 28 2023, DecaUI is no longer actively maintained.

DecaUI logo

DecaUI

Overview of Components

DecaUI provides a set of accessible and customizable React components that make it easy to quickly prototype and develop stunning websites.

Getting Started

npm install @deca-ui/react

Using a component

Here is a simple example of a basic app using DecaUI's Button component:

import { Button } from '@deca-ui/react';

function App() {
  return <Button variant="solid">Hello World</Button>;
}

Click here for the full documentation

What's so different about DecaUI

With DecaUI, developers can use the centralized theming system anywhere within their application with shorthand names for css properties.

Custom CSS with other UI libraries

<Box
  sx={{
    marginRight: '2rem',
    marginLeft: '2rem',
    marginTop: '2rem',
    marginBottom: '2rem',
  }}
>
  <Input placeholder="Email Address" />
  <Input placeholder="Password" />
  <Button
    sx={{
      width: '100%',
    }}
  >
    Create Account
  </Button>
</Box>

Custom CSS with DecaUI

<Box css={{ m: '$3' }}>
  <Input placeholder="Email Address" />
  <Input placeholder="Password" />
  <Button maxWidth>Create Account</Button>
</Box>

Our focus is consistency

The main problem with other UI libraries is that it's confusing to create consistent webpage layouts with them. DecaUI allows developers to utilize a root theme object which serves properties following the System UI specification.

Thank you React Status!

React Status
Thanks to React Status for showcasing this project on their newsletter (issue #323).

About

DecaUI is production-ready themeable component library built with StitchesJS.

https://www.deca-ui.com

License:MIT License


Languages

Language:TypeScript 98.7%Language:JavaScript 1.1%Language:HTML 0.1%