mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 04:20:12 +02:00
Add header color util
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
export const getHeaderColor = (rgbColor: string, opacity?: number) => {
|
||||
return rgbColor.replace('rgb', 'rgba').replace(')', `, ${opacity || 0.8})`);
|
||||
};
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user