Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
add outlineColor as a global theme property
Browse files Browse the repository at this point in the history
fix #545
  • Loading branch information
cezaraugusto committed Oct 8, 2019
1 parent a448f16 commit 6adbf2d
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 35 deletions.
3 changes: 2 additions & 1 deletion src/theme/brave-dark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ const darkTheme: ITheme = {
contextMenuForeground: colors.white,
defaultControl: colors.grey400,
defaultControlInteracting: colors.white,
defaultControlActive: colors.grey500
defaultControlActive: colors.grey500,
outlineColor: 'rgba(255,255,255,0.5)'
}
}

Expand Down
4 changes: 3 additions & 1 deletion src/theme/brave-default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ const theme: ITheme = {
inputBorder: colors.grey500,
separatorLine: colors.grey100,
// images
lionLogo: colors.grey500
lionLogo: colors.grey500,
// elements outline
outlineColor: 'rgba(255,80,0,0.2)'
},
fontFamily: {
heading: 'Poppins, sans-serif',
Expand Down
4 changes: 2 additions & 2 deletions src/theme/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @ts-ignore: Needed for ThemeProvider
import * as React from 'react'
import * as styledComponents from 'styled-components'
import { BraveThemedStyledProps as ThemedStyledProps } from './theme-interface'
import IThemeProps, { BraveThemedStyledProps as ThemedStyledProps } from './theme-interface'
// theme for testing
import TestTheme from './brave-default'

Expand All @@ -17,7 +17,7 @@ const {
// see: https://github.com/palantir/tslint/issues/3505
// It's possibly due to the rule upstream in tslint-config-standard
// tslint:disable-next-line
} = styledComponents as styledComponents.ThemedStyledComponentsModule<any>
} = styledComponents as styledComponents.ThemedStyledComponentsModule<IThemeProps>

export default styled

Expand Down
1 change: 1 addition & 0 deletions src/theme/theme-interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export default interface IThemeProps {
lionLogo: string
inputBorder: string
separatorLine: string
outlineColor: string
}
fontFamily: {
heading: string
Expand Down
15 changes: 0 additions & 15 deletions src/theme/welcome-dark.ts

This file was deleted.

16 changes: 0 additions & 16 deletions src/theme/welcome-light.ts

This file was deleted.

0 comments on commit 6adbf2d

Please sign in to comment.