From fb7064556352c496c1f3e86c3574735cb09c2822 Mon Sep 17 00:00:00 2001 From: Arturo Silva Date: Tue, 10 Dec 2024 10:35:08 -0500 Subject: [PATCH] feat: themed logos [CFE-75] (#220) * feat: themed logos * Update README.md Co-authored-by: Maria Eguiluz * feat: add fallback hex code * Update README.md --------- Co-authored-by: Maria Eguiluz --- README.md | 8 +++++++- app/app.jsx | 4 ++-- src/washington-post.svg | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 5fbf3ad..f062ff9 100644 --- a/README.md +++ b/README.md @@ -9,4 +9,10 @@ 3. Click the "Upload" button 4. Visit Github to see your changes -. +## Theming + +Branded logos will use WPDS Theme Colors like so where a CSS property/variable is used with a fallback hex code. + +```html +fill="var(--wpds-colors-primary, #111)" +``` diff --git a/app/app.jsx b/app/app.jsx index ec3ca83..39a37d0 100644 --- a/app/app.jsx +++ b/app/app.jsx @@ -35,8 +35,8 @@ const App = () => { {Object.keys(AllAssets).map((Asset) => { const Component = AllAssets[Asset]; return ( -
-

{Asset}

+
+

{Asset}

diff --git a/src/washington-post.svg b/src/washington-post.svg index 86258be..a74e919 100644 --- a/src/washington-post.svg +++ b/src/washington-post.svg @@ -1 +1 @@ - \ No newline at end of file +