dherault / honorable

πŸ™ A UI library for implementing any design system in React

Home Page:https://honorable.design

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Honorable

πŸ™ Implement any design system in React

Motivation

Built with speed and developer experience in mind,
Honorable offers a non-opinionated API yet extensible with your own conventions, for creating React apps with ease. It comes with x+ components that are entirely and easily themable.

// Import any HTML tag, capitalized
import { Div } from 'honorable'

function Component() {
  // Apply styles directly to the component
  // Nothing to remember, appart from good old CSS
  return (
    <Div
      width="2rem"
      height="2rem"
      backgroundColor="success"
    />
  )
}

The point is to create a front-end library that fits to your coding style by extending it your way:

// You can declare your own conventions to create your own style:
return (
  <Div
    size="2rem"
    bg="success"
  />
)

Installation

npm i --save honorable honorable-theme-default @emotion/react @emotion/styled

Usage

import { CssBaseline, ThemeProvider, mergeTheme } from 'honorable'
import defaultTheme from 'honorable-theme-default'

const theme = mergeTheme(defaultTheme, {
  // your theme goes here
})

function App() {
  return (
    <ThemeProvider theme={theme}>
      <CssBaseline />
      {/* Your application lives here */}
    </ThemeProvider>
  )
}

Contributing

Yes, thank you. You can contribute to this project by making a pull request or opening an issue.

License

MIT

About

πŸ™ A UI library for implementing any design system in React

https://honorable.design

License:MIT License


Languages

Language:TypeScript 80.2%Language:JavaScript 19.1%Language:HTML 0.7%Language:Shell 0.0%