From 0131e80eb58ea2e522e478042eda4d49abb5d35d Mon Sep 17 00:00:00 2001 From: Thibaud Colas Date: Thu, 23 May 2019 16:23:36 +0100 Subject: [PATCH] Keep styleguide color combinations up to date --- .../wagtailstyleguide/scss/styleguide.scss | 24 ++++++ .../templates/wagtailstyleguide/base.html | 80 +++++-------------- 2 files changed, 43 insertions(+), 61 deletions(-) diff --git a/wagtail/contrib/styleguide/static_src/wagtailstyleguide/scss/styleguide.scss b/wagtail/contrib/styleguide/static_src/wagtailstyleguide/scss/styleguide.scss index 109cfe5f1..6bcb8804f 100644 --- a/wagtail/contrib/styleguide/static_src/wagtailstyleguide/scss/styleguide.scss +++ b/wagtail/contrib/styleguide/static_src/wagtailstyleguide/scss/styleguide.scss @@ -67,6 +67,10 @@ section { color: $color-green; } + .color-green-dark-text { + color: $color-green-dark; + } + .color-teal-darker-text { color: $color-teal-darker; } @@ -83,6 +87,10 @@ section { color: $color-red; } + .color-red-dark-text { + color: $color-red-dark; + } + .color-teal-text { color: $color-teal; } @@ -91,6 +99,10 @@ section { color: $color-orange; } + .color-orange-dark-text { + color: $color-orange-dark; + } + .color-blue-text { color: $color-blue; } @@ -131,14 +143,26 @@ section { background-color: $color-red; } + .color-red-dark { + background-color: $color-red-dark; + } + .color-orange { background-color: $color-orange; } + .color-orange-dark { + background-color: $color-orange-dark; + } + .color-green { background-color: $color-green; } + .color-green-dark { + background-color: $color-green-dark; + } + .color-blue { background-color: $color-blue; } diff --git a/wagtail/contrib/styleguide/templates/wagtailstyleguide/base.html b/wagtail/contrib/styleguide/templates/wagtailstyleguide/base.html index e99276d9b..5fdab7e84 100644 --- a/wagtail/contrib/styleguide/templates/wagtailstyleguide/base.html +++ b/wagtail/contrib/styleguide/templates/wagtailstyleguide/base.html @@ -43,26 +43,28 @@

Colour palette

@@ -76,9 +78,7 @@

Small text combinations: for font sizes 16px or smaller

@@ -92,7 +92,6 @@
  • color-grey-2 on color-salmon-light
  • -