From cfb371671aaaada8571ca21f86ca60d90bb25c68 Mon Sep 17 00:00:00 2001 From: Adam Wathan Date: Sun, 20 Aug 2017 10:28:46 -0400 Subject: [PATCH] Use cool greys instead of neutral greys --- docs/source/backgrounds.md | 258 ++++++++++++++++++++------------- src/colors.less | 24 ++- src/utilities/backgrounds.less | 10 +- src/utilities/borders.less | 4 +- src/utilities/text.less | 8 +- 5 files changed, 181 insertions(+), 123 deletions(-) diff --git a/docs/source/backgrounds.md b/docs/source/backgrounds.md index 0315080cb..6b8b0f731 100644 --- a/docs/source/backgrounds.md +++ b/docs/source/backgrounds.md @@ -5,105 +5,165 @@ title: "Backgrounds" # Backgrounds - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
.bg-light
.bg-light-soft
.bg-light-softer
.bg-dark
.bg-dark-soft
.bg-dark-softer
.bg-red
.bg-red-light
.bg-orange
.bg-orange-light
.bg-yellow
.bg-yellow-light
.bg-green
.bg-green-light
.bg-teal
.bg-teal-light
.bg-blue
.bg-blue-light
.bg-indigo
.bg-indigo-light
.bg-purple
.bg-purple-light
.bg-pink
.bg-pink-light
- +
+
+
+ .bg-light +
+
+ .bg-light-soft +
+
+ .bg-light-softer +
+
+
+
+ .bg-dark +
+
+ .bg-dark-soft +
+
+ .bg-dark-softer +
+
+
+ +
+
+
+ .bg-red-dark +
+
+ .bg-red +
+
+ .bg-red-light +
+
+ .bg-red-lightest +
+
+
+
+ .bg-orange-dark +
+
+ .bg-orange +
+
+ .bg-orange-light +
+
+ .bg-orange-lightest +
+
+
+
+ .bg-yellow-dark +
+
+ .bg-yellow +
+
+ .bg-yellow-light +
+
+ .bg-yellow-lightest +
+
+
+ +
+
+
+ .bg-green-dark +
+
+ .bg-green +
+
+ .bg-green-light +
+
+ .bg-green-lightest +
+
+
+
+ .bg-teal-dark +
+
+ .bg-teal +
+
+ .bg-teal-light +
+
+ .bg-teal-lightest +
+
+
+
+ .bg-blue-dark +
+
+ .bg-blue +
+
+ .bg-blue-light +
+
+ .bg-blue-lightest +
+
+
+ +
+
+
+ .bg-indigo-dark +
+
+ .bg-indigo +
+
+ .bg-indigo-light +
+
+ .bg-indigo-lightest +
+
+
+
+ .bg-purple-dark +
+
+ .bg-purple +
+
+ .bg-purple-light +
+
+ .bg-purple-lightest +
+
+
+
+ .bg-pink-dark +
+
+ .bg-pink +
+
+ .bg-pink-light +
+
+ .bg-pink-lightest +
+
+
Using the utilities in HTML: diff --git a/src/colors.less b/src/colors.less index 57cd048d2..3deaa2a06 100644 --- a/src/colors.less +++ b/src/colors.less @@ -1,15 +1,13 @@ -@color-white: #ffffff; -@color-grey-50: #fafafa; -@color-grey-100: #f5f5f5; -@color-grey-200: #eeeeee; -@color-grey-300: #e0e0e0; -@color-grey-400: #bdbdbd; -@color-grey-500: #9e9e9e; -@color-grey-600: #757575; -@color-grey-700: #616161; -@color-grey-800: #424242; -@color-grey-900: #212121; @color-black: #000000; +@color-grey-900: #212b35; +@color-grey-800: #404e5c; +@color-grey-700: #647382; +@color-grey-600: #919eab; +@color-grey-500: #c5ced6; +@color-grey-400: #dfe3e8; +@color-grey-300: #f0f2f5; +@color-grey-200: #f7f9fa; +@color-white: #ffffff; @color-red-dark: #d43633; @color-red: #f25451; @@ -19,12 +17,12 @@ @color-orange-dark: #f29500; @color-orange: #ffb82b; @color-orange-light: #ffd685; -@color-orange-lightest: #fff8eb; +@color-orange-lightest: #fff8eb; @color-yellow-dark: #ffc400; @color-yellow: #ffe14a; @color-yellow-light: #ffea83; -@color-yellow-lightest: #fffbe5; +@color-yellow-lightest: #fffbe5; @color-green-dark: #34ae4c; @color-green: #57d06f; diff --git a/src/utilities/backgrounds.less b/src/utilities/backgrounds.less index 3b07d978d..4a79b5a0d 100644 --- a/src/utilities/backgrounds.less +++ b/src/utilities/backgrounds.less @@ -1,11 +1,11 @@ @bg-colors: 'light' @color-white, - 'light-soft' @color-grey-100, - 'light-softer' @color-grey-200, + 'light-soft' @color-grey-200, + 'light-softer' @color-grey-300, - 'dark' @color-grey-800, - 'dark-soft' @color-grey-700, - 'dark-softer' @color-grey-600, + 'dark' @color-grey-900, + 'dark-soft' @color-grey-800, + 'dark-softer' @color-grey-700, 'red-dark' @color-red-dark, 'red' @color-red, diff --git a/src/utilities/borders.less b/src/utilities/borders.less index d8e961d10..7d6058168 100644 --- a/src/utilities/borders.less +++ b/src/utilities/borders.less @@ -13,8 +13,8 @@ @border-dark-softer: @color-grey-300; @border-light: @color-white; -@border-light-soft: @color-grey-100; -@border-light-softer: @color-grey-200; +@border-light-soft: @color-grey-200; +@border-light-softer: @color-grey-300; @border-dark-overlay: hsla(0, 0%, 0%, 20%); @border-dark-overlay-soft: hsla(0, 0%, 0%, 10%); diff --git a/src/utilities/text.less b/src/utilities/text.less index 347c560b9..22a44434f 100644 --- a/src/utilities/text.less +++ b/src/utilities/text.less @@ -53,10 +53,10 @@ @text-light-softer: fade(@color-white, 45%); @text-light-softest: fade(@color-white, 35%); -@text-dark: @color-grey-800; -@text-dark-soft: @color-grey-600; -@text-dark-softer: @color-grey-500; -@text-dark-softest: @color-grey-400; +@text-dark: @color-grey-900; +@text-dark-soft: @color-grey-700; +@text-dark-softer: @color-grey-600; +@text-dark-softest: @color-grey-500; @text-colors: 'light' @text-light,