mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Updated luminance condition for dark theme
This commit is contained in:
parent
ef31cb7199
commit
7781d09623
1 changed files with 1 additions and 1 deletions
|
|
@ -25,7 +25,7 @@ export function LabelChip(props: LabelChipProps): JSX.Element {
|
|||
const lightenColor = lighten(props.color, 0.5)
|
||||
const color = hexToRgb(props.color)
|
||||
const darkThemeTextColor =
|
||||
luminance > 0.4
|
||||
luminance > 0.2
|
||||
? `rgba(${color[0]}, ${color[1]}, ${color[2]}, 1)`
|
||||
: lightenColor
|
||||
const lightThemeTextColor = luminance > 0.5 ? '#000000' : '#ffffff'
|
||||
|
|
|
|||
Loading…
Reference in a new issue