Skip to content

Commit

Permalink
feat(theme-utils): add surface container colors
Browse files Browse the repository at this point in the history
  • Loading branch information
andresin87 committed Mar 20, 2023
1 parent 1a59450 commit 802f924
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/utils/theme/src/defaultTheme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,12 @@ export const defaultTheme: Theme = {
surfaceHovered: '#F7FAFD',
surfaceDisabled: '#F8F8F9',
surfaceFocused: '#FFFFFF',
// Surface container
surfaceContainer: '#EBEBED',
onSurfaceContainer: '#4A4950',
surfaceContainerHovered: '#F7FAFD',
surfaceContainerDisabled: '#F8F8F9',
surfaceContainerFocused: '#FFFFFF',
// Surface Inverse
surfaceInverse: '#252428',
onSurfaceInverse: '#FFFFFF',
Expand Down
6 changes: 6 additions & 0 deletions packages/utils/theme/src/defaultThemeDark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,12 @@ export const defaultThemeDark: Theme = createTheme({
surfaceHovered: '#FFFFFF', // use with 8% opacity
surfaceDisabled: '#F8F8F9',
surfaceFocused: '#FFFFFF', // use with 8% opacity
// Surface container
surfaceContainer: '#000000',
onSurfaceContainer: '#FFFFFF',
surfaceContainerHovered: '#FFFFFF',
surfaceContainerDisabled: '#F8F8F9',
surfaceContainerFocused: '#FFFFFF',
// Surface Inverse
surfaceInverse: '#F8F8F9',
onSurfaceInverse: '#000000',
Expand Down
5 changes: 5 additions & 0 deletions packages/utils/theme/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,11 @@ export interface Theme {
surfaceHovered: string
surfaceDisabled: string
surfaceFocused: string
surfaceContainer: string
onSurfaceContainer: string
surfaceContainerHovered: string
surfaceContainerDisabled: string
surfaceContainerFocused: string
// Surface Inverse
surfaceInverse: string
onSurfaceInverse: string
Expand Down

0 comments on commit 802f924

Please sign in to comment.