Skip to content

Instantly share code, notes, and snippets.

@gregberge
Last active March 8, 2019 07:45
Show Gist options
  • Save gregberge/9e061bb25698f91388d4a97d836fef52 to your computer and use it in GitHub Desktop.
Save gregberge/9e061bb25698f91388d4a97d836fef52 to your computer and use it in GitHub Desktop.
Smooth UI System - Component
import styled from "styled-components";
import system from "@smooth-ui/system";
const MyBox = styled.div(
system({
backgroundColor: 'primary',
width: { sm: 1, md: 0.5 },
height: 100,
mx: 'auto',
p: 2,
}),
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment