Skip to content

Commit

Permalink
Tweak gradient
Browse files Browse the repository at this point in the history
  • Loading branch information
estrattonbailey committed Sep 25, 2024
1 parent b4e4ce0 commit 10ca29a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/alf/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,14 @@ export const fontWeight = {
} as const

export const gradients = {
primary: {
values: [
[0, '#0A6CFF'],
[0.6, '#1085FE'],
[1, '#59B9FF'],
],
hover_value: '#1085FE',
},
sky: {
values: [
[0, '#0A7AFF'],
Expand Down
2 changes: 2 additions & 0 deletions src/components/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export type ButtonColor =
| 'secondary'
| 'secondary_inverted'
| 'negative'
| 'gradient_primary'
| 'gradient_sky'
| 'gradient_midnight'
| 'gradient_sunrise'
Expand Down Expand Up @@ -412,6 +413,7 @@ export const Button = React.forwardRef<View, ButtonProps>(
secondary: tokens.gradients.sky,
secondary_inverted: tokens.gradients.sky,
negative: tokens.gradients.sky,
gradient_primary: tokens.gradients.primary,
gradient_sky: tokens.gradients.sky,
gradient_midnight: tokens.gradients.midnight,
gradient_sunrise: tokens.gradients.sunrise,
Expand Down
2 changes: 1 addition & 1 deletion src/view/shell/desktop/LeftNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ function ComposeBtn() {
onPress={onPressCompose}
size="large"
variant="gradient"
color="gradient_sky"
color="gradient_primary"
style={[a.rounded_full]}>
<ButtonIcon icon={EditBig} position="left" />
<ButtonText>
Expand Down

0 comments on commit 10ca29a

Please sign in to comment.