-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
244 additions
and
80 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
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,2 +1,3 @@ | ||
export { BrandConfigProvider } from './BrandConfigProvider'; | ||
export { Theme } from './theme/Theme'; | ||
export { NamedStylesProp } from './types'; |
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
136 changes: 111 additions & 25 deletions
136
src/components/BrandConfigProvider/theme/base/colors.ts
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,32 +1,118 @@ | ||
const palette = { | ||
neutral200: '#F4F2F1', | ||
neutral300: '#D7CEC9', | ||
neutral400: '#B6ACA6', | ||
neutral600: '#564E4A', | ||
neutral800: '#191015', | ||
|
||
blueGray200: '#B0BEC5', | ||
blueGray800: '#37474F', | ||
|
||
error100: '#F2D6CD', | ||
error500: '#C03403', | ||
}; | ||
/** | ||
* Base (wireFrame-like) color scheme | ||
* | ||
* The base color scheme uses the Material Design 3 system to | ||
* dynamically generate all colors from the HTML color: | ||
* "gray" - #808080 - rgb(128,128,128) | ||
*/ | ||
const scheme = { | ||
light: { | ||
primary: 'rgb(0, 104, 116)', | ||
onPrimary: 'rgb(255, 255, 255)', | ||
primaryContainer: 'rgb(151, 240, 255)', | ||
onPrimaryContainer: 'rgb(0, 31, 36)', | ||
|
||
secondary: 'rgb(74, 98, 103)', | ||
onSecondary: 'rgb(255, 255, 255)', | ||
secondaryContainer: 'rgb(205, 231, 236)', | ||
onSecondaryContainer: 'rgb(5, 31, 35)', | ||
|
||
tertiary: 'rgb(82, 94, 125)', | ||
onTertiary: 'rgb(255, 255, 255)', | ||
tertiaryContainer: 'rgb(218, 226, 255)', | ||
onTertiaryContainer: 'rgb(14, 27, 55)', | ||
|
||
error: 'rgb(186, 26, 26)', | ||
onError: 'rgb(255, 255, 255)', | ||
errorContainer: 'rgb(255, 218, 214)', | ||
onErrorContainer: 'rgb(65, 0, 2)', | ||
|
||
background: 'rgb(250, 253, 253)', | ||
onBackground: 'rgb(25, 28, 29)', | ||
|
||
surface: 'rgb(250, 253, 253)', | ||
onSurface: 'rgb(25, 28, 29)', | ||
surfaceVariant: 'rgb(219, 228, 230)', | ||
onSurfaceVariant: 'rgb(63, 72, 74)', | ||
|
||
outline: 'rgb(111, 121, 122)', | ||
outlineVariant: 'rgb(191, 200, 202)', | ||
|
||
shadow: 'rgb(0, 0, 0)', | ||
scrim: 'rgb(0, 0, 0)', | ||
inverseSurface: 'rgb(46, 49, 50)', | ||
inverseOnSurface: 'rgb(239, 241, 241)', | ||
inversePrimary: 'rgb(79, 216, 235)', | ||
|
||
elevation: { | ||
level0: 'transparent', | ||
level1: 'rgb(238, 246, 246)', | ||
level2: 'rgb(230, 241, 242)', | ||
level3: 'rgb(223, 237, 238)', | ||
level4: 'rgb(220, 235, 237)', | ||
level5: 'rgb(215, 232, 234)', | ||
}, | ||
|
||
surfaceDisabled: 'rgba(25, 28, 29, 0.12)', | ||
onSurfaceDisabled: 'rgba(25, 28, 29, 0.38)', | ||
|
||
backdrop: 'rgba(41, 50, 52, 0.4)', | ||
}, | ||
|
||
dark: { | ||
primary: 'rgb(79, 216, 235)', | ||
onPrimary: 'rgb(0, 54, 61)', | ||
primaryContainer: 'rgb(0, 79, 88)', | ||
onPrimaryContainer: 'rgb(151, 240, 255)', | ||
|
||
secondary: 'rgb(177, 203, 208)', | ||
onSecondary: 'rgb(28, 52, 56)', | ||
secondaryContainer: 'rgb(51, 75, 79)', | ||
onSecondaryContainer: 'rgb(205, 231, 236)', | ||
|
||
tertiary: 'rgb(186, 198, 234)', | ||
onTertiary: 'rgb(36, 48, 77)', | ||
tertiaryContainer: 'rgb(59, 70, 100)', | ||
onTertiaryContainer: 'rgb(218, 226, 255)', | ||
|
||
error: 'rgb(255, 180, 171)', | ||
onError: 'rgb(105, 0, 5)', | ||
errorContainer: 'rgb(147, 0, 10)', | ||
onErrorContainer: 'rgb(255, 180, 171)', | ||
|
||
background: 'rgb(25, 28, 29)', | ||
onBackground: 'rgb(225, 227, 227)', | ||
|
||
surface: 'rgb(25, 28, 29)', | ||
onSurface: 'rgb(225, 227, 227)', | ||
surfaceVariant: 'rgb(63, 72, 74)', | ||
onSurfaceVariant: 'rgb(191, 200, 202)', | ||
|
||
outline: 'rgb(137, 146, 148)', | ||
outlineVariant: 'rgb(63, 72, 74)', | ||
|
||
shadow: 'rgb(0, 0, 0)', | ||
scrim: 'rgb(0, 0, 0)', | ||
|
||
export const colors = { | ||
white: '#FFFFFF', | ||
black: '#000000', | ||
inverseSurface: 'rgb(225, 227, 227)', | ||
inverseOnSurface: 'rgb(46, 49, 50)', | ||
inversePrimary: 'rgb(0, 104, 116)', | ||
|
||
text: palette.neutral800, | ||
textDim: palette.neutral600, | ||
border: palette.neutral400, | ||
separator: palette.neutral300, | ||
background: palette.neutral200, | ||
elevation: { | ||
level0: 'transparent', | ||
level1: 'rgb(28, 37, 39)', | ||
level2: 'rgb(29, 43, 46)', | ||
level3: 'rgb(31, 49, 52)', | ||
level4: 'rgb(32, 51, 54)', | ||
level5: 'rgb(33, 54, 58)', | ||
}, | ||
|
||
primary: palette.blueGray800, | ||
secondary: palette.blueGray200, | ||
surfaceDisabled: 'rgba(225, 227, 227, 0.12)', | ||
onSurfaceDisabled: 'rgba(225, 227, 227, 0.38)', | ||
|
||
error: palette.error500, | ||
errorBackground: palette.error100, | ||
backdrop: 'rgba(41, 50, 52, 0.4)', | ||
}, | ||
}; | ||
|
||
export const colors = scheme.light; | ||
export type Colors = typeof colors; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,2 +1,4 @@ | ||
export * from './colors'; | ||
export * from './spacing'; | ||
|
||
export const roundness = 4; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.