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.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

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 1 year ago

Package Health Score

57 / 100
Full package analysis