RFC: added brandcolor for switch (#8213)

This commit is contained in:
Peer Richelsen authored and GitHub committed 2023-04-19 14:39:23 +00:00
1 parent bdbf9bd04d
commit de61b032b7
4 files changed
+26 -7

No files matched your search

+2
View File
@@ -183,12 +183,14 @@ const useGetBrandingColours = ({
"cal-brand-emphasis": lightColourMap["400"],
"cal-brand-subtle": lightColourMap["200"],
"cal-brand-text": getWCAGContrastColor(lightColourMap["500"]),
"cal-brand-accent": getWCAGContrastColor(lightColourMap["500"]),
},
dark: {
"cal-brand": darkColourMap["500"],
"cal-brand-emphasis": darkColourMap["600"],
"cal-brand-subtle": darkColourMap["800"],
"cal-brand-text": getWCAGContrastColor(darkColourMap["500"]),
"cal-brand-accent": getWCAGContrastColor(darkColourMap["500"]),
},
};
return theme;