How to use the astroturf.div function in astroturf

To help you get started, we’ve selected a few astroturf examples, based on popular ways it is used in public projects.

github 4Catalyzer / astroturf / test / fixtures / element-shorthand.js View on Github external
import styled from 'astroturf';

const SIZE = 75;

const FancyBox = styled.div`
  color: red;
  width: ${SIZE}px;

  @media (min-width: 420px) {
    width: 96px;
    height: 96px;
  }

  &.primary {
    background: white;
    color: palevioletred;
  }
`;

astroturf

Extract and process inline CSS literals in JavaScript files

MIT
Latest version published 8 months ago

Package Health Score

64 / 100
Full package analysis