JSPM

@weimi/ui

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q14863F
  • License MIT

React styled-components built with theming

Package Exports

  • @weimi/ui

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@weimi/ui) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Weimi-ui

Weimi-ui is set of react component that highly customize-able

  • Theme support, generated from design token
  • Compostable with props inherit
  • Convenient props accessiable
  • Accessiability feature enable

Getting started

npm i @weimi/ui
import { withTheme, GoTheme } from '@weimi/ui/theme'
import { Box } from '@weimi/ui'

const UI = withTheme(GoTheme)

function App() {
  return <UI>
    <Box bg='black' color='white'>Hello world</Box>
  </UI>
}

Primitive

  • Base
    • support css props
    • integrate clean tag
    • Box -- props: space, width, fontSize, color
      • Flex -- props: flex
      • Relative -- display: relative
      • Fixed -- display: fixed
      • Static -- display: static
      • Sticky -- display: sticky
  • AllStyle
  • Compose
    • support from

Theme

  • Provider
  • createTheme
  • Choices
  • Variant
  • Plugin ecosystem

Components

  • Global
  • Link
  • Heading
  • Button
  • Text
  • Card
  • Hide
  • Overlay
  • Backdrop
  • Image
  • Divider

Interactive

  • Segment
  • Dialog
  • MenuButton

Demo site

  • Editable code sample
  • Docs for components
  • Typograhpy
  • Props table
  • Theme selector
  • Theme generator
  • Styling docs site