From 42a664a96e3241702ae58a9e5c9b3af3114c7b7d Mon Sep 17 00:00:00 2001 From: Shawn Allen Date: Mon, 17 Jun 2019 16:02:32 -0700 Subject: [PATCH] fix up spacing of color variable listings --- docs/color-system.js | 2 +- docs/color-variables.js | 1 + pages/css/support/color-system.md | 31 ++++++++++++++++--------------- 3 files changed, 18 insertions(+), 16 deletions(-) diff --git a/docs/color-system.js b/docs/color-system.js index b7138123..1b5061bb 100644 --- a/docs/color-system.js +++ b/docs/color-system.js @@ -55,7 +55,7 @@ export function FadeVariables({hue, color, bg, over, children, ...rest}) { boxProps.borderColor = 'transparent' } return ( - + {/* {titleCase(hue)} */} diff --git a/docs/color-variables.js b/docs/color-variables.js index 770d5b45..fface74d 100644 --- a/docs/color-variables.js +++ b/docs/color-variables.js @@ -27,6 +27,7 @@ export const gradientPalettes = gradientHues.map(name => { return { name, title: titleCase(name), + value: colors[name][5], bg: variables[bgClass] ? {className: bgClass, value: variables[bgClass]} : null, fg: variables[textClass] ? {className: textClass, value: variables[textClass]} : null, values: colors[name].map((value, index) => ({ diff --git a/pages/css/support/color-system.md b/pages/css/support/color-system.md index 74e4455b..6987ea24 100644 --- a/pages/css/support/color-system.md +++ b/pages/css/support/color-system.md @@ -13,32 +13,33 @@ const {black, white} = variables # Table of contents + ## Color palette - - {gradientPalettes.map(({name, title, bg, fg, ...palette}) => ( - +
+ {gradientPalettes.map(({name, title, value, ...palette}) => ( + {title} ))} - +
Black - - +
+
White - - +
+
## Color variables - +
{gradientHues.map(hue => ( - + ))} - +
- - +
+ Black fades apply alpha transparency to the $black variable. The black color value has a slight @@ -46,7 +47,7 @@ const {black, white} = variables - + White fades apply alpha transparency to the $white variable. @@ -54,7 +55,7 @@ const {black, white} = variables - +
## Color utilities