A convenience package that wraps styled-components with styled-shortcuts.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.babelrc
.eslintrc
.gitignore
.npmignore
.travis.yml
LICENSE
README.md
package.json

README.md

Styled Shortcut Components 💅

Build Status npm version Coverage Status

TL;DR

  • A convenience package that wraps Styled Components 💅 with Styled Shortcuts so you can do this:
    font-size: ${'fontSize:px'};
    instead of this:
    font-size: ${({ fontSize }) => `${fontSize}px`};

Install

$ npm i --save styled-shortcut-components

Usage

All you need to do to get the power of Styled Shortcuts is change your import from this:

import styled from 'styled-components';

to this:

import styled from 'styled-shortcut-components';

See Styled Components and Styled Shortcuts for complete details.