Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

update button styles

Steven Teydef699b8738d
diff --git a/packages/ui/package.json b/packages/ui/package.json
index 87b29fc6f5..e6a725b280 100644
--- a/packages/ui/package.json
+++ b/packages/ui/package.json
@@ -1,7 +1,7 @@
{
"name": "@dub/ui",
"description": "UI components for Dub.co",
- "version": "0.1.17",
+ "version": "0.1.18",
"sideEffects": false,
"main": "./dist/index.js",
"module": "./dist/index.mjs",
diff --git a/packages/ui/src/button.tsx b/packages/ui/src/button.tsx
index 2b6d659764..dfa2eea722 100644
--- a/packages/ui/src/button.tsx
+++ b/packages/ui/src/button.tsx
@@ -68,7 +68,7 @@ export function Button({
props.disabled || loading
? "cursor-not-allowed border-gray-200 bg-gray-100 text-gray-400"
: {
- "border-black bg-black text-white hover:bg-white hover:text-black":
+ "border-black bg-black text-white hover:bg-gray-800 hover:ring-4 hover:ring-gray-200":
variant === "primary",
"border-gray-200 bg-white text-gray-600 hover:bg-gray-100":
variant === "secondary",
diff --git a/packages/ui/src/nav.tsx b/packages/ui/src/nav.tsx
index 74afbd11ba..9999456797 100644
--- a/packages/ui/src/nav.tsx
+++ b/packages/ui/src/nav.tsx
@@ -213,7 +213,7 @@ export function Nav({ theme = "light" }: { theme?: NavTheme }) {
});
},
})}
- className="animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-white hover:text-black dark:border-white dark:bg-white dark:text-black dark:hover:bg-black dark:hover:text-white"
+ className="animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-gray-800 hover:ring-4 hover:ring-gray-200 dark:border-white dark:bg-white dark:text-black dark:hover:bg-gray-100"
>
Sign Up
</Link>
diff --git a/packages/utils/package.json b/packages/utils/package.json
index 7e93643acc..4da31f3ac6 100644
--- a/packages/utils/package.json
+++ b/packages/utils/package.json
@@ -1,7 +1,7 @@
{
"name": "@dub/utils",
"description": "Utility functions and constants for Dub.co",
- "version": "0.0.50",
+ "version": "0.0.54",
"sideEffects": false,
"main": "./dist/index.mjs",
"module": "./dist/index.mjs",
diff --git a/packages/utils/src/constants/pricing.tsx b/packages/utils/src/constants/pricing.tsx
index 35a86005c9..520ed5184b 100644
--- a/packages/utils/src/constants/pricing.tsx
+++ b/packages/utils/src/constants/pricing.tsx
@@ -45,7 +45,7 @@ const BUSINESS_PLAN_MODIFIER = ({
text: "Get started with Business",
shortText: "Get started",
href: "https://app.dub.co/register",
- color: "bg-sky-900 border-sky-900 hover:text-sky-900",
+ color: "bg-sky-900 hover:bg-sky-800 hover:ring-sky-100",
},
featureTitle: "Everything in Pro, plus:",
features: [
@@ -109,7 +109,7 @@ export const PLANS = [
cta: {
text: "Start for free",
href: "https://app.dub.co/register",
- color: "bg-black border-black hover:text-black",
+ color: "bg-black hover:bg-gray-800 hover:ring-gray-200",
},
featureTitle: "What's included:",
features: [
@@ -167,7 +167,7 @@ export const PLANS = [
text: "Get started with Pro",
shortText: "Get started",
href: "https://app.dub.co/register",
- color: "bg-blue-500 border-blue-500 hover:text-blue-500",
+ color: "bg-blue-500 hover:bg-blue-600 hover:ring-blue-100",
},
featureTitle: "Everything in Free, plus:",
features: [
@@ -292,7 +292,7 @@ export const PLANS = [
cta: {
text: "Contact us",
href: "/enterprise",
- color: "bg-violet-600 border-violet-600 hover:text-violet-600",
+ color: "bg-violet-600 hover:bg-violet-700 hover:ring-violet-100",
},
featureTitle: "Everything in Business, plus:",
features: [