Skip to content

Instantly share code, notes, and snippets.

@jeserodz
Created July 27, 2019 12:27
Show Gist options
  • Save jeserodz/9122a27fd16cb9724f62b9167c795ef0 to your computer and use it in GitHub Desktop.
Save jeserodz/9122a27fd16cb9724f62b9167c795ef0 to your computer and use it in GitHub Desktop.
CSS-in-JS util for 12-column grids
export default {
columns: {
one: 'calc(100% / 12)',
two: 'calc(100% / 6)',
three: 'calc(100% / 4)',
four: 'calc(100% / 3)',
five: 'calc(100% / 2.4)',
six: 'calc(100% / 2)',
seven: 'calc(100% / 1.7142857143)',
eigth: 'calc(100% / 1.5)',
nine: 'calc(100% / 1.3333333333)',
ten: 'calc(100% / 1.2)',
eleven: 'calc(100% / 1.0909090909)',
twelve: 'calc(100% / 1)',
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment