From 4d5f1d236d19f3660005312a83314a2b2949d894 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sat, 7 May 2022 15:23:43 -0500 Subject: [PATCH] gradient-purple, gradient-blue --> gradient-start, gradient-end --- app/soapbox/components/list.tsx | 4 ++-- app/soapbox/features/ui/components/background_shapes.tsx | 4 ++-- app/soapbox/normalizers/soapbox/soapbox_config.ts | 4 ++-- tailwind.config.js | 4 ++-- tailwind/__tests__/colors-test.js | 6 +++--- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/app/soapbox/components/list.tsx b/app/soapbox/components/list.tsx index 862bf1456..e7d858334 100644 --- a/app/soapbox/components/list.tsx +++ b/app/soapbox/components/list.tsx @@ -37,8 +37,8 @@ const ListItem: React.FC = ({ label, hint, children, onClick }) => { return ( diff --git a/app/soapbox/features/ui/components/background_shapes.tsx b/app/soapbox/features/ui/components/background_shapes.tsx index 85b0d4cb0..2f9427eba 100644 --- a/app/soapbox/features/ui/components/background_shapes.tsx +++ b/app/soapbox/features/ui/components/background_shapes.tsx @@ -25,8 +25,8 @@ const BackgroundShapes: React.FC = ({ position = 'fixed' }) = - - + + diff --git a/app/soapbox/normalizers/soapbox/soapbox_config.ts b/app/soapbox/normalizers/soapbox/soapbox_config.ts index 76d1bfdd9..cab8dc44c 100644 --- a/app/soapbox/normalizers/soapbox/soapbox_config.ts +++ b/app/soapbox/normalizers/soapbox/soapbox_config.ts @@ -156,8 +156,8 @@ const maybeAddMissingColors = (soapboxConfig: SoapboxConfigMap): SoapboxConfigMa const colors = soapboxConfig.get('colors'); const missing = ImmutableMap({ - 'gradient-purple': colors.getIn(['primary', '500']), - 'gradient-blue': colors.getIn(['accent', '500']), + 'gradient-start': colors.getIn(['primary', '500']), + 'gradient-end': colors.getIn(['accent', '500']), }); return soapboxConfig.set('colors', missing.mergeDeep(colors)); diff --git a/tailwind.config.js b/tailwind.config.js index 0b9c1526a..0aa665e2e 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -41,8 +41,8 @@ module.exports = { success: [50, 100, 200, 300, 400, 500, 600, 700, 800, 900], danger: [50, 100, 200, 300, 400, 500, 600, 700, 800, 900], accent: [300, 500], - 'gradient-purple': true, - 'gradient-blue': true, + 'gradient-start': true, + 'gradient-end': true, 'sea-blue': true, }), animation: { diff --git a/tailwind/__tests__/colors-test.js b/tailwind/__tests__/colors-test.js index cf11f1461..89836edb7 100644 --- a/tailwind/__tests__/colors-test.js +++ b/tailwind/__tests__/colors-test.js @@ -40,14 +40,14 @@ describe('parseColorMatrix()', () => { success: [50, 100, 200, 300, 400, 500, 600, 700, 800, 900], danger: [50, 100, 200, 300, 400, 500, 600, 700, 800, 900], accent: [300, 500], - 'gradient-purple': true, - 'gradient-blue': true, + 'gradient-start': true, + 'gradient-end': true, 'sea-blue': true, }; const result = parseColorMatrix(colorMatrix); expect(result['sea-blue']({})).toEqual('rgb(var(--color-sea-blue))'); - expect(result['gradient-purple']({ opacityValue: .7 })).toEqual('rgb(var(--color-gradient-purple) / 0.7)'); + expect(result['gradient-start']({ opacityValue: .7 })).toEqual('rgb(var(--color-gradient-start) / 0.7)'); }); });