Skip to content

Commit

Permalink
fix: refactor Theme type
Browse files Browse the repository at this point in the history
  • Loading branch information
adrians5j committed Oct 12, 2021
1 parent 6eb464b commit a151181
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
15 changes: 10 additions & 5 deletions packages/app-page-builder-elements/src/types.ts
Expand Up @@ -53,10 +53,15 @@ export interface Breakpoint {
mediaQuery: string;
}

export type ThemeBreakpoints = Record<string, Breakpoint>;

export interface ThemeStyles {
colors?: Record<string, any>;
typography?: Record<string, StylesObjects>;
[key: string]: any;
}

export interface Theme {
breakpoints?: Record<string, Breakpoint>;
styles?: {
colors?: Record<string, any>,
typography?: Record<string, StylesObjects>
};
breakpoints?: ThemeBreakpoints;
styles?: ThemeStyles;
}
3 changes: 2 additions & 1 deletion yarn.lock
Expand Up @@ -9660,7 +9660,7 @@ __metadata:
languageName: unknown
linkType: soft

"@webiny/app-page-builder-elements@workspace:packages/app-page-builder-elements":
"@webiny/app-page-builder-elements@^5.15.0, @webiny/app-page-builder-elements@workspace:packages/app-page-builder-elements":
version: 0.0.0-use.local
resolution: "@webiny/app-page-builder-elements@workspace:packages/app-page-builder-elements"
dependencies:
Expand Down Expand Up @@ -9716,6 +9716,7 @@ __metadata:
"@webiny/app": ^5.15.0
"@webiny/app-admin": ^5.15.0
"@webiny/app-i18n": ^5.15.0
"@webiny/app-page-builder-elements": ^5.15.0
"@webiny/app-plugin-admin-welcome-screen": ^5.15.0
"@webiny/app-security": ^5.15.0
"@webiny/app-tenancy": ^5.15.0
Expand Down

0 comments on commit a151181

Please sign in to comment.