Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import { get as scale } from '../../utils';
import { Colors } from './colors';
import chroma from 'chroma-js';
const darken = alpha =>
export const gray = scale({
0: darken(0),
1: darken(0.25),
2: darken(0.5),
3: darken(0.75),
4: darken(1),
// Receives a hash map and returns a function that resolves a value given an id
export const get = map => id => map[id];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.