-
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.
Merge pull request #64 from lifeomic/PHC-4075-add-basic-wireframe-sty…
- Loading branch information
Showing
15 changed files
with
213 additions
and
89 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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import React from 'react'; | ||
import { storiesOf } from '@storybook/react-native'; | ||
import { authConfig } from './OAuth.stories'; | ||
import { RootProviders, RootStack } from 'src'; | ||
|
||
storiesOf('Example App', module).add('DemoApp', () => ( | ||
<RootProviders authConfig={authConfig}> | ||
<RootStack /> | ||
</RootProviders> | ||
)); |
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,5 +1,6 @@ | ||
import './BrandConfigProvider/BrandConfigProvider.stories'; | ||
import './Welcome/Welcome.stories'; | ||
import './OAuth.stories'; | ||
import './ExampleApp.stories'; | ||
import './Tile.stories'; | ||
import './NoInternetToastProvider.stories'; |
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
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,61 @@ | ||
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 a popular design system to | ||
* dynamically generate all color tokens from the HTML color: | ||
* "gray" - #808080 - rgb(128,128,128) | ||
*/ | ||
export const colors = { | ||
white: '#FFFFFF', | ||
black: '#000000', | ||
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)', | ||
|
||
text: palette.neutral800, | ||
textDim: palette.neutral600, | ||
border: palette.neutral400, | ||
separator: palette.neutral300, | ||
background: palette.neutral200, | ||
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)', | ||
}, | ||
|
||
primary: palette.blueGray800, | ||
secondary: palette.blueGray200, | ||
surfaceDisabled: 'rgba(25, 28, 29, 0.12)', | ||
onSurfaceDisabled: 'rgba(25, 28, 29, 0.38)', | ||
|
||
error: palette.error500, | ||
errorBackground: palette.error100, | ||
backdrop: 'rgba(41, 50, 52, 0.4)', | ||
}; | ||
|
||
export type Colors = typeof colors; |
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; |
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
Oops, something went wrong.