From 8f85fd01d50aad82a998ce95a889ff6910be22df Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Tue, 22 Mar 2022 16:25:52 -0500 Subject: [PATCH] Make bg-shape colors configurable --- app/images/bg-shape.svg | 1 - .../ui/components/background_shapes.js | 22 +++++++++++++++++-- app/soapbox/utils/theme.ts | 13 +++++++++++ 3 files changed, 33 insertions(+), 3 deletions(-) delete mode 100644 app/images/bg-shape.svg diff --git a/app/images/bg-shape.svg b/app/images/bg-shape.svg deleted file mode 100644 index aa0132f3d..000000000 --- a/app/images/bg-shape.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/app/soapbox/features/ui/components/background_shapes.js b/app/soapbox/features/ui/components/background_shapes.js index 0d73976e9..c8953218c 100644 --- a/app/soapbox/features/ui/components/background_shapes.js +++ b/app/soapbox/features/ui/components/background_shapes.js @@ -1,10 +1,28 @@ import React from 'react'; -import InlineSVG from 'react-inlinesvg'; export default () => (
- + + + + + + + + + + + + + + + + + + + +
); diff --git a/app/soapbox/utils/theme.ts b/app/soapbox/utils/theme.ts index 3527199c2..b12be1abb 100644 --- a/app/soapbox/utils/theme.ts +++ b/app/soapbox/utils/theme.ts @@ -97,6 +97,19 @@ const legacyColorsToTailwind = (brandColor: string, accentColor: string): Tailwi return { primary: tintify(brandColor), accent: tintify(accentColor ? accentColor : generateAccent(brandColor)), + gray: { + 50: '#f9fafb', + 100: '#f3f4f6', + 200: '#e5e7eb', + 300: '#d1d5db', + 400: '#9ca3af', + 500: '#6b7280', + 600: '#4b5563', + 700: '#374151', + 800: '#1f2937', + 900: '#111827', + }, + 'sea-blue': '#2feecc', }; };