Remove other gradient defs

This commit is contained in:
Eric Bailey
2025-07-30 14:22:21 -05:00
parent a1b5be7ae9
commit 5351b71c11
3 changed files with 11 additions and 21 deletions
-10
View File
@@ -27,11 +27,6 @@ export type ButtonColor =
| 'secondary_inverted' | 'secondary_inverted'
| 'negative' | 'negative'
| 'negative_secondary' | 'negative_secondary'
| 'gradient_midnight'
| 'gradient_sunrise'
| 'gradient_sunset'
| 'gradient_nordic'
| 'gradient_bonfire'
export type ButtonSize = 'tiny' | 'small' | 'large' export type ButtonSize = 'tiny' | 'small' | 'large'
export type ButtonShape = 'round' | 'square' | 'default' export type ButtonShape = 'round' | 'square' | 'default'
export type VariantProps = { export type VariantProps = {
@@ -476,11 +471,6 @@ export const Button = React.forwardRef<View, ButtonProps>(
secondary_inverted: tokens.gradients.sky, secondary_inverted: tokens.gradients.sky,
negative: tokens.gradients.sky, negative: tokens.gradients.sky,
negative_secondary: tokens.gradients.sky, negative_secondary: tokens.gradients.sky,
gradient_midnight: tokens.gradients.midnight,
gradient_sunrise: tokens.gradients.sunrise,
gradient_sunset: tokens.gradients.sunset,
gradient_nordic: tokens.gradients.nordic,
gradient_bonfire: tokens.gradients.bonfire,
}[color || 'primary'] }[color || 'primary']
if (variant === 'gradient') { if (variant === 'gradient') {
+8 -8
View File
@@ -165,16 +165,16 @@ export function Buttons() {
<ButtonIcon icon={ChevronLeft} /> <ButtonIcon icon={ChevronLeft} />
</Button> </Button>
<Button <Button
variant="gradient" variant="solid"
color="gradient_sunset" color="primary"
size="small" size="small"
shape="round" shape="round"
label="Link out"> label="Link out">
<ButtonIcon icon={ChevronLeft} /> <ButtonIcon icon={ChevronLeft} />
</Button> </Button>
<Button <Button
variant="gradient" variant="solid"
color="gradient_sunset" color="primary"
size="tiny" size="tiny"
shape="round" shape="round"
label="Link out"> label="Link out">
@@ -216,16 +216,16 @@ export function Buttons() {
<ButtonIcon icon={ChevronLeft} /> <ButtonIcon icon={ChevronLeft} />
</Button> </Button>
<Button <Button
variant="gradient" variant="solid"
color="gradient_sunset" color="primary"
size="small" size="small"
shape="square" shape="square"
label="Link out"> label="Link out">
<ButtonIcon icon={ChevronLeft} /> <ButtonIcon icon={ChevronLeft} />
</Button> </Button>
<Button <Button
variant="gradient" variant="solid"
color="gradient_sunset" color="primary"
size="tiny" size="tiny"
shape="square" shape="square"
label="Link out"> label="Link out">
+3 -3
View File
@@ -1,5 +1,5 @@
import React from 'react' import React from 'react'
import {TextInput, View} from 'react-native' import {type TextInput, View} from 'react-native'
import {atoms as a} from '#/alf' import {atoms as a} from '#/alf'
import {Button, ButtonText} from '#/components/Button' import {Button, ButtonText} from '#/components/Button'
@@ -216,8 +216,8 @@ export function Forms() {
</View> </View>
<Button <Button
variant="gradient" variant="solid"
color="gradient_nordic" color="primary"
size="small" size="small"
label="Reset all toggles" label="Reset all toggles"
onPress={() => { onPress={() => {