@bestyled/system
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

Bestyled System

Bestyled system provides commonly-used groupings from styled-system

  • border
  • common
  • flex and flex_item
  • grid
  • position
  • svg
  • touchable
  • typography

It includes both the individual attribute and sx shorthands.

System UI

Usage

import { BorderProps, borderProps, CommonProps, commonProps, compose } from '@bestyled/system'

// compose multiple together for performance
const systemStyles = compose(borderProps, commonProps)

export const SHConversationBackground =
  styled <
  React.FC <
  BorderProps & CommonProps >>
    Position`
  background-color: ${props => props.theme.colors.SHOffWhite};
  background-image: url(img/background600.png);
  background-position: bottom left;
  background-repeat: repeat;
  flex-direction: column;
  ${systemStyles}
`

Package Sidebar

Install

npm i @bestyled/system

Weekly Downloads

7

Version

1.0.3

License

Apache-2.0

Unpacked Size

129 kB

Total Files

61

Last publish

Collaborators

  • tinialabs1
  • guycreate