Tweak gradient
This commit is contained in:
@@ -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'],
|
||||
|
||||
@@ -24,6 +24,7 @@ export type ButtonColor =
|
||||
| 'secondary'
|
||||
| 'secondary_inverted'
|
||||
| 'negative'
|
||||
| 'gradient_primary'
|
||||
| 'gradient_sky'
|
||||
| 'gradient_midnight'
|
||||
| 'gradient_sunrise'
|
||||
@@ -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,
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user