Skip to content

Commit

Permalink
[components] add button dark theme variant (#451)
Browse files Browse the repository at this point in the history
* add dark theme variant

* Create twenty-yaks-smash.md
  • Loading branch information
prichodko authored Jul 2, 2023
1 parent f1715ce commit 67a6846
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/twenty-yaks-smash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@status-im/components": patch
---

[components] add dark theme variant
10 changes: 10 additions & 0 deletions packages/components/src/button/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ const textColors: MapVariant<typeof Base, 'variant'> = {
magenta: '$white-100',
yin: '$white-100',
yang: '$neutral-100',

// dark theme
dark_darkGrey: '$white-100',
}

const textSizes: Record<NonNullable<Props['size']>, TextProps['size']> = {
Expand Down Expand Up @@ -214,6 +217,13 @@ const Base = styled(View, {
hoverStyle: { backgroundColor: '$yang-60' },
pressStyle: { backgroundColor: '$yang-50' },
},

// FIXME: DARK THEME
dark_darkGrey: {
backgroundColor: '$neutral-90',
hoverStyle: { backgroundColor: '$neutral-60' },
pressStyle: { backgroundColor: '$neutral-50' },
},
},

disabled: {
Expand Down

2 comments on commit 67a6846

@vercel
Copy link

@vercel vercel bot commented on 67a6846 Jul 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

status-components – ./packages/components

status-components-status-im-web.vercel.app
status-components.vercel.app
status-components-git-main-status-im-web.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 67a6846 Jul 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

status-web – ./apps/web

status-web.vercel.app
status-web-status-im-web.vercel.app
status-web-git-main-status-im-web.vercel.app

Please sign in to comment.