From 0c0a5f9a4deecba5e4be3a35f9886ca1d6ccf381 Mon Sep 17 00:00:00 2001 From: Josh Adam Date: Fri, 29 Nov 2024 14:34:48 -0600 Subject: [PATCH] style: :lipstick: Working on secondary colours --- .../colour_preview/background.html.erb | 332 ++++++++++-------- embedded_gems/pathogen/tailwind.config.js | 33 +- 2 files changed, 211 insertions(+), 154 deletions(-) diff --git a/embedded_gems/pathogen/previews/colour_preview/background.html.erb b/embedded_gems/pathogen/previews/colour_preview/background.html.erb index 3fa7a2acfc..f35661305b 100644 --- a/embedded_gems/pathogen/previews/colour_preview/background.html.erb +++ b/embedded_gems/pathogen/previews/colour_preview/background.html.erb @@ -1,156 +1,198 @@ -

Background Colours

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + +
ColourClass
-
-
- bg-light-brand-primary dark:bg-dark-brand-primary -
-
-
- bg-light-brand-primary-hover dark:bg-dark-brand-primary-hover -
-
-
- bg-light-brand-secondary dark:bg-dark-brand-secondary -
-
-
- bg-light-neutral-primary dark:bg-dark-neutral-primary -
-
-
- bg-light-neutral-primary-hover dark:bg-dark-neutral-primary-hover -
-
Background Colours + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ColourClass
+
+
+ bg-light-brand-primary dark:bg-dark-brand-primary +
+
+
+ bg-light-brand-primary-hover dark:bg-dark-brand-primary-hover +
+
+
+ bg-light-brand-secondary dark:bg-dark-brand-secondary +
+
+
+ bg-light-neutral-primary dark:bg-dark-neutral-primary +
+
+
+ bg-light-neutral-primary-hover dark:bg-dark-neutral-primary-hover +
+
+
+ bg-light-neutral-secondary dark:bg-dark-neutral-secondary +
+
+
+ bg-light-danger-primary dark:bg-dark-danger-primary +
+
+
+ bg-light-danger-primary-hover dark:bg-dark-danger-primary-hover +
+
+
+ bg-light-danger-secondary dark:bg-dark-danger-secondary +
+ +

Text Colours

+ + + + + + + + + + - - - - + + + - - - - + + + - - - - + + + - - - -
Colour
- - bg-light-neutral-secondary dark:bg-dark-neutral-secondary -
-
+ text-light-default dark:text-dark-default +
- - bg-light-danger-primary dark:bg-dark-danger-primary -
-
+ text-light-onbrand-primary dark:text-dark-onbrand-primary +
- - bg-light-danger-primary-hover dark:bg-dark-danger-primary-hover -
-
+ text-light-onneutral-primary dark:text-dark-onneutral-primary +
- - bg-light-danger-secondary dark:bg-dark-danger-secondary -
- -

Text Colours

- - - - - - - - - - - - - -
ColourClass
- text-light-neutral-onprimary dark:text-dark-neutral-onprimary -
+ > + text-light-ondanger-primary dark:text-dark-ondanger-primary +
+
+ bg-light-brand-secondary dark:bg-dark-brand-secondary +
+
+ diff --git a/embedded_gems/pathogen/tailwind.config.js b/embedded_gems/pathogen/tailwind.config.js index 334816a48f..ef4bf92383 100644 --- a/embedded_gems/pathogen/tailwind.config.js +++ b/embedded_gems/pathogen/tailwind.config.js @@ -32,20 +32,22 @@ module.exports = { colors: globalColors, backgroundColor: { // Light mode + "light-default": globalColors.neutral[50], "light-brand-primary": globalColors.brand[600], "light-brand-primary-hover": globalColors.brand[700], - "light-brand-secondary": globalColors.brand[400], - "light-neutral-primary": globalColors.neutral[100], - "light-neutral-primary-hover": globalColors.neutral[200], - "light-neutral-secondary": globalColors.neutral[50], + "light-brand-secondary": globalColors.brand[500], + "light-neutral-primary": globalColors.neutral[200], + "light-neutral-primary-hover": globalColors.neutral[300], + "light-neutral-secondary": globalColors.neutral[100], "light-danger-primary": globalColors.danger[600], "light-danger-primary-hover": globalColors.danger[700], "light-danger-secondary": globalColors.danger[400], // Dark mode + "dark-default": globalColors.neutral[900], "dark-brand-primary": globalColors.brand[700], "dark-brand-primary-hover": globalColors.brand[800], - "dark-brand-secondary": globalColors.brand[400], + "dark-brand-secondary": globalColors.brand[600], "dark-neutral-primary": globalColors.neutral[600], "dark-neutral-primary-hover": globalColors.neutral[700], "dark-neutral-secondary": globalColors.neutral[500], @@ -66,17 +68,30 @@ module.exports = { }, textColor: { // Light mode - "light-brand-onprimary": colors.white, + "light-default": globalColors.neutral[900], + "light-onbrand-primary": colors.neutral[100], + "light-onbrand-secondary": globalColors.brand[800], + "light-onneutral-primary": globalColors.neutral[700], + "light-ondanger-primary": colors.neutral[100], + + // ------------------------------------------------------ + "light-brand-onprimary": colors.neutral[50], "light-brand-onneutral": globalColors.brand[600], - "light-danger-onprimary": colors.white, + "light-danger-onprimary": colors.neutral[50], "light-danger-onprimary-hover": globalColors.neutral[50], "light-neutral-onprimary": globalColors.neutral[800], "light-neutral-onneutral": globalColors.neutral[900], // Dark mode - "dark-brand-onprimary": colors.white, + "dark-default": globalColors.neutral[400], + "dark-onbrand-primary": colors.neutral[100], + "dark-onbrand-secondary": globalColors.neutral[800], + "dark-onneutral-primary": globalColors.neutral[200], + "dark-ondanger-primary": colors.neutral[100], + // ------------------------------------------------------ + "dark-brand-onprimary": colors.neutral[100], "dark-brand-onneutral": globalColors.brand[500], - "dark-danger-onprimary": colors.white, + "dark-danger-onprimary": colors.neutral[100], "dark-danger-onprimary-hover": globalColors.neutral[900], "dark-neutral-onprimary": globalColors.neutral[200], "dark-neutral-onneutral": globalColors.neutral[900],