|
@@ -19,8 +19,10 @@ const colors = {
|
|
|
black: {
|
|
|
DEFAULT: {
|
|
|
hex: '#000000',
|
|
|
+ hsl: 'hsl(0, 0%, 0%)',
|
|
|
bgUtility: 'w-bg-black',
|
|
|
textUtility: 'w-text-black',
|
|
|
+ cssVariable: '--w-color-black',
|
|
|
usage: 'Shadows only',
|
|
|
contrastText: 'white',
|
|
|
},
|
|
@@ -28,36 +30,46 @@ const colors = {
|
|
|
grey: {
|
|
|
600: {
|
|
|
hex: '#262626',
|
|
|
+ hsl: 'hsl(0, 0%, 15%)',
|
|
|
bgUtility: 'w-bg-grey-600',
|
|
|
textUtility: 'w-text-grey-600',
|
|
|
+ cssVariable: '--w-color-grey-600',
|
|
|
usage: 'Body copy, user content',
|
|
|
contrastText: 'white',
|
|
|
},
|
|
|
400: {
|
|
|
hex: '#5C5C5C',
|
|
|
+ hsl: 'hsl(0, 0%, 36%)',
|
|
|
bgUtility: 'w-bg-grey-400',
|
|
|
textUtility: 'w-text-grey-400',
|
|
|
+ cssVariable: '--w-color-grey-400',
|
|
|
usage: 'Help text, placeholders, meta text, neutral state indicators',
|
|
|
contrastText: 'white',
|
|
|
},
|
|
|
200: {
|
|
|
hex: '#929292',
|
|
|
+ hsl: 'hsl(0, 0%, 57%)',
|
|
|
bgUtility: 'w-bg-grey-200',
|
|
|
textUtility: 'w-text-grey-200',
|
|
|
+ cssVariable: '--w-color-grey-200',
|
|
|
usage: 'Dividers, button borders',
|
|
|
contrastText: 'primary',
|
|
|
},
|
|
|
100: {
|
|
|
hex: '#E0E0E0',
|
|
|
+ hsl: 'hsl(0, 0%, 88%)',
|
|
|
bgUtility: 'w-bg-grey-100',
|
|
|
textUtility: 'w-text-grey-100',
|
|
|
+ cssVariable: '--w-color-grey-100',
|
|
|
usage: 'Dividers, field borders, panel borders',
|
|
|
contrastText: 'primary',
|
|
|
},
|
|
|
50: {
|
|
|
hex: '#F6F6F8',
|
|
|
+ hsl: 'hsl(240, 12%, 97%)',
|
|
|
bgUtility: 'w-bg-grey-50',
|
|
|
textUtility: 'w-text-grey-50',
|
|
|
+ cssVariable: '--w-color-grey-50',
|
|
|
usage: 'Background for panels, row highlights',
|
|
|
contrastText: 'primary',
|
|
|
},
|
|
@@ -65,61 +77,77 @@ const colors = {
|
|
|
white: {
|
|
|
DEFAULT: {
|
|
|
hex: '#FFFFFF',
|
|
|
+ hsl: 'hsl(0, 0%, 100%)',
|
|
|
bgUtility: 'w-bg-white',
|
|
|
textUtility: 'w-text-white',
|
|
|
+ cssVariable: '--w-color-white',
|
|
|
usage: 'Page backgrounds, Panels, Button text',
|
|
|
contrastText: 'primary',
|
|
|
},
|
|
|
},
|
|
|
- teal: {
|
|
|
+ secondary: {
|
|
|
600: {
|
|
|
hex: '#004345',
|
|
|
- bgUtility: 'w-bg-teal-600',
|
|
|
- textUtility: 'w-text-teal-600',
|
|
|
+ hsl: 'hsl(182, 100%, 14%)',
|
|
|
+ bgUtility: 'w-bg-secondary-600',
|
|
|
+ textUtility: 'w-text-secondary-600',
|
|
|
+ cssVariable: '--w-color-secondary-600',
|
|
|
usage: 'Hover states for two-tone buttons',
|
|
|
contrastText: 'white',
|
|
|
},
|
|
|
400: {
|
|
|
hex: '#005B5E',
|
|
|
- bgUtility: 'w-bg-teal-400',
|
|
|
- textUtility: 'w-text-teal-400',
|
|
|
+ hsl: 'hsl(182, 100%, 18%)',
|
|
|
+ bgUtility: 'w-bg-secondary-400',
|
|
|
+ textUtility: 'w-text-secondary-400',
|
|
|
+ cssVariable: '--w-color-secondary-400',
|
|
|
usage: 'Two-tone buttons, hover states',
|
|
|
contrastText: 'white',
|
|
|
},
|
|
|
- 200: {
|
|
|
+ DEFAULT: {
|
|
|
hex: '#007D7E',
|
|
|
- bgUtility: 'w-bg-teal-200',
|
|
|
- textUtility: 'w-text-teal-200',
|
|
|
+ hsl: 'hsl(180, 100%, 25%)',
|
|
|
+ bgUtility: 'w-bg-secondary',
|
|
|
+ textUtility: 'w-text-secondary',
|
|
|
+ cssVariable: '--w-color-secondary',
|
|
|
usage: 'Primary buttons, action links',
|
|
|
contrastText: 'white',
|
|
|
},
|
|
|
100: {
|
|
|
hex: '#00B0B1',
|
|
|
- bgUtility: 'w-bg-teal-100',
|
|
|
- textUtility: 'w-text-teal-100',
|
|
|
+ hsl: 'hsl(180, 100%, 35%)',
|
|
|
+ bgUtility: 'w-bg-secondary-100',
|
|
|
+ textUtility: 'w-text-secondary-100',
|
|
|
+ cssVariable: '--w-color-secondary-100',
|
|
|
usage: 'UI element highlights',
|
|
|
contrastText: 'white',
|
|
|
},
|
|
|
50: {
|
|
|
hex: '#F2FCFC',
|
|
|
- bgUtility: 'w-bg-teal-50',
|
|
|
- textUtility: 'w-text-teal-50',
|
|
|
+ hsl: 'hsl(180, 63%, 97%)',
|
|
|
+ bgUtility: 'w-bg-secondary-50',
|
|
|
+ textUtility: 'w-text-secondary-50',
|
|
|
+ cssVariable: '--w-color-secondary-50',
|
|
|
usage: 'Button backgrounds, highlighted fields background',
|
|
|
- contrastText: 'teal-200',
|
|
|
+ contrastText: 'secondary',
|
|
|
},
|
|
|
},
|
|
|
primary: {
|
|
|
DEFAULT: {
|
|
|
hex: '#2E1F5E',
|
|
|
+ hsl: 'hsl(254, 50%, 25%)',
|
|
|
bgUtility: 'w-bg-primary',
|
|
|
textUtility: 'w-text-primary',
|
|
|
+ cssVariable: '--w-color-primary',
|
|
|
usage: 'Wagtail branding, Panels, Headings, Buttons, Labels',
|
|
|
contrastText: 'white',
|
|
|
},
|
|
|
200: {
|
|
|
hex: '#261A4E',
|
|
|
+ hsl: 'hsl(254, 50%, 20%)',
|
|
|
bgUtility: 'w-bg-primary-200',
|
|
|
textUtility: 'w-text-primary-200',
|
|
|
+ cssVariable: '--w-color-primary-200',
|
|
|
usage:
|
|
|
'Accent for elements used in conjunction with primary colour in sidebar',
|
|
|
contrastText: 'white',
|
|
@@ -128,15 +156,19 @@ const colors = {
|
|
|
info: {
|
|
|
100: {
|
|
|
hex: '#1F7E9A',
|
|
|
+ hsl: 'hsl(194, 66%, 36%)',
|
|
|
bgUtility: 'w-bg-info-100',
|
|
|
textUtility: 'w-text-info-100',
|
|
|
+ cssVariable: '--w-color-info-100',
|
|
|
usage: 'Background and icons for information messages',
|
|
|
contrastText: 'white',
|
|
|
},
|
|
|
50: {
|
|
|
hex: '#E2F5FC',
|
|
|
+ hsl: 'hsl(196, 81%, 94%)',
|
|
|
bgUtility: 'w-bg-info-50',
|
|
|
textUtility: 'w-text-info-50',
|
|
|
+ cssVariable: '--w-color-info-50',
|
|
|
usage: 'Background only, for information messages',
|
|
|
contrastText: 'primary',
|
|
|
},
|
|
@@ -144,15 +176,19 @@ const colors = {
|
|
|
positive: {
|
|
|
100: {
|
|
|
hex: '#1B8666',
|
|
|
+ hsl: 'hsl(162, 66%, 32%)',
|
|
|
bgUtility: 'w-bg-positive-100',
|
|
|
textUtility: 'w-text-positive-100',
|
|
|
+ cssVariable: '--w-color-positive-100',
|
|
|
usage: 'Positive states',
|
|
|
contrastText: 'white',
|
|
|
},
|
|
|
50: {
|
|
|
hex: '#E0FBF4',
|
|
|
+ hsl: 'hsl(164, 77%, 93%)',
|
|
|
bgUtility: 'w-bg-positive-50',
|
|
|
textUtility: 'w-text-positive-50',
|
|
|
+ cssVariable: '--w-color-positive-50',
|
|
|
usage: 'Background only, for positive states',
|
|
|
contrastText: 'primary',
|
|
|
},
|
|
@@ -160,15 +196,19 @@ const colors = {
|
|
|
warning: {
|
|
|
100: {
|
|
|
hex: '#FAA500',
|
|
|
+ hsl: 'hsl(40, 100%, 49%)',
|
|
|
bgUtility: 'w-bg-warning-100',
|
|
|
textUtility: 'w-text-warning-100',
|
|
|
+ cssVariable: '--w-color-warning-100',
|
|
|
usage: 'Background and icons for potentially dangerous states',
|
|
|
contrastText: 'primary',
|
|
|
},
|
|
|
50: {
|
|
|
hex: '#FAECD5',
|
|
|
+ hsl: 'hsl(37, 79%, 91%)',
|
|
|
bgUtility: 'w-bg-warning-50',
|
|
|
textUtility: 'w-text-warning-50',
|
|
|
+ cssVariable: '--w-color-warning-50',
|
|
|
usage: 'Background only, for potentially dangerous states',
|
|
|
contrastText: 'primary',
|
|
|
},
|
|
@@ -176,22 +216,28 @@ const colors = {
|
|
|
critical: {
|
|
|
200: {
|
|
|
hex: '#CD4444',
|
|
|
+ hsl: 'hsl(0, 58%, 54%)',
|
|
|
bgUtility: 'w-bg-critical-200',
|
|
|
textUtility: 'w-text-critical-200',
|
|
|
+ cssVariable: '--w-color-critical-200',
|
|
|
usage: 'Dangerous actions or states (over light background), errors',
|
|
|
contrastText: 'white',
|
|
|
},
|
|
|
100: {
|
|
|
hex: '#FD5765',
|
|
|
+ hsl: 'hsl(355, 98%, 67%)',
|
|
|
bgUtility: 'w-bg-critical-100',
|
|
|
textUtility: 'w-text-critical-100',
|
|
|
+ cssVariable: '--w-color-critical-100',
|
|
|
usage: 'Dangerous actions or states (over dark background)',
|
|
|
contrastText: 'primary',
|
|
|
},
|
|
|
50: {
|
|
|
hex: '#FDE9E9',
|
|
|
+ hsl: 'hsl(0, 83%, 95%)',
|
|
|
bgUtility: 'w-bg-critical-50',
|
|
|
textUtility: 'w-text-critical-50',
|
|
|
+ cssVariable: '--w-color-critical-50',
|
|
|
usage: 'Background only, for dangerous states',
|
|
|
contrastText: 'primary',
|
|
|
},
|