Skip to content

Instantly share code, notes, and snippets.

@tmcw
Created February 19, 2016 17:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tmcw/6e9b042f368e7134ea38 to your computer and use it in GitHub Desktop.
Save tmcw/6e9b042f368e7134ea38 to your computer and use it in GitHub Desktop.
{
line-width: {
1px: ['some layer'],
10px: ['some other layer', 'another layer']
}
}
[property][value] -> list of layers
property.map(values =>
values.reduce((sum, value) => value.size + sum, 0));
line-width: 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment