From b8425d36c8e9b8b1539015b21408842cec733d84 Mon Sep 17 00:00:00 2001 From: Zohan Subhash Date: Tue, 17 Jan 2023 15:51:33 +0530 Subject: [PATCH] Update repo-card.js --- src/cards/repo-card.js | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/cards/repo-card.js b/src/cards/repo-card.js index 8d63f889..64a53a40 100644 --- a/src/cards/repo-card.js +++ b/src/cards/repo-card.js @@ -105,6 +105,15 @@ const renderRepoCard = (repo, options = {}) => { translations: repoCardLocales, }); + const colors = getCardColors({ + title_color, + icon_color, + text_color, + bg_color, + border_color, + theme, + }); + const { name, nameWithOwner, @@ -139,14 +148,6 @@ const renderRepoCard = (repo, options = {}) => { (descriptionLines > 1 ? 120 : 110) + descriptionLines * lineHeight; // returns theme based colors with proper overrides and defaults - const colors = getCardColors({ - title_color, - icon_color, - text_color, - bg_color, - border_color, - theme, - }); const svgLanguage = primaryLanguage ? createLanguageNode(langName, langColor)