Tweak gradient
This commit is contained in:
@@ -60,6 +60,14 @@ export const fontWeight = {
|
|||||||
} as const
|
} as const
|
||||||
|
|
||||||
export const gradients = {
|
export const gradients = {
|
||||||
|
primary: {
|
||||||
|
values: [
|
||||||
|
[0, '#0A6CFF'],
|
||||||
|
[0.6, '#1085FE'],
|
||||||
|
[1, '#59B9FF'],
|
||||||
|
],
|
||||||
|
hover_value: '#1085FE',
|
||||||
|
},
|
||||||
sky: {
|
sky: {
|
||||||
values: [
|
values: [
|
||||||
[0, '#0A7AFF'],
|
[0, '#0A7AFF'],
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ export type ButtonColor =
|
|||||||
| 'secondary'
|
| 'secondary'
|
||||||
| 'secondary_inverted'
|
| 'secondary_inverted'
|
||||||
| 'negative'
|
| 'negative'
|
||||||
|
| 'gradient_primary'
|
||||||
| 'gradient_sky'
|
| 'gradient_sky'
|
||||||
| 'gradient_midnight'
|
| 'gradient_midnight'
|
||||||
| 'gradient_sunrise'
|
| 'gradient_sunrise'
|
||||||
@@ -412,6 +413,7 @@ export const Button = React.forwardRef<View, ButtonProps>(
|
|||||||
secondary: tokens.gradients.sky,
|
secondary: tokens.gradients.sky,
|
||||||
secondary_inverted: tokens.gradients.sky,
|
secondary_inverted: tokens.gradients.sky,
|
||||||
negative: tokens.gradients.sky,
|
negative: tokens.gradients.sky,
|
||||||
|
gradient_primary: tokens.gradients.primary,
|
||||||
gradient_sky: tokens.gradients.sky,
|
gradient_sky: tokens.gradients.sky,
|
||||||
gradient_midnight: tokens.gradients.midnight,
|
gradient_midnight: tokens.gradients.midnight,
|
||||||
gradient_sunrise: tokens.gradients.sunrise,
|
gradient_sunrise: tokens.gradients.sunrise,
|
||||||
|
|||||||
@@ -302,7 +302,7 @@ function ComposeBtn() {
|
|||||||
onPress={onPressCompose}
|
onPress={onPressCompose}
|
||||||
size="large"
|
size="large"
|
||||||
variant="gradient"
|
variant="gradient"
|
||||||
color="gradient_sky"
|
color="gradient_primary"
|
||||||
style={[a.rounded_full]}>
|
style={[a.rounded_full]}>
|
||||||
<ButtonIcon icon={EditBig} position="left" />
|
<ButtonIcon icon={EditBig} position="left" />
|
||||||
<ButtonText>
|
<ButtonText>
|
||||||
|
|||||||
Reference in New Issue
Block a user