Skip to content

Commit 28b3855

Browse files
committed
Increase button contrast to match React Native
Bumps button contrast to match the treatment on reactnative.dev. Dark mode: - primary text: dark:text-secondary (#404756) -> dark:text-gray-90 (#23272F) - secondary border: #404756 -> #4E5769 (matches RN's rgb(78,86,104)) Light mode: - secondary border: #D9DBE3 -> #BCC1CD (matches RN's rgb(188,193,205)) gray-90 keeps a subtle cyan tint on the teal button, per review feedback (gray-95 was too flat).
1 parent b4610fb commit 28b3855

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/components/ButtonLink.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function ButtonLink({
3333
className,
3434
'active:scale-[.98] transition-transform inline-flex font-bold items-center outline-none focus:outline-none focus-visible:outline focus-visible:outline-link focus:outline-offset-2 focus-visible:dark:focus:outline-link-dark leading-snug',
3535
{
36-
'bg-link text-white dark:bg-brand-dark dark:text-secondary hover:bg-opacity-80':
36+
'bg-link text-white dark:bg-brand-dark dark:text-gray-90 hover:bg-opacity-80':
3737
type === 'primary',
3838
'text-primary dark:text-primary-dark shadow-secondary-button-stroke dark:shadow-secondary-button-stroke-dark hover:bg-gray-40/5 active:bg-gray-40/10 hover:dark:bg-gray-60/5 active:dark:bg-gray-60/10':
3939
type === 'secondary',

tailwind.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ module.exports = {
4646
'inner-border-dark': 'inset 0 0 0 1px rgba(255, 255, 255, 0.08)',
4747
'outer-border': '0 0 0 1px rgba(0, 0, 0, 0.1)',
4848
'outer-border-dark': '0 0 0 1px rgba(255, 255, 255, 0.1)',
49-
'secondary-button-stroke': 'inset 0 0 0 1px #D9DBE3',
50-
'secondary-button-stroke-dark': 'inset 0 0 0 1px #404756',
49+
'secondary-button-stroke': 'inset 0 0 0 1px #BCC1CD',
50+
'secondary-button-stroke-dark': 'inset 0 0 0 1px #4E5769',
5151
none: 'none',
5252
},
5353
extend: {

0 commit comments

Comments
 (0)