css-tools
Simple data comparsion and composition library

Install
npm i css-tools
yarn add css-tools
Usage
Example
const style = css`
height: 400px;
// Mobile portrait breakpoint
${breakpoint(0, 400)`
height: 200px;
`}
// Tablet breakpoint
${breakpoint('400px', '1024px')`
height: 300px;
`}
`;
Result
[
{
id: '1',
title: 'Document 1',
status: 'upd',
updated: '1970-01-01T00:00:03.000Z',
},
{
id: '2',
title: 'Document 2',
status: 'old',
updated: '1970-01-01T00:00:02.000Z',
},
{
id: '3',
title: 'Document 3',
status: 'new',
updated: '1970-01-01T00:00:04.000Z',
},
];