Skip to content

Commit 331ed79

Browse files
committed
chore: updates to button styles
1 parent b172bfa commit 331ed79

File tree

4 files changed

+16
-5
lines changed

4 files changed

+16
-5
lines changed

site/src/components/ui/button.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@ import * as React from "react";
55
import { cn } from "@/lib/utils";
66

77
const buttonVariants = cva(
8-
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 border-0 font-semibold",
8+
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 font-semibold border-solid",
99
{
1010
variants: {
1111
variant: {
1212
default:
1313
"bg-surface-invert-primary text-content-invert hover:bg-surface-invert-secondary",
1414
outline:
15-
"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",
15+
"border border-border-default text-content-primary bg-transparent hover:bg-surface-secondary",
1616
subtle:
17-
"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",
17+
"border-none bg-transparent text-content-secondary hover:text-content-primary",
1818
warning:
19-
"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",
19+
"border border-border-error text-content-primary bg-surface-error hover:bg-transparent",
2020
},
2121
size: {
2222
default: "h-10 px-3 py-2",

site/src/index.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
--surface-tertiary: #e4e4e7;
1414
--surface-invert-primary: #27272a;
1515
--surface-invert-secondary: #3f3f46;
16+
--surface-error: #450A0A;
17+
--border-default :#E4E4E7;
18+
--border-error: #F87171;
1619
--radius: 0.5rem;
1720
}
1821
.dark {
@@ -25,5 +28,8 @@
2528
--surface-tertiary: #27272a;
2629
--surface-invert-primary: #e4e4e7;
2730
--surface-invert-secondary: #a1a1aa;
31+
--surface-error: #450A0A;
32+
--border-default: #27272A;
33+
--border-error: #F87171;
2834
}
2935
}

site/src/pages/DeploymentSettingsPage/PremiumPage/PremiumPageView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const EnterpriseVersion: FC = () => {
2121
Premium for enhanced multi-tenant control and flexibility:
2222
</p>
2323
</div>
24-
<Button asChild>
24+
<Button asChild variant="warning">
2525
<a href="https://coder.com/contact/sales" className="no-underline">
2626
Upgrade
2727
</a>

site/tailwind.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ module.exports = {
3737
primary: "var(--surface-invert-primary)",
3838
secondary: "var(--surface-invert-secondary)",
3939
},
40+
error: "var(--surface-error)",
41+
},
42+
border: {
43+
default: "var(--border-default)",
44+
error: "var(--border-error)",
4045
},
4146
},
4247
},

0 commit comments

Comments
 (0)