-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating colors and typography to use theme objects
- Loading branch information
1 parent
784e153
commit 6d9df45
Showing
2 changed files
with
14 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,10 @@ | ||
import { ThemeTypography } from '@metamask/design-tokens/dist/js/typography/types'; | ||
|
||
// TODO: This should probably be defined from @metamask/design-token library | ||
export type Colors = any; | ||
import { Theme as DesignTokenTheme } from '@metamask/design-tokens'; | ||
|
||
export enum AppThemeKey { | ||
os = 'os', | ||
light = 'light', | ||
dark = 'dark', | ||
} | ||
export interface Theme { | ||
colors: Colors; | ||
typography: ThemeTypography; | ||
export interface Theme extends DesignTokenTheme { | ||
themeAppearance: AppThemeKey.light | AppThemeKey.dark; | ||
} |