Socket
Book a DemoInstallSign in
Socket

styled-system-html

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

styled-system-html

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

latest
Source
npmnpm
Version
3.0.0
Version published
Maintainers
1
Created
Source

Styled System HTML

Build Status

HTML elements extended as components, ready for theming via styled system. Built with/for Styled Components & Styled System

Usage

$ npm i styled-system-html

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

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

Apply your theme to the element components.

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

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

Try it out at johnpolacek.github.io/styled-system-html

For more info, see Styled System by Brent Jackson.

--

Created by John Polacek

Keywords

react

FAQs

Package last updated on 05 Jun 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts