Skip to content

Instantly share code, notes, and snippets.

@sebastiano-guerriero
Last active August 22, 2018 10:50
Show Gist options
  • Select an option

  • Save sebastiano-guerriero/0beb856c60b16e4c93c248a042d90b42 to your computer and use it in GitHub Desktop.

Select an option

Save sebastiano-guerriero/0beb856c60b16e4c93c248a042d90b42 to your computer and use it in GitHub Desktop.
:root {
--space-unit: 16px;
--space-xxs: calc(0.25 * var(--space-unit)); // 4px
--space-xs: calc(0.5 * var(--space-unit)); // 8px
--space-sm: calc(0.75 * var(--space-unit)); // 12px
--space-md: calc(1.25 * var(--space-unit)); // 20px
--space-lg: calc(2 * var(--space-unit)); // 32px
--space-xl: calc(3.25 * var(--space-unit)); // 52px
--space-xxl: calc(5.25 * var(--space-unit)); // 84px
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment