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

add outlineColor as a global theme property #546

Closed
wants to merge 1 commit into from
Closed
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
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.