-
-
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 (#4481)
* Updating colors and typography to use theme objects * Updating design-tokens package and updating typography to use theming
- Loading branch information
1 parent
e7c2391
commit ab5b45e
Showing
4 changed files
with
28 additions
and
26 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; | ||
} |
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