about summary refs log tree commit diff
path: root/src/components/Button.tsx
diff options
context:
space:
mode:
authorMinseo Lee <itoupluk427@gmail.com>2024-08-12 06:30:18 +0900
committerGitHub <noreply@github.com>2024-08-11 14:30:18 -0700
commit88f879ffe91fb7bff668c81b5a82fb4cfbd7889b (patch)
tree9717e7cb757ad566b1ea4d1023911ed301c476ef /src/components/Button.tsx
parent6f450b4982405535ebccba24f2e32940b161d57f (diff)
downloadvoidsky-88f879ffe91fb7bff668c81b5a82fb4cfbd7889b.tar.zst
Improve styles (#4916)
Co-authored-by: Hailey <me@haileyok.com>
Diffstat (limited to 'src/components/Button.tsx')
-rw-r--r--src/components/Button.tsx24
1 files changed, 3 insertions, 21 deletions
diff --git a/src/components/Button.tsx b/src/components/Button.tsx
index 4fe0ab4b1..7881fc9b5 100644
--- a/src/components/Button.tsx
+++ b/src/components/Button.tsx
@@ -202,28 +202,10 @@ export const Button = React.forwardRef<View, ButtonProps>(
       } else if (color === 'secondary') {
         if (variant === 'solid') {
           if (!disabled) {
-            baseStyles.push({
-              backgroundColor: select(t.name, {
-                light: t.palette.contrast_25,
-                dim: t.palette.contrast_100,
-                dark: t.palette.contrast_100,
-              }),
-            })
-            hoverStyles.push({
-              backgroundColor: select(t.name, {
-                light: t.palette.contrast_50,
-                dim: t.palette.contrast_200,
-                dark: t.palette.contrast_200,
-              }),
-            })
+            baseStyles.push(t.atoms.bg_contrast_25)
+            hoverStyles.push(t.atoms.bg_contrast_50)
           } else {
-            baseStyles.push({
-              backgroundColor: select(t.name, {
-                light: t.palette.contrast_100,
-                dim: t.palette.contrast_25,
-                dark: t.palette.contrast_25,
-              }),
-            })
+            baseStyles.push(t.atoms.bg_contrast_100)
           }
         } else if (variant === 'outline') {
           baseStyles.push(a.border, t.atoms.bg, {