@substance/style
v0.1.0-preview.29
Published
Utilities for styling.
Downloads
76
Maintainers
Readme
⚗️ @substance/style
Utilities for styling.
Installation
NPM:
npm install @substance/style
Yarn
yarn add @substance/style
Usage
import styled from 'styled-components';
import {match} from '@substance/style';
export const Sidebar = styled.div(
{
width: 100,
},
match('tablet')({
width: 200,
}),
match('desktop')({
width: 300,
}),
);