Skip to content

Commit 8b4d225

Browse files
committed
fix: rename success color to positive to match negative color
1 parent 43534ba commit 8b4d225

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

app/components/ui/badge.stories.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export function Variants() {
1717
<Badge variant="secondary">Secondary</Badge>
1818
<Badge variant="negative">Negative</Badge>
1919
<Badge variant="warning">Warning</Badge>
20-
<Badge variant="success">Success</Badge>
20+
<Badge variant="positive">Positive</Badge>
2121
<Badge variant="outline">Outline</Badge>
2222
</div>
2323
);

app/components/ui/badge.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ const badgeVariants = cva(
1515
'border-transparent bg-negative-100 text-negative-800 dark:bg-negative-500/25 dark:text-negative-100',
1616
warning:
1717
'border-transparent bg-warning-100 text-warning-800 dark:bg-warning-500/25 dark:text-warning-100',
18-
success:
19-
'border-transparent bg-success-100 text-success-800 dark:bg-success-500/25 dark:text-success-100',
18+
positive:
19+
'border-transparent bg-positive-100 text-positive-800 dark:bg-positive-500/25 dark:text-positive-100',
2020
outline: 'text-foreground',
2121
},
2222
size: {

app/styles/app.css

+11-11
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,17 @@
4444
--color-warning-900: oklch(0.414 0.112 45.904);
4545
--color-warning-950: oklch(0.279 0.077 45.635);
4646

47-
--color-success-50: oklch(0.982 0.018 155.826);
48-
--color-success-100: oklch(0.962 0.044 156.743);
49-
--color-success-200: oklch(0.925 0.084 155.995);
50-
--color-success-300: oklch(0.871 0.15 154.449);
51-
--color-success-400: oklch(0.792 0.209 151.711);
52-
--color-success-500: oklch(0.723 0.219 149.579);
53-
--color-success-600: oklch(0.627 0.194 149.214);
54-
--color-success-700: oklch(0.527 0.154 150.069);
55-
--color-success-800: oklch(0.448 0.119 151.328);
56-
--color-success-900: oklch(0.393 0.095 152.535);
57-
--color-success-950: oklch(0.266 0.065 152.934);
47+
--color-positive-50: oklch(0.982 0.018 155.826);
48+
--color-positive-100: oklch(0.962 0.044 156.743);
49+
--color-positive-200: oklch(0.925 0.084 155.995);
50+
--color-positive-300: oklch(0.871 0.15 154.449);
51+
--color-positive-400: oklch(0.792 0.209 151.711);
52+
--color-positive-500: oklch(0.723 0.219 149.579);
53+
--color-positive-600: oklch(0.627 0.194 149.214);
54+
--color-positive-700: oklch(0.527 0.154 150.069);
55+
--color-positive-800: oklch(0.448 0.119 151.328);
56+
--color-positive-900: oklch(0.393 0.095 152.535);
57+
--color-positive-950: oklch(0.266 0.065 152.934);
5858

5959
--spacing-safe-top: env(safe-area-inset-top);
6060
--spacing-safe-bottom: env(safe-area-inset-bottom);

0 commit comments

Comments
 (0)