JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 16
  • Score
    100M100P100Q47769F
  • License MIT

HTML elements extended as styled components via styled system, ready for theming.

Package Exports

  • styled-system-html

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 (styled-system-html) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Styled System HTML

Build Status

HTML elements extended as styled components via styled system, ready for theming. Built with/for:

Usage

npm i styled-system-html

Create a theme with settings for colors, typography and layout.

const theme = {
  colors : {'primary':'#071'},
  space : [0,4,8,16,32,64,128]
}

Apply your theme to the base elements as you build components.

// Header with 2 levels (8px) of padding, 
// blue/primary background and white text.

<Header p={2} bg="primary" color="white">
  My Header
</Header>

For more info, see Styled System by Brent Jackson.

--

Created by John Polacek