Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Dark backgrounds text color #1677

Merged
merged 3 commits into from
Nov 13, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/web/src/community/connect/CoverArea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class CoverArea extends React.PureComponent<Props> {
>
{t('cover.title')}
</H1>
<Text style={[fonts.p, textStyles.invert, styles.formName]}>
<Text style={[fonts.p, textStyles.readingOnDark, styles.formName]}>
{t('cover.joinMovement')}
</Text>
<EmailForm
Expand Down
20 changes: 10 additions & 10 deletions packages/web/src/dev/BuildPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ class BuildPage extends React.PureComponent<I18nProps> {
buttonOne={{ title: t('installWallet'), href: CeloLinks.walletApp }}
buttonTwo={{ title: t('seeCode'), href: CeloLinks.monorepo }}
>
<Li style={textStyles.invert}>{t('mobile.nonCustodial')}</Li>
<Li style={textStyles.invert}>{t('mobile.mobileUltra')}</Li>
<Li style={textStyles.invert}>{t('mobile.exchange')}</Li>
<Li style={textStyles.invert}>{t('mobile.qr')}</Li>
<Li style={textStyles.readingOnDark}>{t('mobile.nonCustodial')}</Li>
<Li style={textStyles.readingOnDark}>{t('mobile.mobileUltra')}</Li>
<Li style={textStyles.readingOnDark}>{t('mobile.exchange')}</Li>
<Li style={textStyles.readingOnDark}>{t('mobile.qr')}</Li>
</StackSection>
<StackSection
label="2"
Expand All @@ -54,9 +54,9 @@ class BuildPage extends React.PureComponent<I18nProps> {
buttonOne={{ title: t('readMore'), href: CeloLinks.docsOverview }}
buttonTwo={{ title: t('seeCode'), href: CeloLinks.monorepo }}
>
<Li style={textStyles.invert}>{t('protocol.algoReserve')}</Li>
<Li style={textStyles.invert}>{t('protocol.cryptoCollat')}</Li>
<Li style={textStyles.invert}>{t('protocol.native')}</Li>
<Li style={textStyles.readingOnDark}>{t('protocol.algoReserve')}</Li>
<Li style={textStyles.readingOnDark}>{t('protocol.cryptoCollat')}</Li>
<Li style={textStyles.readingOnDark}>{t('protocol.native')}</Li>
</StackSection>
<StackSection
label="3"
Expand All @@ -66,9 +66,9 @@ class BuildPage extends React.PureComponent<I18nProps> {
buttonOne={{ title: t('readMore'), href: CeloLinks.docsOverview }}
buttonTwo={{ title: t('seeCode'), href: CeloLinks.blockChainRepo }}
>
<Li style={textStyles.invert}>{t('proof.permissionless')}</Li>
<Li style={textStyles.invert}>{t('proof.rewardsWeighted')}</Li>
<Li style={textStyles.invert}>{t('proof.onChain')}</Li>
<Li style={textStyles.readingOnDark}>{t('proof.permissionless')}</Li>
<Li style={textStyles.readingOnDark}>{t('proof.rewardsWeighted')}</Li>
<Li style={textStyles.readingOnDark}>{t('proof.onChain')}</Li>
</StackSection>
</View>
<DeveloperUpdates />
Expand Down
2 changes: 1 addition & 1 deletion packages/web/src/dev/CoverAction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default function CoverAction({ title, text, graphic, link, isMobile, styl
<Text
style={[
fonts.p,
textStyles.invert,
textStyles.readingOnDark,
standardStyles.elementalMarginBottom,
isMobile && textStyles.center,
]}
Expand Down
2 changes: 1 addition & 1 deletion packages/web/src/dev/Feature.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const FeatureComponent = React.memo(function Feature({ title, graphic, text }: P
)}
</FadeIn>
<Text style={[fonts.h5, textStyles.invert, textStyles.center, styles.title]}>{title}</Text>
<Text style={[fonts.mini, textStyles.center, textStyles.invert]}>{text}</Text>
<Text style={[fonts.mini, textStyles.center, textStyles.readingOnDark]}>{text}</Text>
</View>
)
})
Expand Down
2 changes: 1 addition & 1 deletion packages/web/src/dev/StackSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default withScreenSize(
</Cell>
<Cell span={Spans.half} style={styles.content}>
<H3 style={[standardStyles.elementalMarginBottom, textStyles.invert]}>{title}</H3>
<Text style={[fonts.p, textStyles.invert]}>{text}</Text>
<Text style={[fonts.p, textStyles.readingOnDark]}>{text}</Text>
<Ul style={styles.list}>{children}</Ul>
</Cell>
<Cell
Expand Down
2 changes: 1 addition & 1 deletion packages/web/src/fauceting/MicroComponents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const BAD_STATES = new Set([RequestState.Failed, RequestState.Invalid])
export function ContextualInfo({ requestState, t, isFaucet }: InfoProps) {
const contextStyle = [
fonts.small,
!isFaucet && textStyles.invert,
!isFaucet && textStyles.readingOnDark,
BAD_STATES.has(requestState) && textStyles.error,
]

Expand Down
4 changes: 4 additions & 0 deletions packages/web/src/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { StyleSheet } from 'react-native'

export enum colors {
white = '#FFFFFF',
offWhite = 'rgba(221,221,221,1.00)',
light = '#E5E5E5',
gray = '#DDDDDD',
screenGray = '#545C64',
Expand Down Expand Up @@ -186,6 +187,9 @@ export const textStyles = StyleSheet.create({
invert: {
color: colors.white,
},
readingOnDark: {
color: colors.offWhite,
},
caption: {
paddingTop: 5,
},
Expand Down