Last active
October 24, 2024 16:14
Revisions
-
AlvisonHunterArnuero revised this gist
Oct 24, 2024 . 1 changed file with 4 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,8 +1,8 @@ const themeTextColorPalette = { primary: "#3B5998", secondary: "#8B9DC3", dark: "#333333", light: "#F7F7F7", muted: "#CCC222", } as const; @@ -15,4 +15,4 @@ const getHexColorCode = (colorName: ThemeTextColorName): string => { const newColor: ThemeTextColorName = "dark"; const hexColor = getHexColorCode(newColor); console.log(`Hex Color for ${newColor} is ${hexColor}`); -
AlvisonHunterArnuero revised this gist
Oct 24, 2024 . 1 changed file with 6 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,16 +3,16 @@ const themeTextColorPalette = { secondary: "#8b9dc3", dark: "#333333", light: "#f7f7f7", muted: "#CCC222", } as const; type ThemeTextColorName = keyof typeof themeTextColorPalette; const getHexColorCode = (colorName: ThemeTextColorName): string => { return themeTextColorPalette[colorName]; } const newColor: ThemeTextColorName = "dark"; const hexColor = getHexColorCode(newColor); console.log(`Hex Color for ${newColor} is ${hexColor}`); -
AlvisonHunterArnuero revised this gist
Oct 21, 2024 . No changes.There are no files selected for viewing
-
AlvisonHunterArnuero created this gist
Oct 21, 2024 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,18 @@ const themeTextColorPalette = { primary: "#3b5998", secondary: "#8b9dc3", dark: "#333333", light: "#f7f7f7", muted: "#CCC222" }; type ThemeTextColorName = keyof typeof themeTextColorPalette; const getHexColorCode = (color:ThemeTextColorName) => { return themeTextColorPalette[color] } const newColor: ThemeTextColorName = "dark" const hexColor = getHexColorCode(newColor); console.log(`Hex Color for ${newColor} is ${hexColor}`);