Add header color util

This commit is contained in:
jeffvli
2022-12-11 01:19:46 -08:00
parent a37d41813f
commit f6b8460eca
2 changed files with 4 additions and 0 deletions
@@ -0,0 +1,3 @@
export const getHeaderColor = (rgbColor: string, opacity?: number) => {
return rgbColor.replace('rgb', 'rgba').replace(')', `, ${opacity || 0.8})`);
};
+1
View File
@@ -3,3 +3,4 @@ export * from './normalize-server-url';
export * from './set-local-storage-setttings';
export * from './constrain-sidebar-width';
export * from './title-case';
export * from './get-header-color';