Skip to content

Commit

Permalink
UI updates: moved theme defaults to separate file to help with tree s…
Browse files Browse the repository at this point in the history
…haking during bundling
  • Loading branch information
richturner committed Oct 21, 2019
1 parent c4707d8 commit 5f405d9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
15 changes: 15 additions & 0 deletions ui/component/core/src/defaults.ts
@@ -0,0 +1,15 @@
export const DefaultColor4: string = "#1B5630"; // Primary
export const DefaultColor7: string = "#FFF"; // Secondary
export const DefaultColor1: string = "#FFF"; // Surface
export const DefaultColor2: string = "#F9F9F9"; // Background
export const DefaultColor5: string = "#CCC"; // Borders and lines
export const DefaultColor6: string = "#be0000"; // Invalid/Error
export const DefaultColor8: string = "#FFF"; // On Primary
export const DefaultColor3: string = "#4c4c4c"; // Text / On Secondary
export const DefaultColor9: string = "#000"; // On Background
export const DefaultColor10: string = "#000"; // On Surface
export const DefaultColor11: string = "#FFF"; // On Error
export const DefaultBoxShadowBottom: string = "0 5px 5px -5px rgba(0,0,0,0.3)";
export const DefaultBoxShadow: string = "0 1px 3px 0 rgba(0,0,0,0.21)";
export const DefaultHeaderHeight: string = "50px";
export const DefaultDisabledOpacity: string = "0.3";
17 changes: 1 addition & 16 deletions ui/component/core/src/index.ts
Expand Up @@ -20,6 +20,7 @@ export {Util};
export * from "./asset-mixin";
export * from "./console";
export * from "./event";
export * from "./defaults";

export declare type KeycloakPromise<T> = {
success<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | KeycloakPromise<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | KeycloakPromise<TResult2>) | undefined | null): KeycloakPromise<TResult1 | TResult2>;
Expand All @@ -42,22 +43,6 @@ export declare type Keycloak = {
clearToken(): void;
}

export const DefaultColor4: string = "#1B5630"; // Primary
export const DefaultColor7: string = "#FFF"; // Secondary
export const DefaultColor1: string = "#FFF"; // Surface
export const DefaultColor2: string = "#F9F9F9"; // Background
export const DefaultColor5: string = "#CCC"; // Borders and lines
export const DefaultColor6: string = "#be0000"; // Invalid/Error
export const DefaultColor8: string = "#FFF"; // On Primary
export const DefaultColor3: string = "#4c4c4c"; // Text / On Secondary
export const DefaultColor9: string = "#000"; // On Background
export const DefaultColor10: string = "#000"; // On Surface
export const DefaultColor11: string = "#FFF"; // On Error
export const DefaultBoxShadowBottom: string = "0 5px 5px -5px rgba(0,0,0,0.3)";
export const DefaultBoxShadow: string = "0 1px 3px 0 rgba(0,0,0,0.21)";
export const DefaultHeaderHeight: string = "50px";
export const DefaultDisabledOpacity: string = "0.3";

export enum ORError {
NONE = "NONE",
MANAGER_FAILED_TO_LOAD = "MANAGER_FAILED_TO_LOAD",
Expand Down

0 comments on commit 5f405d9

Please sign in to comment.