Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix(ui): default Button variant to default instead of primary (#50160)

Danny White1131e3e2ce0b
diff --git a/apps/design-system/content/docs/components/button.mdx b/apps/design-system/content/docs/components/button.mdx
index fc7c1575839..6a89781e033 100644
--- a/apps/design-system/content/docs/components/button.mdx
+++ b/apps/design-system/content/docs/components/button.mdx
@@ -5,7 +5,7 @@ featured: true
component: true
---
-<ComponentPreview name="button-demo" peekCode wide />
+<ComponentPreview name="button-default" peekCode wide />
## Usage
@@ -47,22 +47,17 @@ Use the `size` prop to determine the size of the button.
### Variants
-These are all the different `variant` variations.
-
-#### Primary
-
-Used for data insertion actions, confirming purchases, strong positive actions.
+#### Default
-<ComponentPreview name="button-demo" />
+Used when no `variant` is specified. Prefer this unless another variant fits better, as below.
-#### Default
+<ComponentPreview name="button-default" />
-Used for opening dialogs, navigating to pages, and other non CRUD actions.
+#### Primary
-This `variant` will probably be the most used button variant.
-It will probably be changed to be the default variant in future.
+Use sparingly for data insertion, confirming purchases, and other strong positive actions. Because it is so prominent, aim for at most one primary button in a viewport.
-<ComponentPreview name="button-default" />
+<ComponentPreview name="button-demo" />
#### Secondary
diff --git a/apps/design-system/registry/default/example/button-as-child.tsx b/apps/design-system/registry/default/example/button-as-child.tsx
index 8d8909cdb50..8504d95f394 100644
--- a/apps/design-system/registry/default/example/button-as-child.tsx
+++ b/apps/design-system/registry/default/example/button-as-child.tsx
@@ -3,7 +3,7 @@ import { Button } from 'ui'
export default function ButtonAsChild() {
return (
- <Button asChild>
+ <Button variant="primary" asChild>
<Link href="/login">Sign in</Link>
</Button>
)
diff --git a/apps/design-system/registry/default/example/button-loading.tsx b/apps/design-system/registry/default/example/button-loading.tsx
index 9320b8f0fd7..db102ca9b06 100644
--- a/apps/design-system/registry/default/example/button-loading.tsx
+++ b/apps/design-system/registry/default/example/button-loading.tsx
@@ -2,7 +2,7 @@ import { Button } from 'ui'
export default function ButtonLoading() {
return (
- <Button disabled loading>
+ <Button variant="primary" disabled loading>
Please wait
</Button>
)
diff --git a/apps/design-system/registry/default/example/button-with-icon.tsx b/apps/design-system/registry/default/example/button-with-icon.tsx
index 54ebaab7968..d6a014881a7 100644
--- a/apps/design-system/registry/default/example/button-with-icon.tsx
+++ b/apps/design-system/registry/default/example/button-with-icon.tsx
@@ -2,5 +2,9 @@ import { Mail } from 'lucide-react'
import { Button } from 'ui'
export default function ButtonWithIcon() {
- return <Button icon={<Mail className="mr-2 h-4 w-4" />}>Sign in with email</Button>
+ return (
+ <Button variant="primary" icon={<Mail className="mr-2 h-4 w-4" />}>
+ Sign in with email
+ </Button>
+ )
}
diff --git a/apps/design-system/registry/default/example/calendar-form.tsx b/apps/design-system/registry/default/example/calendar-form.tsx
index 99846d6f4b8..a4f5d66bf2d 100644
--- a/apps/design-system/registry/default/example/calendar-form.tsx
+++ b/apps/design-system/registry/default/example/calendar-form.tsx
@@ -84,7 +84,9 @@ export default function CalendarForm() {
</FormItem>
)}
/>
- <Button type="submit">Submit</Button>
+ <Button variant="primary" type="submit">
+ Submit
+ </Button>
</form>
</Form>
)
diff --git a/apps/design-system/registry/default/example/calendar-react-hook-form.tsx b/apps/design-system/registry/default/example/calendar-react-hook-form.tsx
index 7cc4683d4ed..a9abdddb7ba 100644
--- a/apps/design-system/registry/default/example/calendar-react-hook-form.tsx
+++ b/apps/design-system/registry/default/example/calendar-react-hook-form.tsx
@@ -83,7 +83,9 @@ export default function CalendarForm() {
</FormItem>
)}
/>
- <Button type="submit">Submit</Button>
+ <Button variant="primary" type="submit">
+ Submit
+ </Button>
</form>
</Form>
)
diff --git a/apps/design-system/registry/default/example/checkbox-form-multiple.tsx b/apps/design-system/registry/default/example/checkbox-form-multiple.tsx
index 006ad6bad2a..4b3df7eafed 100644
--- a/apps/design-system/registry/default/example/checkbox-form-multiple.tsx
+++ b/apps/design-system/registry/default/example/checkbox-form-multiple.tsx
@@ -112,7 +112,9 @@ export default function CheckboxReactHookFormMultiple() {
</FormItem>
)}
/>
- <Button type="submit">Submit</Button>
+ <Button variant="primary" type="submit">
+ Submit
+ </Button>
</form>
</Form>
)
diff --git a/apps/design-system/registry/default/example/checkbox-form-single.tsx b/apps/design-system/registry/default/example/checkbox-form-single.tsx
index f18d4a172ef..8fed391e74e 100644
--- a/apps/design-system/registry/default/example/checkbox-form-single.tsx
+++ b/apps/design-system/registry/default/example/checkbox-form-single.tsx
@@ -59,7 +59,9 @@ export default function CheckboxReactHookFormSingle() {
</FormItem>
)}
/>
- <Button type="submit">Submit</Button>
+ <Button variant="primary" type="submit">
+ Submit
+ </Button>
</form>
</Form>
)
diff --git a/apps/design-system/registry/default/example/date-picker-form.tsx b/apps/design-system/registry/default/example/date-picker-form.tsx
index 129fc91412f..422c302aafa 100644
--- a/apps/design-system/registry/default/example/date-picker-form.tsx
+++ b/apps/design-system/registry/default/example/date-picker-form.tsx
@@ -76,7 +76,9 @@ export default function DatePickerForm() {
</FormItem>
)}
/>
- <Button type="submit">Submit</Button>
+ <Button variant="primary" type="submit">
+ Submit
+ </Button>
</form>
</Form>
)
diff --git a/apps/design-system/registry/default/example/dialog-centered-off.tsx b/apps/design-system/registry/default/example/dialog-centered-off.tsx
index ea35e2dd951..efaa47eea70 100644
--- a/apps/design-system/registry/default/example/dialog-centered-off.tsx
+++ b/apps/design-system/registry/default/example/dialog-centered-off.tsx
@@ -40,7 +40,9 @@ export default function DialogDemo() {
</div>
</DialogSection>
<DialogFooter>
- <Button type="submit">Save changes</Button>
+ <Button variant="primary" type="submit">
+ Save changes
+ </Button>
</DialogFooter>
</DialogContent>
</Dialog>
diff --git a/apps/design-system/registry/default/example/dialog-demo.tsx b/apps/design-system/registry/default/example/dialog-demo.tsx
index 9d6972d7b63..9a06b6661fb 100644
--- a/apps/design-system/registry/default/example/dialog-demo.tsx
+++ b/apps/design-system/registry/default/example/dialog-demo.tsx
@@ -36,7 +36,7 @@ export default function DialogDemo() {
</div>
</DialogSection>
<DialogFooter>
- <Button>Save changes</Button>
+ <Button variant="primary">Save changes</Button>
</DialogFooter>
</DialogContent>
</Dialog>
diff --git a/apps/design-system/registry/default/example/drawer-demo.tsx b/apps/design-system/registry/default/example/drawer-demo.tsx
index 1208680a3d0..86cb0d8696b 100644
--- a/apps/design-system/registry/default/example/drawer-demo.tsx
+++ b/apps/design-system/registry/default/example/drawer-demo.tsx
@@ -121,7 +121,7 @@ export default function DrawerDemo() {
</div>
</div>
<DrawerFooter>
- <Button>Submit</Button>
+ <Button variant="primary">Submit</Button>
<DrawerClose asChild>
<Button variant="outline">Cancel</Button>
</DrawerClose>
diff --git a/apps/design-system/registry/default/example/drawer-dialog.tsx b/apps/design-system/registry/default/example/drawer-dialog.tsx
index b34a0df1ca9..b9473a1cba9 100644
--- a/apps/design-system/registry/default/example/drawer-dialog.tsx
+++ b/apps/design-system/registry/default/example/drawer-dialog.tsx
@@ -81,7 +81,9 @@ function ProfileForm({ className }: React.ComponentProps<'form'>) {
<Label htmlFor="username">Username</Label>
<Input id="username" defaultValue="@shadcn" />
</div>
- <Button type="submit">Save changes</Button>
+ <Button variant="primary" type="submit">
+ Save changes
+ </Button>
</form>
)
}
diff --git a/apps/design-system/registry/default/example/field-demo.tsx b/apps/design-system/registry/default/example/field-demo.tsx
index 45cad3c1f18..b14770153c8 100644
--- a/apps/design-system/registry/default/example/field-demo.tsx
+++ b/apps/design-system/registry/default/example/field-demo.tsx
@@ -113,7 +113,9 @@ export default function FieldDemo() {
</FieldGroup>
</FieldSet>
<Field orientation="horizontal">
- <Button type="submit">Submit</Button>
+ <Button variant="primary" type="submit">
+ Submit
+ </Button>
<Button type="button" variant="default">
Cancel
</Button>
diff --git a/apps/design-system/registry/default/example/field-responsive.tsx b/apps/design-system/registry/default/example/field-responsive.tsx
index c59bbbeb254..82eee0cb3b2 100644
--- a/apps/design-system/registry/default/example/field-responsive.tsx
+++ b/apps/design-system/registry/default/example/field-responsive.tsx
@@ -45,7 +45,9 @@ export default function FieldResponsive() {
</Field>
<FieldSeparator />
<Field orientation="responsive">
- <Button type="submit">Submit</Button>
+ <Button variant="primary" type="submit">
+ Submit
+ </Button>
<Button type="button" variant="default">
Cancel
</Button>
diff --git a/apps/design-system/registry/default/example/input-otp-form.tsx b/apps/design-system/registry/default/example/input-otp-form.tsx
index 41c6cb342b8..8e30f133cff 100644
--- a/apps/design-system/registry/default/example/input-otp-form.tsx
+++ b/apps/design-system/registry/default/example/input-otp-form.tsx
@@ -71,7 +71,9 @@ export default function InputOTPForm() {
)}
/>
- <Button type="submit">Submit</Button>
+ <Button variant="primary" type="submit">
+ Submit
+ </Button>
</form>
</Form>
)
diff --git a/apps/design-system/registry/default/example/multi-select-in-dialog.tsx b/apps/design-system/registry/default/example/multi-select-in-dialog.tsx
index 4e44a6ad574..9e742d41b24 100644
--- a/apps/design-system/registry/default/example/multi-select-in-dialog.tsx
+++ b/apps/design-system/registry/default/example/multi-select-in-dialog.tsx
@@ -63,7 +63,7 @@ export default function MultiSelectDemo() {
</div>
</DialogSection>
<DialogFooter>
- <Button>Save changes</Button>
+ <Button variant="primary">Save changes</Button>
</DialogFooter>
</DialogContent>
</Dialog>
diff --git a/apps/design-system/registry/default/example/radio-group-form.tsx b/apps/design-system/registry/default/example/radio-group-form.tsx
index 8893a529bdb..76beb6a4d15 100644
--- a/apps/design-system/registry/default/example/radio-group-form.tsx
+++ b/apps/design-system/registry/default/example/radio-group-form.tsx
@@ -76,7 +76,9 @@ export default function RadioGroupForm() {
</FormItem>
)}
/>
- <Button type="submit">Submit</Button>
+ <Button variant="primary" type="submit">
+ Submit
+ </Button>
</form>
</Form>
)
diff --git a/apps/design-system/registry/default/example/sheet-confirm-on-close-demo.tsx b/apps/design-system/registry/default/example/sheet-confirm-on-close-demo.tsx
index d7a4aa06e3c..02992722d69 100644
--- a/apps/design-system/registry/default/example/sheet-confirm-on-close-demo.tsx
+++ b/apps/design-system/registry/default/example/sheet-confirm-on-close-demo.tsx
@@ -213,7 +213,7 @@ export default function SheetConfirmOnCloseDemo() {
<Button variant="default" onClick={confirmOnClose}>
Cancel
</Button>
- <Button onClick={saveChanges} disabled={!isDirty}>
+ <Button variant="primary" onClick={saveChanges} disabled={!isDirty}>
Save changes
</Button>
</SheetFooter>
diff --git a/apps/design-system/registry/default/example/tabs-demo.tsx b/apps/design-system/registry/default/example/tabs-demo.tsx
index edf748e9718..63771d8116a 100644
--- a/apps/design-system/registry/default/example/tabs-demo.tsx
+++ b/apps/design-system/registry/default/example/tabs-demo.tsx
@@ -40,7 +40,7 @@ export default function TabsDemo() {
</div>
</CardContent>
<CardFooter>
- <Button>Save changes</Button>
+ <Button variant="primary">Save changes</Button>
</CardFooter>
</Card>
</TabsContent>
@@ -63,7 +63,7 @@ export default function TabsDemo() {
</div>
</CardContent>
<CardFooter>
- <Button>Save password</Button>
+ <Button variant="primary">Save password</Button>
</CardFooter>
</Card>
</TabsContent>
diff --git a/apps/design-system/registry/default/example/textarea-with-button.tsx b/apps/design-system/registry/default/example/textarea-with-button.tsx
index 05f3200e6c2..3ba8c27f845 100644
--- a/apps/design-system/registry/default/example/textarea-with-button.tsx
+++ b/apps/design-system/registry/default/example/textarea-with-button.tsx
@@ -4,7 +4,7 @@ export default function TextareaWithButton() {
return (
<div className="grid w-full gap-2">
<Textarea placeholder="Type your message here." />
- <Button>Send message</Button>
+ <Button variant="primary">Send message</Button>
</div>
)
}
diff --git a/apps/docs/components/AppleSecretGenerator/AppleSecretGenerator.tsx b/apps/docs/components/AppleSecretGenerator/AppleSecretGenerator.tsx
index e6e942bd9b4..a0fa9b10429 100644
--- a/apps/docs/components/AppleSecretGenerator/AppleSecretGenerator.tsx
+++ b/apps/docs/components/AppleSecretGenerator/AppleSecretGenerator.tsx
@@ -157,6 +157,7 @@ const AppleSecretGenerator = () => {
<div style={{ height: '1rem' }} />
<Button
+ variant="primary"
size="medium"
disabled={
!(
diff --git a/apps/docs/components/Feedback/FeedbackModal.tsx b/apps/docs/components/Feedback/FeedbackModal.tsx
index 271edf329cc..9b5f65a3268 100644
--- a/apps/docs/components/Feedback/FeedbackModal.tsx
+++ b/apps/docs/components/Feedback/FeedbackModal.tsx
@@ -109,7 +109,13 @@ function FeedbackModal({ visible, page, onCancel, onSubmit }: FeedbackModalProps
<Button type="reset" variant="default" onClick={handleCancel} disabled={isSubmitting}>
Cancel
</Button>
- <Button type="submit" form={formId} loading={isSubmitting} disabled={isSubmitting}>
+ <Button
+ variant="primary"
+ type="submit"
+ form={formId}
+ loading={isSubmitting}
+ disabled={isSubmitting}
+ >
Submit feedback
</Button>
</div>
diff --git a/apps/docs/components/Navigation/NavigationMenu/GlobalMobileMenu.tsx b/apps/docs/components/Navigation/NavigationMenu/GlobalMobileMenu.tsx
index f0bdd88d1a0..fb3cecc29cf 100644
--- a/apps/docs/components/Navigation/NavigationMenu/GlobalMobileMenu.tsx
+++ b/apps/docs/components/Navigation/NavigationMenu/GlobalMobileMenu.tsx
@@ -167,7 +167,7 @@ const GlobalMobileMenu = ({ open, setOpen }: Props) => {
<Button block size="medium" variant="default" asChild>
<Link href="https://supabase.com/dashboard/sign-in">Sign in</Link>
</Button>
- <Button block size="medium" asChild>
+ <Button variant="primary" block size="medium" asChild>
<Link href="https://supabase.com/dashboard/sign-up">
Start your project
</Link>
diff --git a/apps/docs/components/Navigation/NavigationMenu/TopNavBar.tsx b/apps/docs/components/Navigation/NavigationMenu/TopNavBar.tsx
index 4e5312c9091..b41dbbe7896 100644
--- a/apps/docs/components/Navigation/NavigationMenu/TopNavBar.tsx
+++ b/apps/docs/components/Navigation/NavigationMenu/TopNavBar.tsx
@@ -71,7 +71,7 @@ const TopNavBar: FC = () => {
</div>
<div className="hidden lg:flex items-center justify-end gap-3">
{!isUserLoading && (
- <Button asChild>
+ <Button variant="primary" asChild>
<a href="/dashboard" className="h-[30px]" target="_blank" rel="noreferrer noopener">
{isLoggedIn ? 'Dashboard' : 'Sign up'}
</a>
diff --git a/apps/studio/components/interfaces/APIKeys/CreateNewAPIKeysButton.tsx b/apps/studio/components/interfaces/APIKeys/CreateNewAPIKeysButton.tsx
index bc7d2d67e6f..adaa13351fd 100644
--- a/apps/studio/components/interfaces/APIKeys/CreateNewAPIKeysButton.tsx
+++ b/apps/studio/components/interfaces/APIKeys/CreateNewAPIKeysButton.tsx
@@ -59,7 +59,9 @@ export const CreateNewAPIKeysButton = () => {
return (
<AlertDialog open={createKeysDialogOpen} onOpenChange={setCreateKeysDialogOpen}>
- <Button onClick={() => setCreateKeysDialogOpen(true)}>Create new API keys</Button>
+ <Button variant="primary" onClick={() => setCreateKeysDialogOpen(true)}>
+ Create new API keys
+ </Button>
<AlertDialogContent>
<AlertDialogHeader>
<AlertDialogTitle>Create new API keys</AlertDialogTitle>
diff --git a/apps/studio/components/interfaces/APIKeys/CreatePublishableAPIKeyDialog.tsx b/apps/studio/components/interfaces/APIKeys/CreatePublishableAPIKeyDialog.tsx
index fc7d131377b..e74e72e2dd7 100644
--- a/apps/studio/components/interfaces/APIKeys/CreatePublishableAPIKeyDialog.tsx
+++ b/apps/studio/components/interfaces/APIKeys/CreatePublishableAPIKeyDialog.tsx
@@ -148,7 +148,7 @@ export const CreatePublishableAPIKeyDialog = () => {
options={{ enabled: visible === 'publishable' && !isCreatingAPIKey }}
side="top"
>
- <Button form={FORM_ID} type="submit" loading={isCreatingAPIKey}>
+ <Button variant="primary" form={FORM_ID} type="submit" loading={isCreatingAPIKey}>
Create Publishable API key
</Button>
</Shortcut>
diff --git a/apps/studio/components/interfaces/APIKeys/CreateSecretAPIKeyDialog.tsx b/apps/studio/components/interfaces/APIKeys/CreateSecretAPIKeyDialog.tsx
index 5fe74bb1673..6c2d48a1a45 100644
--- a/apps/studio/components/interfaces/APIKeys/CreateSecretAPIKeyDialog.tsx
+++ b/apps/studio/components/interfaces/APIKeys/CreateSecretAPIKeyDialog.tsx
@@ -176,7 +176,7 @@ export const CreateSecretAPIKeyDialog = () => {
options={{ enabled: visible === 'secret' && !isCreatingAPIKey }}
side="top"
>
- <Button form={FORM_ID} type="submit" loading={isCreatingAPIKey}>
+ <Button variant="primary" form={FORM_ID} type="submit" loading={isCreatingAPIKey}>
Create API key
</Button>
</Shortcut>
diff --git a/apps/studio/components/interfaces/Account/AccessTokens/Classic/NewTokenButton.tsx b/apps/studio/components/interfaces/Account/AccessTokens/Classic/NewTokenButton.tsx
index a08d8b0d785..9e74e9dd28f 100644
--- a/apps/studio/components/interfaces/Account/AccessTokens/Classic/NewTokenButton.tsx
+++ b/apps/studio/components/interfaces/Account/AccessTokens/Classic/NewTokenButton.tsx
@@ -16,6 +16,7 @@ export const NewTokenButton = ({ onCreateToken }: NewAccessTokenButtonProps) =>
<>
<div className="flex items-center">
<Button
+ variant="primary"
className="rounded-r-none px-3 hover:z-10 focus-visible:z-10 focus-visible:rounded-r-sm"
onClick={() => setVisible(true)}
>
diff --git a/apps/studio/components/interfaces/Account/AccessTokens/Classic/NewTokenDialog.tsx b/apps/studio/components/interfaces/Account/AccessTokens/Classic/NewTokenDialog.tsx
index 2a5568fdf5a..55061284d9b 100644
--- a/apps/studio/components/interfaces/Account/AccessTokens/Classic/NewTokenDialog.tsx
+++ b/apps/studio/components/interfaces/Account/AccessTokens/Classic/NewTokenDialog.tsx
@@ -246,7 +246,7 @@ export const NewTokenDialog = ({
>
Cancel
</Button>
- <Button form={formId} type="submit" loading={isPending}>
+ <Button variant="primary" form={formId} type="submit" loading={isPending}>
Generate token
</Button>
</DialogFooter>
diff --git a/apps/studio/components/interfaces/Account/AccessTokens/Scoped/Form/NewScopedTokenForm.tsx b/apps/studio/components/interfaces/Account/AccessTokens/Scoped/Form/NewScopedTokenForm.tsx
index 1054062e337..b7d9df68fed 100644
--- a/apps/studio/components/interfaces/Account/AccessTokens/Scoped/Form/NewScopedTokenForm.tsx
+++ b/apps/studio/components/interfaces/Account/AccessTokens/Scoped/Form/NewScopedTokenForm.tsx
@@ -240,19 +240,23 @@ export const NewScopedTokenForm = forwardRef<
<Button variant="default">Cancel</Button>
</SheetClose>
{step === 'form' && isClassicMode && (
- <Button type="submit" form={FORM_ID} loading={isPending}>
+ <Button variant="primary" type="submit" form={FORM_ID} loading={isPending}>
Generate token
</Button>
)}
{step === 'form' && !isClassicMode && (
- <Button type="submit" form={FORM_ID} iconRight={<ChevronRight />}>
+ <Button variant="primary" type="submit" form={FORM_ID} iconRight={<ChevronRight />}>
Review access
</Button>
)}
{step === 'review' && (
<Popover open={!isCreateHintDismissed}>
<PopoverAnchor asChild>
- <Button loading={isPending} onClick={() => onCreateToken(formValues)}>
+ <Button
+ variant="primary"
+ loading={isPending}
+ onClick={() => onCreateToken(formValues)}
+ >
Create token
</Button>
</PopoverAnchor>
diff --git a/apps/studio/components/interfaces/Account/AccessTokens/Scoped/Form/NewScopedTokenSuccess.tsx b/apps/studio/components/interfaces/Account/AccessTokens/Scoped/Form/NewScopedTokenSuccess.tsx
index 5032a4b622e..7708fa028de 100644
--- a/apps/studio/components/interfaces/Account/AccessTokens/Scoped/Form/NewScopedTokenSuccess.tsx
+++ b/apps/studio/components/interfaces/Account/AccessTokens/Scoped/Form/NewScopedTokenSuccess.tsx
@@ -82,7 +82,7 @@ export const NewScopedTokenSuccess = ({
</div>
</ScrollArea>
<SheetFooter className="mt-auto flex w-full items-center justify-between! border-t py-4">
- <Button className="ml-auto" disabled={!keyCopied} onClick={handleDone}>
+ <Button variant="primary" className="ml-auto" disabled={!keyCopied} onClick={handleDone}>
Done
</Button>
</SheetFooter>
diff --git a/apps/studio/components/interfaces/Account/Preferences/AddPasswordRow.tsx b/apps/studio/components/interfaces/Account/Preferences/AddPasswordRow.tsx
index f73dd41e0e9..153ceb3c6db 100644
--- a/apps/studio/components/interfaces/Account/Preferences/AddPasswordRow.tsx
+++ b/apps/studio/components/interfaces/Account/Preferences/AddPasswordRow.tsx
@@ -140,7 +140,7 @@ const AddPasswordForm = ({ email, onClose }: { email: string; onClose: () => voi
<Button variant="default" disabled={isPending} onClick={onClose}>
Cancel
</Button>
- <Button type="submit" loading={isPending} disabled={isPending}>
+ <Button variant="primary" type="submit" loading={isPending} disabled={isPending}>
Add password
</Button>
</DialogFooter>
diff --git a/apps/studio/components/interfaces/Account/Preferences/ChangeEmailAddress.tsx b/apps/studio/components/interfaces/Account/Preferences/ChangeEmailAddress.tsx
index fed4b6bdcd9..16681fa879b 100644
--- a/apps/studio/components/interfaces/Account/Preferences/ChangeEmailAddress.tsx
+++ b/apps/studio/components/interfaces/Account/Preferences/ChangeEmailAddress.tsx
@@ -116,7 +116,7 @@ export const ChangeEmailAddressForm = ({ onClose }: { onClose: () => void }) =>
<Button variant="default" disabled={isPending} onClick={onClose}>
Cancel
</Button>
- <Button type="submit" loading={isPending} disabled={isPending}>
+ <Button variant="primary" type="submit" loading={isPending} disabled={isPending}>
Confirm
</Button>
</DialogFooter>
diff --git a/apps/studio/components/interfaces/Advisors/CreateRuleSheet.tsx b/apps/studio/components/interfaces/Advisors/CreateRuleSheet.tsx
index 76e20fc13da..bc1aa0bbbb2 100644
--- a/apps/studio/components/interfaces/Advisors/CreateRuleSheet.tsx
+++ b/apps/studio/components/interfaces/Advisors/CreateRuleSheet.tsx
@@ -240,7 +240,7 @@ export const CreateRuleSheet = ({ lint, open, onOpenChange }: CreateRuleSheetPro
<Button disabled={isCreating} variant="default" onClick={() => onOpenChange(false)}>
Cancel
</Button>
- <Button form={formId} type="submit" loading={isCreating}>
+ <Button variant="primary" form={formId} type="submit" loading={isCreating}>
Create rule
</Button>
</SheetFooter>
diff --git a/apps/studio/components/interfaces/App/IndirectTaxDeclarationModal.tsx b/apps/studio/components/interfaces/App/IndirectTaxDeclarationModal.tsx
index 2f00d14e96f..b18f9556fb9 100644
--- a/apps/studio/components/interfaces/App/IndirectTaxDeclarationModal.tsx
+++ b/apps/studio/components/interfaces/App/IndirectTaxDeclarationModal.tsx
@@ -129,6 +129,7 @@ export const IndirectTaxDeclarationModal = () => {
<DialogFooter>
<ButtonTooltip
+ variant="primary"
onClick={onSubmit}
disabled={response === ''}
loading={isPending}
diff --git a/apps/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsx b/apps/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsx
index 06e8cd5edd5..91405e99adf 100644
--- a/apps/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsx
+++ b/apps/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsx
@@ -291,6 +291,7 @@ export const ProviderForm = ({ config, provider, isActive }: ProviderFormProps)
Cancel
</Button>
<ButtonTooltip
+ variant="primary"
form={formId}
type="submit"
loading={isUpdatingConfig}
diff --git a/apps/studio/components/interfaces/Auth/CustomAuthProviders/CreateOrUpdateCustomProviderSheet.tsx b/apps/studio/components/interfaces/Auth/CustomAuthProviders/CreateOrUpdateCustomProviderSheet.tsx
index 7a910e1e790..874978b9967 100644
--- a/apps/studio/components/interfaces/Auth/CustomAuthProviders/CreateOrUpdateCustomProviderSheet.tsx
+++ b/apps/studio/components/interfaces/Auth/CustomAuthProviders/CreateOrUpdateCustomProviderSheet.tsx
@@ -514,7 +514,7 @@ export const CreateOrUpdateCustomProviderSheet = ({
<Button variant="default" onClick={confirmOnClose}>
Cancel
</Button>
- <Button type="submit" form={FORM_ID} loading={isCreating || isUpdating}>
+ <Button variant="primary" type="submit" form={FORM_ID} loading={isCreating || isUpdating}>
{isEditMode ? 'Update provider' : 'Create and enable provider'}
</Button>
</SheetFooter>
diff --git a/apps/studio/components/interfaces/Auth/Hooks/CreateHookSheet.tsx b/apps/studio/components/interfaces/Auth/Hooks/CreateHookSheet.tsx
index cd0c3ef6f64..726e8781754 100644
--- a/apps/studio/components/interfaces/Auth/Hooks/CreateHookSheet.tsx
+++ b/apps/studio/components/interfaces/Auth/Hooks/CreateHookSheet.tsx
@@ -559,6 +559,7 @@ revoke execute on function ${ident(schema)}.${ident(functionName)} from authenti
Cancel
</Button>
<Button
+ variant="primary"
form={FORM_ID}
type="submit"
disabled={isUpdatingAuthHooks}
diff --git a/apps/studio/components/interfaces/Auth/OAuthApps/CreateOrUpdateOAuthAppSheet.tsx b/apps/studio/components/interfaces/Auth/OAuthApps/CreateOrUpdateOAuthAppSheet.tsx
index 73683d349d2..716622816d9 100644
--- a/apps/studio/components/interfaces/Auth/OAuthApps/CreateOrUpdateOAuthAppSheet.tsx
+++ b/apps/studio/components/interfaces/Auth/OAuthApps/CreateOrUpdateOAuthAppSheet.tsx
@@ -518,7 +518,12 @@ export const CreateOrUpdateOAuthAppSheet = ({
<Button variant="default" disabled={isCreating || isUpdating} onClick={onClose}>
Cancel
</Button>
- <Button type="submit" form={FORM_ID} loading={isCreating || isUpdating}>
+ <Button
+ variant="primary"
+ type="submit"
+ form={FORM_ID}
+ loading={isCreating || isUpdating}
+ >
{isEditMode ? 'Update app' : 'Create app'}
</Button>
</SheetFooter>
diff --git a/apps/studio/components/interfaces/Auth/OAuthApps/OAuthAppsList.tsx b/apps/studio/components/interfaces/Auth/OAuthApps/OAuthAppsList.tsx
index 66d689a2ca4..506b8007cf7 100644
--- a/apps/studio/components/interfaces/Auth/OAuthApps/OAuthAppsList.tsx
+++ b/apps/studio/components/interfaces/Auth/OAuthApps/OAuthAppsList.tsx
@@ -315,6 +315,7 @@ export const OAuthAppsList = () => {
</Shortcut>
) : (
<ButtonTooltip
+ variant="primary"
disabled
icon={<Plus />}
onClick={() => setShowCreateSheet(true)}
diff --git a/apps/studio/components/interfaces/Auth/RedirectUrls/AddNewURLModal.tsx b/apps/studio/components/interfaces/Auth/RedirectUrls/AddNewURLModal.tsx
index 43eee80ea08..e10cfc20795 100644
--- a/apps/studio/components/interfaces/Auth/RedirectUrls/AddNewURLModal.tsx
+++ b/apps/studio/components/interfaces/Auth/RedirectUrls/AddNewURLModal.tsx
@@ -171,6 +171,7 @@ export const AddNewURLModal = ({ visible, allowList, onClose }: AddNewURLModalPr
</DialogSection>
<DialogFooter>
<Button
+ variant="primary"
block
type="submit"
size="small"
diff --git a/apps/studio/components/interfaces/Auth/RedirectUrls/RedirectUrlList.tsx b/apps/studio/components/interfaces/Auth/RedirectUrls/RedirectUrlList.tsx
index b3f8efaa451..c7ba9e0c434 100644
--- a/apps/studio/components/interfaces/Auth/RedirectUrls/RedirectUrlList.tsx
+++ b/apps/studio/components/interfaces/Auth/RedirectUrls/RedirectUrlList.tsx
@@ -97,6 +97,7 @@ export const RedirectUrlList = ({
side="bottom"
>
<ButtonTooltip
+ variant="primary"
disabled={!canUpdateConfig}
onClick={() => onSelectAddURL()}
tooltip={{
diff --git a/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/CreateAuth0Dialog.tsx b/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/CreateAuth0Dialog.tsx
index 8fb966fb9c3..763ba9f203d 100644
--- a/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/CreateAuth0Dialog.tsx
+++ b/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/CreateAuth0Dialog.tsx
@@ -169,7 +169,13 @@ export const CreateAuth0IntegrationDialog = ({
<Button disabled={isPending} variant="default" onClick={() => onClose()}>
Cancel
</Button>
- <Button form={FORM_ID} type="submit" disabled={isPending} loading={isPending}>
+ <Button
+ variant="primary"
+ form={FORM_ID}
+ type="submit"
+ disabled={isPending}
+ loading={isPending}
+ >
{isCreating ? 'Create connection' : 'Update connection'}
</Button>
</DialogFooter>
diff --git a/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/CreateAwsCognitoAuthDialog.tsx b/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/CreateAwsCognitoAuthDialog.tsx
index 47fb516c310..0f31fe44525 100644
--- a/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/CreateAwsCognitoAuthDialog.tsx
+++ b/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/CreateAwsCognitoAuthDialog.tsx
@@ -182,7 +182,13 @@ export const CreateAwsCognitoAuthIntegrationDialog = ({
<Button disabled={isPending} variant="default" onClick={() => onClose()}>
Cancel
</Button>
- <Button form={FORM_ID} type="submit" disabled={isPending} loading={isPending}>
+ <Button
+ variant="primary"
+ form={FORM_ID}
+ type="submit"
+ disabled={isPending}
+ loading={isPending}
+ >
{isCreating ? 'Create connection' : 'Update connection'}
</Button>
</DialogFooter>
diff --git a/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/CreateClerkAuthDialog.tsx b/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/CreateClerkAuthDialog.tsx
index f17198e96c9..110f923b6ed 100644
--- a/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/CreateClerkAuthDialog.tsx
+++ b/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/CreateClerkAuthDialog.tsx
@@ -139,7 +139,13 @@ export const CreateClerkAuthIntegrationDialog = ({
<Button disabled={isPending} variant="default" onClick={() => onClose()}>
Cancel
</Button>
- <Button form={FORM_ID} type="submit" disabled={isPending} loading={isPending}>
+ <Button
+ variant="primary"
+ form={FORM_ID}
+ type="submit"
+ disabled={isPending}
+ loading={isPending}
+ >
Create connection
</Button>
</DialogFooter>
diff --git a/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/CreateFirebaseAuthDialog.tsx b/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/CreateFirebaseAuthDialog.tsx
index 42cab1a17b5..c748bf16686 100644
--- a/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/CreateFirebaseAuthDialog.tsx
+++ b/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/CreateFirebaseAuthDialog.tsx
@@ -154,7 +154,13 @@ export const CreateFirebaseAuthIntegrationDialog = ({
<Button disabled={isPending} variant="default" onClick={() => onClose()}>
Cancel
</Button>
- <Button form={FORM_ID} type="submit" disabled={isPending} loading={isPending}>
+ <Button
+ variant="primary"
+ form={FORM_ID}
+ type="submit"
+ disabled={isPending}
+ loading={isPending}
+ >
{isCreating ? 'Create connection' : 'Update connection'}
</Button>
</DialogFooter>
diff --git a/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/CreateWorkOSDialog.tsx b/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/CreateWorkOSDialog.tsx
index c87deec6c11..20c51e4bb98 100644
--- a/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/CreateWorkOSDialog.tsx
+++ b/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/CreateWorkOSDialog.tsx
@@ -163,7 +163,13 @@ export const CreateWorkOSIntegrationDialog = ({
<Button disabled={isPending} variant="default" onClick={() => onClose()}>
Cancel
</Button>
- <Button form={FORM_ID} type="submit" disabled={isPending} loading={isPending}>
+ <Button
+ variant="primary"
+ form={FORM_ID}
+ type="submit"
+ disabled={isPending}
+ loading={isPending}
+ >
{isCreating ? 'Create connection' : 'Update connection'}
</Button>
</DialogFooter>
diff --git a/apps/studio/components/interfaces/Auth/Users/CreateUserModal.tsx b/apps/studio/components/interfaces/Auth/Users/CreateUserModal.tsx
index f076fcd73ef..e6efbdf47f8 100644
--- a/apps/studio/components/interfaces/Auth/Users/CreateUserModal.tsx
+++ b/apps/studio/components/interfaces/Auth/Users/CreateUserModal.tsx
@@ -156,6 +156,7 @@ const CreateUserModal = ({ visible, setVisible }: CreateUserModalProps) => {
</FormLabel>
<Button
+ variant="primary"
block
size="small"
type="submit"
diff --git a/apps/studio/components/interfaces/Auth/Users/InviteUserModal.tsx b/apps/studio/components/interfaces/Auth/Users/InviteUserModal.tsx
index f2f04be16d7..76f85b9f6df 100644
--- a/apps/studio/components/interfaces/Auth/Users/InviteUserModal.tsx
+++ b/apps/studio/components/interfaces/Auth/Users/InviteUserModal.tsx
@@ -95,6 +95,7 @@ const InviteUserModal = ({ visible, setVisible }: InviteUserModalProps) => {
Cancel
</Button>
<Button
+ variant="primary"
form={formId}
type="submit"
loading={isInviting}
diff --git a/apps/studio/components/interfaces/Database/Backups/PITR/PITRStatus.tsx b/apps/studio/components/interfaces/Database/Backups/PITR/PITRStatus.tsx
index a6372f66339..623380197d0 100644
--- a/apps/studio/components/interfaces/Database/Backups/PITR/PITRStatus.tsx
+++ b/apps/studio/components/interfaces/Database/Backups/PITR/PITRStatus.tsx
@@ -59,6 +59,7 @@ const PITRStatus = ({
</span>
</div>
<ButtonTooltip
+ variant="primary"
disabled={hasReadReplicas || !canTriggerPhysicalBackup}
onClick={() => onSetConfiguration()}
tooltip={{
diff --git a/apps/studio/components/interfaces/Database/Backups/RestoreToNewProject/ConfirmRestoreDialog.tsx b/apps/studio/components/interfaces/Database/Backups/RestoreToNewProject/ConfirmRestoreDialog.tsx
index c07b59a181b..9be7f69eae1 100644
--- a/apps/studio/components/interfaces/Database/Backups/RestoreToNewProject/ConfirmRestoreDialog.tsx
+++ b/apps/studio/components/interfaces/Database/Backups/RestoreToNewProject/ConfirmRestoreDialog.tsx
@@ -72,7 +72,9 @@ export const ConfirmRestoreDialog = ({
<Button variant="outline" onClick={() => onOpenChange(false)}>
Cancel
</Button>
- <Button onClick={() => onSelectContinue()}>Continue</Button>
+ <Button variant="primary" onClick={() => onSelectContinue()}>
+ Continue
+ </Button>
</DialogFooter>
</DialogContent>
</Dialog>
diff --git a/apps/studio/components/interfaces/Database/Backups/RestoreToNewProject/CreateNewProjectDialog.tsx b/apps/studio/components/interfaces/Database/Backups/RestoreToNewProject/CreateNewProjectDialog.tsx
index 7388b523c82..c22c00fe95b 100644
--- a/apps/studio/components/interfaces/Database/Backups/RestoreToNewProject/CreateNewProjectDialog.tsx
+++ b/apps/studio/components/interfaces/Database/Backups/RestoreToNewProject/CreateNewProjectDialog.tsx
@@ -187,7 +187,7 @@ export const CreateNewProjectDialog = ({
<Button type="reset" variant="outline" onClick={() => onOpenChange(false)}>
Cancel
</Button>
- <Button type="submit" loading={cloneMutationLoading}>
+ <Button variant="primary" type="submit" loading={cloneMutationLoading}>
Restore to new project
</Button>
</DialogFooter>
diff --git a/apps/studio/components/interfaces/Database/Extensions/EnableExtensionModal.tsx b/apps/studio/components/interfaces/Database/Extensions/EnableExtensionModal.tsx
index 69a981d0bc7..a0d99194436 100644
--- a/apps/studio/components/interfaces/Database/Extensions/EnableExtensionModal.tsx
+++ b/apps/studio/components/interfaces/Database/Extensions/EnableExtensionModal.tsx
@@ -258,6 +258,7 @@ export const EnableExtensionModal = ({
Cancel
</Button>
<Button
+ variant="primary"
type="submit"
form="enable-extensions-form"
loading={isEnabling}
diff --git a/apps/studio/components/interfaces/Database/Functions/CreateFunction/index.tsx b/apps/studio/components/interfaces/Database/Functions/CreateFunction/index.tsx
index 26b7cd98c54..38f12a81492 100644
--- a/apps/studio/components/interfaces/Database/Functions/CreateFunction/index.tsx
+++ b/apps/studio/components/interfaces/Database/Functions/CreateFunction/index.tsx
@@ -455,6 +455,7 @@ export const CreateFunction = ({
Cancel
</Button>
<Button
+ variant="primary"
form={FORM_ID}
type="submit"
disabled={isCreating || isUpdating}
diff --git a/apps/studio/components/interfaces/Database/Hooks/HTTPRequestConfig.tsx b/apps/studio/components/interfaces/Database/Hooks/HTTPRequestConfig.tsx
index 915ec146060..f82cdfd2036 100644
--- a/apps/studio/components/interfaces/Database/Hooks/HTTPRequestConfig.tsx
+++ b/apps/studio/components/interfaces/Database/Hooks/HTTPRequestConfig.tsx
@@ -93,7 +93,7 @@ export const HTTPRequestConfig = ({ form }: HTTPRequestConfigProps) => {
<p className="text-sm text-foreground-light">Select which edge function to trigger</p>
<div className="px-4 py-4 border rounded-sm bg-surface-300 border-strong flex items-center justify-between space-x-4">
<p className="text-sm">No edge functions created yet</p>
- <Button asChild>
+ <Button variant="primary" asChild>
<Link href={`/project/${ref}/functions`}>Create an edge function</Link>
</Button>
</div>
diff --git a/apps/studio/components/interfaces/Database/Hooks/HooksList/HooksList.tsx b/apps/studio/components/interfaces/Database/Hooks/HooksList/HooksList.tsx
index 3c3e3441ab4..ae76b5e6344 100644
--- a/apps/studio/components/interfaces/Database/Hooks/HooksList/HooksList.tsx
+++ b/apps/studio/components/interfaces/Database/Hooks/HooksList/HooksList.tsx
@@ -82,6 +82,7 @@ export const HooksList = () => {
<div className="flex items-center gap-x-2">
<DocsButton href={`${DOCS_URL}/guides/database/webhooks`} />
<ButtonTooltip
+ variant="primary"
onClick={() => setShowCreateHookForm(true)}
disabled={!isPermissionsLoaded || !canCreateWebhooks}
tooltip={{
diff --git a/apps/studio/components/interfaces/Database/Policies/PolicyEditorPanel/index.tsx b/apps/studio/components/interfaces/Database/Policies/PolicyEditorPanel/index.tsx
index a7688b1fdae..8e5799848e6 100644
--- a/apps/studio/components/interfaces/Database/Policies/PolicyEditorPanel/index.tsx
+++ b/apps/studio/components/interfaces/Database/Policies/PolicyEditorPanel/index.tsx
@@ -545,6 +545,7 @@ export const PolicyEditorPanel = memo(function ({
</Button>
<ButtonTooltip
+ variant="primary"
form={FORM_ID}
type="submit"
loading={isExecuting || isUpdating}
diff --git a/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/DuckLake/Fields.tsx b/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/DuckLake/Fields.tsx
index eaac72f1fee..27fba86dc62 100644
--- a/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/DuckLake/Fields.tsx
+++ b/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/DuckLake/Fields.tsx
@@ -352,6 +352,7 @@ const DuckLakeSupabaseFields = ({ form }: { form: UseFormReturn<DestinationPanel
Cancel
</Button>
<Button
+ variant="primary"
type="button"
loading={isCreatingBucket}
disabled={!newBucketName.trim()}
diff --git a/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/index.tsx b/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/index.tsx
index 80d904bab70..6fca11fb346 100644
--- a/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/index.tsx
+++ b/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/index.tsx
@@ -534,7 +534,13 @@ export const DestinationForm = ({
<Button disabled={isSaving} variant="default" onClick={onCancel}>
Cancel
</Button>
- <Button disabled={isSubmitDisabled} loading={isSaving} form={formId} type="submit">
+ <Button
+ variant="primary"
+ disabled={isSubmitDisabled}
+ loading={isSaving}
+ form={formId}
+ type="submit"
+ >
{getSubmitButtonText()}
</Button>
</div>
diff --git a/apps/studio/components/interfaces/Database/Tables/TableList.tsx b/apps/studio/components/interfaces/Database/Tables/TableList.tsx
index ef278a0171b..7aac89c7051 100644
--- a/apps/studio/components/interfaces/Database/Tables/TableList.tsx
+++ b/apps/studio/components/interfaces/Database/Tables/TableList.tsx
@@ -342,12 +342,18 @@ export const TableList = ({
onTrigger={() => onAddTable()}
side="bottom"
>
- <Button className="w-auto ml-auto" icon={<Plus />} onClick={() => onAddTable()}>
+ <Button
+ variant="primary"
+ className="w-auto ml-auto"
+ icon={<Plus />}
+ onClick={() => onAddTable()}
+ >
New table
</Button>
</Shortcut>
) : (
<ButtonTooltip
+ variant="primary"
className="w-auto ml-auto"
icon={<Plus />}
disabled
diff --git a/apps/studio/components/interfaces/Database/Triggers/TriggerSheet.tsx b/apps/studio/components/interfaces/Database/Triggers/TriggerSheet.tsx
index edce0bf6399..6afc3865a07 100644
--- a/apps/studio/components/interfaces/Database/Triggers/TriggerSheet.tsx
+++ b/apps/studio/components/interfaces/Database/Triggers/TriggerSheet.tsx
@@ -483,7 +483,12 @@ export const TriggerSheet = ({
>
Cancel
</Button>
- <Button form={formId} type="submit" loading={isCreating || isUpdating}>
+ <Button
+ variant="primary"
+ form={formId}
+ type="submit"
+ loading={isCreating || isUpdating}
+ >
{isEditing ? 'Save' : 'Create'} trigger
</Button>
</SheetFooter>
diff --git a/apps/studio/components/interfaces/Docs/Description.tsx b/apps/studio/components/interfaces/Docs/Description.tsx
index 0696cb37c48..1421ec19397 100644
--- a/apps/studio/components/interfaces/Docs/Description.tsx
+++ b/apps/studio/components/interfaces/Docs/Description.tsx
@@ -108,7 +108,7 @@ const Description = ({ content, metadata, onChange = noop }: DescrptionProps) =>
>
Cancel
</Button>
- <Button disabled={!hasChanged} onClick={updateDescription}>
+ <Button variant="primary" disabled={!hasChanged} onClick={updateDescription}>
{isUpdating ? (
<Loader className="mx-auto animate-spin" size={14} strokeWidth={2} />
) : (
diff --git a/apps/studio/components/interfaces/Explorer/ExplorerQueryTab.tsx b/apps/studio/components/interfaces/Explorer/ExplorerQueryTab.tsx
index b33cf18958f..9033c482856 100644
--- a/apps/studio/components/interfaces/Explorer/ExplorerQueryTab.tsx
+++ b/apps/studio/components/interfaces/Explorer/ExplorerQueryTab.tsx
@@ -121,7 +121,9 @@ export const ExplorerQueryTab = () => {
This local draft may have been closed or cleared from this browser.
</p>
</div>
- <Button onClick={() => router.push(`/project/${ref}/explorer`)}>Back to Explorer</Button>
+ <Button variant="primary" onClick={() => router.push(`/project/${ref}/explorer`)}>
+ Back to Explorer
+ </Button>
</div>
)
}
diff --git a/apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/EditSecretSheet.tsx b/apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/EditSecretSheet.tsx
index 178105aa4e7..d6a961d75da 100644
--- a/apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/EditSecretSheet.tsx
+++ b/apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/EditSecretSheet.tsx
@@ -165,7 +165,13 @@ export function EditSecretSheet({ secret, visible, onClose }: EditSecretSheetPro
<Button disabled={isUpdating} variant="default" onClick={confirmOnClose}>
Cancel
</Button>
- <Button form={FORM_ID} type="submit" disabled={!isValid} loading={isUpdating}>
+ <Button
+ variant="primary"
+ form={FORM_ID}
+ type="submit"
+ disabled={!isValid}
+ loading={isUpdating}
+ >
Save
</Button>
</SheetFooter>
diff --git a/apps/studio/components/interfaces/Integrations/CronJobs/CronJobsTab.EnableCleanupButton.tsx b/apps/studio/components/interfaces/Integrations/CronJobs/CronJobsTab.EnableCleanupButton.tsx
index 68a631a6a8c..5951bdad8ee 100644
--- a/apps/studio/components/interfaces/Integrations/CronJobs/CronJobsTab.EnableCleanupButton.tsx
+++ b/apps/studio/components/interfaces/Integrations/CronJobs/CronJobsTab.EnableCleanupButton.tsx
@@ -134,7 +134,7 @@ export const EnableCleanupButton = ({ onScheduled }: EnableCleanupButtonProps) =
<Button variant="default" disabled={isScheduling} onClick={() => setOpen(false)}>
Cancel
</Button>
- <Button loading={isScheduling} onClick={onConfirm}>
+ <Button variant="primary" loading={isScheduling} onClick={onConfirm}>
Enable cleanup
</Button>
</DialogFooter>
diff --git a/apps/studio/components/interfaces/Integrations/CronJobs/CronJobsTab.Header.tsx b/apps/studio/components/interfaces/Integrations/CronJobs/CronJobsTab.Header.tsx
index 43a7f76b405..45f10fe3656 100644
--- a/apps/studio/components/interfaces/Integrations/CronJobs/CronJobsTab.Header.tsx
+++ b/apps/studio/components/interfaces/Integrations/CronJobs/CronJobsTab.Header.tsx
@@ -64,7 +64,9 @@ export const CronJobsTabHeader = ({
<Button variant="default" icon={<RefreshCw />} loading={isRefreshing} onClick={onRefresh}>
Refresh
</Button>
- <Button onClick={onCreateJob}>Create job</Button>
+ <Button variant="primary" onClick={onCreateJob}>
+ Create job
+ </Button>
</div>
</div>
)
diff --git a/apps/studio/components/interfaces/Integrations/CronJobs/EdgeFunctionSection.tsx b/apps/studio/components/interfaces/Integrations/CronJobs/EdgeFunctionSection.tsx
index 5e22a953f78..9448a54c801 100644
--- a/apps/studio/components/interfaces/Integrations/CronJobs/EdgeFunctionSection.tsx
+++ b/apps/studio/components/interfaces/Integrations/CronJobs/EdgeFunctionSection.tsx
@@ -108,7 +108,7 @@ export const EdgeFunctionSection = ({ form }: HTTPRequestFieldsProps) => {
) : (
<div className="px-4 py-4 border rounded-sm bg-surface-300 border-strong flex items-center justify-between space-x-4">
<p className="text-sm">No edge functions created yet</p>
- <Button asChild>
+ <Button variant="primary" asChild>
<Link href={`/project/${ref}/functions`}>Create an edge function</Link>
</Button>
</div>
diff --git a/apps/studio/components/interfaces/Integrations/Queues/QueuesTab.tsx b/apps/studio/components/interfaces/Integrations/Queues/QueuesTab.tsx
index d66eb2ca948..fd072777383 100644
--- a/apps/studio/components/interfaces/Integrations/Queues/QueuesTab.tsx
+++ b/apps/studio/components/interfaces/Integrations/Queues/QueuesTab.tsx
@@ -117,7 +117,9 @@ export const QueuesTab = () => {
>
Refresh
</Button>
- <Button onClick={() => setCreateQueueSheetShown(true)}>Create queue</Button>
+ <Button variant="primary" onClick={() => setCreateQueueSheetShown(true)}>
+ Create queue
+ </Button>
</div>
</div>
diff --git a/apps/studio/components/interfaces/Integrations/Queues/SingleQueue/QueueDataGrid.tsx b/apps/studio/components/interfaces/Integrations/Queues/SingleQueue/QueueDataGrid.tsx
index 5782a9f59b6..3f1c93d9627 100644
--- a/apps/studio/components/interfaces/Integrations/Queues/SingleQueue/QueueDataGrid.tsx
+++ b/apps/studio/components/interfaces/Integrations/Queues/SingleQueue/QueueDataGrid.tsx
@@ -198,7 +198,7 @@ export const QueueMessagesDataGrid = ({
<p className="text-foreground-light">
The selected queue doesn't have any messages.
</p>
- <Button className="mt-2" onClick={() => showMessageModal()}>
+ <Button variant="primary" className="mt-2" onClick={() => showMessageModal()}>
Add message
</Button>
</div>
diff --git a/apps/studio/components/interfaces/Integrations/Queues/UpgradeDatabaseAlert.tsx b/apps/studio/components/interfaces/Integrations/Queues/UpgradeDatabaseAlert.tsx
index e3ca55cb706..a6645ad0bdb 100644
--- a/apps/studio/components/interfaces/Integrations/Queues/UpgradeDatabaseAlert.tsx
+++ b/apps/studio/components/interfaces/Integrations/Queues/UpgradeDatabaseAlert.tsx
@@ -24,7 +24,7 @@ export const UpgradeDatabaseAlert = ({ minimumVersion = '15.6' }: UpgradeDatabas
version of Postgres. The extension is available on version {minimumVersion} and higher.
</p>
</div>
- <Button color="primary" className="w-fit">
+ <Button variant="primary" color="primary" className="w-fit">
<Link href={getServiceVersionsPath(project?.ref)}>Upgrade database</Link>
</Button>
</Admonition>
diff --git a/apps/studio/components/interfaces/Integrations/Vault/Secrets/AddNewSecretModal.tsx b/apps/studio/components/interfaces/Integrations/Vault/Secrets/AddNewSecretModal.tsx
index be8e83c5ead..5fb82298d32 100644
--- a/apps/studio/components/interfaces/Integrations/Vault/Secrets/AddNewSecretModal.tsx
+++ b/apps/studio/components/interfaces/Integrations/Vault/Secrets/AddNewSecretModal.tsx
@@ -177,6 +177,7 @@ export const AddNewSecretModal = () => {
Cancel
</Button>
<Button
+ variant="primary"
form={formId}
type="submit"
disabled={!isDirty || isSubmitting}
diff --git a/apps/studio/components/interfaces/Integrations/Vault/Secrets/EditSecretModal.tsx b/apps/studio/components/interfaces/Integrations/Vault/Secrets/EditSecretModal.tsx
index c4ac1a3aa38..31c05ad377f 100644
--- a/apps/studio/components/interfaces/Integrations/Vault/Secrets/EditSecretModal.tsx
+++ b/apps/studio/components/interfaces/Integrations/Vault/Secrets/EditSecretModal.tsx
@@ -222,7 +222,7 @@ export const EditSecretModal = () => {
>
Cancel
</Button>
- <Button form={formId} type="submit" loading={isSubmitting}>
+ <Button variant="primary" form={formId} type="submit" loading={isSubmitting}>
Update secret
</Button>
</DialogFooter>
diff --git a/apps/studio/components/interfaces/Integrations/Webhooks/OverviewTab.tsx b/apps/studio/components/interfaces/Integrations/Webhooks/OverviewTab.tsx
index ad20f391e68..180aa4630dc 100644
--- a/apps/studio/components/interfaces/Integrations/Webhooks/OverviewTab.tsx
+++ b/apps/studio/components/interfaces/Integrations/Webhooks/OverviewTab.tsx
@@ -70,6 +70,7 @@ const WebhooksContent = () => {
endpoint
</p>
<ButtonTooltip
+ variant="primary"
className="mt-2 w-fit"
onClick={() => enableHooksForProject()}
disabled={isEnablingHooks}
diff --git a/apps/studio/components/interfaces/JwtSecrets/jwt-secret-keys-table/create-key-dialog.tsx b/apps/studio/components/interfaces/JwtSecrets/jwt-secret-keys-table/create-key-dialog.tsx
index 95ab9af0a74..27f96770223 100644
--- a/apps/studio/components/interfaces/JwtSecrets/jwt-secret-keys-table/create-key-dialog.tsx
+++ b/apps/studio/components/interfaces/JwtSecrets/jwt-secret-keys-table/create-key-dialog.tsx
@@ -240,6 +240,7 @@ export const CreateKeyDialog = ({
side="top"
>
<Button
+ variant="primary"
onClick={() => handleAddNewStandbyKey()}
disabled={
isPendingMutation || !!privateKeyMessage || (isBYOK && privateKey.trim().length === 0)
diff --git a/apps/studio/components/interfaces/JwtSecrets/jwt-secret-keys-table/index.tsx b/apps/studio/components/interfaces/JwtSecrets/jwt-secret-keys-table/index.tsx
index 5c738b7804a..186aca27401 100644
--- a/apps/studio/components/interfaces/JwtSecrets/jwt-secret-keys-table/index.tsx
+++ b/apps/studio/components/interfaces/JwtSecrets/jwt-secret-keys-table/index.tsx
@@ -412,6 +412,7 @@ export const JWTSecretKeysTable = () => {
</DialogSection>
<DialogFooter>
<Button
+ variant="primary"
loading={isMigrating}
onClick={() => migrateJWTSecret({ projectRef: projectRef! })}
>
diff --git a/apps/studio/components/interfaces/JwtSecrets/jwt-secret-keys-table/rotate-key-dialog.tsx b/apps/studio/components/interfaces/JwtSecrets/jwt-secret-keys-table/rotate-key-dialog.tsx
index ba98c1f3a9d..740d6a60657 100644
--- a/apps/studio/components/interfaces/JwtSecrets/jwt-secret-keys-table/rotate-key-dialog.tsx
+++ b/apps/studio/components/interfaces/JwtSecrets/jwt-secret-keys-table/rotate-key-dialog.tsx
@@ -275,6 +275,7 @@ export function RotateKeyDialog({
</DialogSection>
<DialogFooter>
<Button
+ variant="primary"
onClick={() => mutate({ projectRef, keyId: standbyKey.id, status: 'in_use' })}
disabled={
isLoadingEdgeFunctions ||
diff --git a/apps/studio/components/interfaces/Organization/CloudMarketplace/NewAwsMarketplaceOrgModal.tsx b/apps/studio/components/interfaces/Organization/CloudMarketplace/NewAwsMarketplaceOrgModal.tsx
index 11c34f1ea1c..6b1540ebfa4 100644
--- a/apps/studio/components/interfaces/Organization/CloudMarketplace/NewAwsMarketplaceOrgModal.tsx
+++ b/apps/studio/components/interfaces/Organization/CloudMarketplace/NewAwsMarketplaceOrgModal.tsx
@@ -103,6 +103,7 @@ const AwsMarketplaceOrgCreationDialog = ({
</DialogSection>
<DialogFooter>
<Button
+ variant="primary"
form={CREATE_AWS_MANAGED_ORG_FORM_ID}
type="submit"
loading={isCreatingOrganization}
diff --git a/apps/studio/components/interfaces/Organization/InvoicesSettings/InvoicePayButton.tsx b/apps/studio/components/interfaces/Organization/InvoicesSettings/InvoicePayButton.tsx
index ac587ac19c2..2821bcc2bbb 100644
--- a/apps/studio/components/interfaces/Organization/InvoicesSettings/InvoicePayButton.tsx
+++ b/apps/studio/components/interfaces/Organization/InvoicesSettings/InvoicePayButton.tsx
@@ -22,7 +22,7 @@ const InvoicePayButton = ({ slug, invoiceId }: InvoicePayButtonProps) => {
}
return (
- <Button onClick={onPayNow} loading={isPending} disabled={isPending}>
+ <Button variant="primary" onClick={onPayNow} loading={isPending} disabled={isPending}>
Pay now
</Button>
)
diff --git a/apps/studio/components/interfaces/Organization/OAuthApps/PublishAppSidePanel/index.tsx b/apps/studio/components/interfaces/Organization/OAuthApps/PublishAppSidePanel/index.tsx
index 0d47c4163ca..b71e7d95556 100644
--- a/apps/studio/components/interfaces/Organization/OAuthApps/PublishAppSidePanel/index.tsx
+++ b/apps/studio/components/interfaces/Organization/OAuthApps/PublishAppSidePanel/index.tsx
@@ -430,7 +430,12 @@ export const PublishAppSidePanel = ({
options={{ enabled: visible && !isSubmitting }}
side="top"
>
- <Button type="submit" loading={isSubmitting} disabled={isSubmitting}>
+ <Button
+ variant="primary"
+ type="submit"
+ loading={isSubmitting}
+ disabled={isSubmitting}
+ >
Confirm
</Button>
</Shortcut>
diff --git a/apps/studio/components/interfaces/Organization/ProjectClaim/benefits.tsx b/apps/studio/components/interfaces/Organization/ProjectClaim/benefits.tsx
index ea02a4096a8..ca31302ee82 100644
--- a/apps/studio/components/interfaces/Organization/ProjectClaim/benefits.tsx
+++ b/apps/studio/components/interfaces/Organization/ProjectClaim/benefits.tsx
@@ -81,7 +81,7 @@ export const ProjectClaimBenefits = ({
</ul>
</div>
<div className="flex justify-center sticky bottom-0">
- <Button size="medium" onClick={onContinue}>
+ <Button variant="primary" size="medium" onClick={onContinue}>
Continue connection
</Button>
</div>
diff --git a/apps/studio/components/interfaces/Organization/ProjectClaim/confirm.tsx b/apps/studio/components/interfaces/Organization/ProjectClaim/confirm.tsx
index fe125a2f998..ce7711e7c7a 100644
--- a/apps/studio/components/interfaces/Organization/ProjectClaim/confirm.tsx
+++ b/apps/studio/components/interfaces/Organization/ProjectClaim/confirm.tsx
@@ -255,7 +255,13 @@ export const ProjectClaimConfirm = ({
</div>
</div>
<div className="flex justify-center sticky bottom-0">
- <Button size="medium" loading={isLoading} disabled={isLoading} onClick={onClaimProject}>
+ <Button
+ variant="primary"
+ size="medium"
+ loading={isLoading}
+ disabled={isLoading}
+ onClick={onClaimProject}
+ >
Claim project {projectClaim?.project?.name}
</Button>
</div>
diff --git a/apps/studio/components/interfaces/Organization/TeamSettings/UpdateRolesPanel/UpdateRolesPanel.tsx b/apps/studio/components/interfaces/Organization/TeamSettings/UpdateRolesPanel/UpdateRolesPanel.tsx
index f019cfdb6e7..b7890076ab2 100644
--- a/apps/studio/components/interfaces/Organization/TeamSettings/UpdateRolesPanel/UpdateRolesPanel.tsx
+++ b/apps/studio/components/interfaces/Organization/TeamSettings/UpdateRolesPanel/UpdateRolesPanel.tsx
@@ -373,6 +373,7 @@ export const UpdateRolesPanel = ({ visible, member, onClose }: UpdateRolesPanelP
Cancel
</Button>
<Button
+ variant="primary"
loading={false}
disabled={!canSaveRoles || hasNoChanges}
onClick={() => {
diff --git a/apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksEndpointSheet.tsx b/apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksEndpointSheet.tsx
index e9791b6b9c7..4bd85376cc0 100644
--- a/apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksEndpointSheet.tsx
+++ b/apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksEndpointSheet.tsx
@@ -590,7 +590,7 @@ export const PlatformWebhooksEndpointSheet = ({
label={mode === 'create' ? 'Create endpoint' : 'Save changes'}
onTrigger={() => form.handleSubmit(onSubmit)()}
>
- <Button form="platform-webhook-endpoint-form" type="submit">
+ <Button variant="primary" form="platform-webhook-endpoint-form" type="submit">
{mode === 'create' ? 'Create endpoint' : 'Save changes'}
</Button>
</Shortcut>
diff --git a/apps/studio/components/interfaces/ProjectCreation/ProjectCreationFooter.tsx b/apps/studio/components/interfaces/ProjectCreation/ProjectCreationFooter.tsx
index 07862967130..5f09b4ffcf0 100644
--- a/apps/studio/components/interfaces/ProjectCreation/ProjectCreationFooter.tsx
+++ b/apps/studio/components/interfaces/ProjectCreation/ProjectCreationFooter.tsx
@@ -228,6 +228,7 @@ export const ProjectCreationFooter = ({
)}
<Button
+ variant="primary"
type="submit"
loading={isCreatingNewProject || isSuccessNewProject}
disabled={!canCreateProject}
diff --git a/apps/studio/components/interfaces/QueryPerformance/IndexAdvisor/IndexSuggestionIcon.tsx b/apps/studio/components/interfaces/QueryPerformance/IndexAdvisor/IndexSuggestionIcon.tsx
index b22ac3967b0..4766e8a5ae7 100644
--- a/apps/studio/components/interfaces/QueryPerformance/IndexAdvisor/IndexSuggestionIcon.tsx
+++ b/apps/studio/components/interfaces/QueryPerformance/IndexAdvisor/IndexSuggestionIcon.tsx
@@ -136,7 +136,12 @@ export const IndexSuggestionIcon = ({
>
View details
</Button>
- <Button onClick={handleCreateIndex} loading={isCreatingIndex} disabled={isCreatingIndex}>
+ <Button
+ variant="primary"
+ onClick={handleCreateIndex}
+ loading={isCreatingIndex}
+ disabled={isCreatingIndex}
+ >
Create index
</Button>
</div>
diff --git a/apps/studio/components/interfaces/QueryPerformance/QueryDetail.tsx b/apps/studio/components/interfaces/QueryPerformance/QueryDetail.tsx
index 4f267a61bef..30b078e3f08 100644
--- a/apps/studio/components/interfaces/QueryPerformance/QueryDetail.tsx
+++ b/apps/studio/components/interfaces/QueryPerformance/QueryDetail.tsx
@@ -112,7 +112,7 @@ export const QueryDetail = ({ selectedRow, onClickViewSuggestion, onClose }: Que
Adding an index will help this query execute faster
</AlertDescription>
<AlertDescription>
- <Button className="mt-3" onClick={() => onClickViewSuggestion()}>
+ <Button variant="primary" className="mt-3" onClick={() => onClickViewSuggestion()}>
View suggestion
</Button>
</AlertDescription>
diff --git a/apps/studio/components/interfaces/QuerySources/LogsCustomRangeDialog.tsx b/apps/studio/components/interfaces/QuerySources/LogsCustomRangeDialog.tsx
index 76ba203f1df..ed1e00dd201 100644
--- a/apps/studio/components/interfaces/QuerySources/LogsCustomRangeDialog.tsx
+++ b/apps/studio/components/interfaces/QuerySources/LogsCustomRangeDialog.tsx
@@ -48,7 +48,7 @@ export const LogsCustomRangeDialog = ({
<Button variant="default" onClick={() => onOpenChange(false)}>
Cancel
</Button>
- <Button disabled={!canApply} onClick={handleApply}>
+ <Button variant="primary" disabled={!canApply} onClick={handleApply}>
Apply
</Button>
</DialogFooter>
diff --git a/apps/studio/components/interfaces/Realtime/Inspector/RealtimeFilterPopover/index.tsx b/apps/studio/components/interfaces/Realtime/Inspector/RealtimeFilterPopover/index.tsx
index 6692d6e0267..99f3cf5d012 100644
--- a/apps/studio/components/interfaces/Realtime/Inspector/RealtimeFilterPopover/index.tsx
+++ b/apps/studio/components/interfaces/Realtime/Inspector/RealtimeFilterPopover/index.tsx
@@ -255,7 +255,9 @@ export const RealtimeFilterPopover = ({
<Button variant="default" onClick={() => setOpen(false)}>
Cancel
</Button>
- <Button onClick={() => setApplyConfigOpen(true)}>Apply</Button>
+ <Button variant="primary" onClick={() => setApplyConfigOpen(true)}>
+ Apply
+ </Button>
</div>
</PopoverContent>
</Popover>
diff --git a/apps/studio/components/interfaces/Reports/CreateReportModal.tsx b/apps/studio/components/interfaces/Reports/CreateReportModal.tsx
index c1045a8f3dd..e0125b029b1 100644
--- a/apps/studio/components/interfaces/Reports/CreateReportModal.tsx
+++ b/apps/studio/components/interfaces/Reports/CreateReportModal.tsx
@@ -156,7 +156,12 @@ export const CreateReportModal = ({ visible, onCancel, afterSubmit }: CreateRepo
<Button type="reset" variant="default" onClick={handleCancel} disabled={isCreating}>
Cancel
</Button>
- <Button type="submit" loading={isCreating} disabled={isCreating || !isDirty}>
+ <Button
+ variant="primary"
+ type="submit"
+ loading={isCreating}
+ disabled={isCreating || !isDirty}
+ >
Create report
</Button>
</DialogFooter>
diff --git a/apps/studio/components/interfaces/Reports/UpdateModal.tsx b/apps/studio/components/interfaces/Reports/UpdateModal.tsx
index 3e463ee3d49..aa0a6ffe537 100644
--- a/apps/studio/components/interfaces/Reports/UpdateModal.tsx
+++ b/apps/studio/components/interfaces/Reports/UpdateModal.tsx
@@ -133,7 +133,12 @@ export const UpdateCustomReportModal = ({
<Button type="reset" variant="default" onClick={handleCancel} disabled={isUpdating}>
Cancel
</Button>
- <Button type="submit" loading={isUpdating} disabled={isUpdating || !isDirty}>
+ <Button
+ variant="primary"
+ type="submit"
+ loading={isUpdating}
+ disabled={isUpdating || !isDirty}
+ >
Save custom report
</Button>
</DialogFooter>
diff --git a/apps/studio/components/interfaces/SQLEditor/RenameQueryModal.tsx b/apps/studio/components/interfaces/SQLEditor/RenameQueryModal.tsx
index 68452878e89..a930b4f577e 100644
--- a/apps/studio/components/interfaces/SQLEditor/RenameQueryModal.tsx
+++ b/apps/studio/components/interfaces/SQLEditor/RenameQueryModal.tsx
@@ -226,7 +226,12 @@ const RenameQueryForm = ({ snippet, onCancel, onComplete }: RenameQueryFormProps
<Button type="reset" variant="default" onClick={onCancel} disabled={isSubmitting}>
Cancel
</Button>
- <Button type="submit" loading={isSubmitting} disabled={isSubmitting || !isDirty}>
+ <Button
+ variant="primary"
+ type="submit"
+ loading={isSubmitting}
+ disabled={isSubmitting || !isDirty}
+ >
Rename query
</Button>
</DialogFooter>
diff --git a/apps/studio/components/interfaces/SQLEditor/SqlEditorManualSaveNoticeDialog.tsx b/apps/studio/components/interfaces/SQLEditor/SqlEditorManualSaveNoticeDialog.tsx
index fbbf96cff05..dfacf6edeb8 100644
--- a/apps/studio/components/interfaces/SQLEditor/SqlEditorManualSaveNoticeDialog.tsx
+++ b/apps/studio/components/interfaces/SQLEditor/SqlEditorManualSaveNoticeDialog.tsx
@@ -77,7 +77,9 @@ export const SqlEditorManualSaveNoticeDialog = () => {
</DialogSection>
<DialogFooter>
- <Button onClick={() => setIsNoticeDismissed(true)}>Understood</Button>
+ <Button variant="primary" onClick={() => setIsNoticeDismissed(true)}>
+ Understood
+ </Button>
</DialogFooter>
</DialogContent>
</Dialog>
diff --git a/apps/studio/components/interfaces/Settings/Database/NetworkRestrictions/AddRestrictionModal.tsx b/apps/studio/components/interfaces/Settings/Database/NetworkRestrictions/AddRestrictionModal.tsx
index 49b093f8fe6..86ca4cd55a8 100644
--- a/apps/studio/components/interfaces/Settings/Database/NetworkRestrictions/AddRestrictionModal.tsx
+++ b/apps/studio/components/interfaces/Settings/Database/NetworkRestrictions/AddRestrictionModal.tsx
@@ -267,7 +267,13 @@ const AddRestrictionModal = ({
<Button variant="default" disabled={isApplying} onClick={() => onClose()}>
Cancel
</Button>
- <Button form={formId} type="submit" loading={isApplying} disabled={isApplying}>
+ <Button
+ variant="primary"
+ form={formId}
+ type="submit"
+ loading={isApplying}
+ disabled={isApplying}
+ >
Save restriction
</Button>
</DialogFooter>
diff --git a/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainActivate.tsx b/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainActivate.tsx
index 018e17b728e..40b694516a2 100644
--- a/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainActivate.tsx
+++ b/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainActivate.tsx
@@ -104,6 +104,7 @@ export const CustomDomainActivate = ({ projectRef, customDomain }: CustomDomainA
Cancel
</Button>
<Button
+ variant="primary"
disabled={isDeleting}
onClick={() => setIsActivateConfirmModalVisible(true)}
className="self-end"
diff --git a/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainVerify.tsx b/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainVerify.tsx
index 0f12e3d8628..ba3346362c1 100644
--- a/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainVerify.tsx
+++ b/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainVerify.tsx
@@ -184,6 +184,7 @@ export const CustomDomainVerify = () => {
Cancel
</Button>
<Button
+ variant="primary"
icon={<RefreshCw />}
onClick={onReverifyCustomDomain}
loading={!isValidating && isReverifyLoading}
diff --git a/apps/studio/components/interfaces/Settings/General/Infrastructure/ProjectUpgradeAlert.tsx b/apps/studio/components/interfaces/Settings/General/Infrastructure/ProjectUpgradeAlert.tsx
index c3ca078fe07..4a06a54e88c 100644
--- a/apps/studio/components/interfaces/Settings/General/Infrastructure/ProjectUpgradeAlert.tsx
+++ b/apps/studio/components/interfaces/Settings/General/Infrastructure/ProjectUpgradeAlert.tsx
@@ -283,7 +283,12 @@ export const ProjectUpgradeAlert = () => {
>
Cancel
</Button>
- <Button type="submit" disabled={isUpgrading} loading={isUpgrading}>
+ <Button
+ variant="primary"
+ type="submit"
+ disabled={isUpgrading}
+ loading={isUpgrading}
+ >
Confirm upgrade
</Button>
</DialogFooter>
diff --git a/apps/studio/components/interfaces/Settings/General/TransferProjectPanel/TransferProjectButton.tsx b/apps/studio/components/interfaces/Settings/General/TransferProjectPanel/TransferProjectButton.tsx
index 9d49006f54f..ea74ea2409c 100644
--- a/apps/studio/components/interfaces/Settings/General/TransferProjectPanel/TransferProjectButton.tsx
+++ b/apps/studio/components/interfaces/Settings/General/TransferProjectPanel/TransferProjectButton.tsx
@@ -287,6 +287,7 @@ export const TransferProjectButton = () => {
Cancel
</Button>
<Button
+ variant="primary"
onClick={() => handleTransferProject()}
disabled={
!transferPreviewData || !transferPreviewData.valid || isTransferring || !selectedOrg
diff --git a/apps/studio/components/interfaces/Settings/Infrastructure/ReadReplicas/ReadReplicaForm/index.tsx b/apps/studio/components/interfaces/Settings/Infrastructure/ReadReplicas/ReadReplicaForm/index.tsx
index 7c0eb03f574..0cf2587a2ff 100644
--- a/apps/studio/components/interfaces/Settings/Infrastructure/ReadReplicas/ReadReplicaForm/index.tsx
+++ b/apps/studio/components/interfaces/Settings/Infrastructure/ReadReplicas/ReadReplicaForm/index.tsx
@@ -143,7 +143,12 @@ export const ReadReplicaForm = ({
<Button disabled={isSettingUp} variant="default" onClick={onClose}>
Cancel
</Button>
- <Button disabled={!canDeployReplica} loading={isSettingUp} onClick={onSubmit}>
+ <Button
+ variant="primary"
+ disabled={!canDeployReplica}
+ loading={isSettingUp}
+ onClick={onSubmit}
+ >
Add replica
</Button>
</DialogFooter>
diff --git a/apps/studio/components/interfaces/Settings/Integrations/AWSPrivateLink/AWSPrivateLinkForm.tsx b/apps/studio/components/interfaces/Settings/Integrations/AWSPrivateLink/AWSPrivateLinkForm.tsx
index e08aed73315..316f2e817fc 100644
--- a/apps/studio/components/interfaces/Settings/Integrations/AWSPrivateLink/AWSPrivateLinkForm.tsx
+++ b/apps/studio/components/interfaces/Settings/Integrations/AWSPrivateLink/AWSPrivateLinkForm.tsx
@@ -269,7 +269,7 @@ export const AWSPrivateLinkForm = ({
>
Cancel
</Button>
- <Button form={FORM_ID} type="submit" loading={isPending}>
+ <Button variant="primary" form={FORM_ID} type="submit" loading={isPending}>
Add connection
</Button>
</>
diff --git a/apps/studio/components/interfaces/Settings/Logs/Logs.DatePickers.tsx b/apps/studio/components/interfaces/Settings/Logs/Logs.DatePickers.tsx
index bceb9af95fb..2deadf6e71f 100644
--- a/apps/studio/components/interfaces/Settings/Logs/Logs.DatePickers.tsx
+++ b/apps/studio/components/interfaces/Settings/Logs/Logs.DatePickers.tsx
@@ -431,7 +431,9 @@ export const LogsDatePicker = ({
>
Today
</Button>
- <Button onClick={handleApply}>Apply</Button>
+ <Button variant="primary" onClick={handleApply}>
+ Apply
+ </Button>
</div>
</div>
</PopoverContent>
diff --git a/apps/studio/components/interfaces/Settings/Logs/Logs.UpdateSavedQueryModal.tsx b/apps/studio/components/interfaces/Settings/Logs/Logs.UpdateSavedQueryModal.tsx
index 469e0645d7b..ed6c2803ee9 100644
--- a/apps/studio/components/interfaces/Settings/Logs/Logs.UpdateSavedQueryModal.tsx
+++ b/apps/studio/components/interfaces/Settings/Logs/Logs.UpdateSavedQueryModal.tsx
@@ -97,7 +97,12 @@ export const UpdateSavedQueryModal = ({
<Button type="reset" variant="default" onClick={handleCancel} disabled={isSubmitting}>
Cancel
</Button>
- <Button type="submit" loading={isSubmitting} disabled={isSubmitting || !isDirty}>
+ <Button
+ variant="primary"
+ type="submit"
+ loading={isSubmitting}
+ disabled={isSubmitting || !isDirty}
+ >
Save query
</Button>
</DialogFooter>
diff --git a/apps/studio/components/interfaces/Settings/Logs/UpgradePrompt.tsx b/apps/studio/components/interfaces/Settings/Logs/UpgradePrompt.tsx
index 7d717067421..b935c819738 100644
--- a/apps/studio/components/interfaces/Settings/Logs/UpgradePrompt.tsx
+++ b/apps/studio/components/interfaces/Settings/Logs/UpgradePrompt.tsx
@@ -88,7 +88,7 @@ const UpgradePrompt: React.FC<Props> = ({
<Button variant="default" onClick={() => setShowUpgradePrompt(false)}>
Close
</Button>
- <Button asChild size="tiny">
+ <Button variant="primary" asChild size="tiny">
<Link
href={`/org/${organization?.slug}/billing?panel=subscriptionPlan&source=${source}`}
>
diff --git a/apps/studio/components/interfaces/SignIn/ForgotPasswordWizard.tsx b/apps/studio/components/interfaces/SignIn/ForgotPasswordWizard.tsx
index 265926f1da5..6eb2bbc8013 100644
--- a/apps/studio/components/interfaces/SignIn/ForgotPasswordWizard.tsx
+++ b/apps/studio/components/interfaces/SignIn/ForgotPasswordWizard.tsx
@@ -99,7 +99,14 @@ const ConfirmResetCodeForm = ({ email }: { email: string }) => {
<div className="border-t border-overlay-border" />
- <Button block form="code-input-form" type="submit" size="medium" loading={isLoading}>
+ <Button
+ variant="primary"
+ block
+ form="code-input-form"
+ type="submit"
+ size="medium"
+ loading={isLoading}
+ >
Confirm reset code
</Button>
</form>
@@ -188,6 +195,7 @@ const ForgotPasswordForm = ({ onSuccess }: { onSuccess: (email: string) => void
<div className="border-t border-overlay-border" />
<Button
+ variant="primary"
block
form="forgot-password-form"
type="submit"
diff --git a/apps/studio/components/interfaces/SignIn/ResetPasswordForm.tsx b/apps/studio/components/interfaces/SignIn/ResetPasswordForm.tsx
index 09b425ef49b..e1396ebbcb0 100644
--- a/apps/studio/components/interfaces/SignIn/ResetPasswordForm.tsx
+++ b/apps/studio/components/interfaces/SignIn/ResetPasswordForm.tsx
@@ -141,6 +141,7 @@ export const ResetPasswordForm = () => {
<Separator className="bg-border" />
<Button
+ variant="primary"
block
type="submit"
size="medium"
diff --git a/apps/studio/components/interfaces/SignIn/SignInForm.tsx b/apps/studio/components/interfaces/SignIn/SignInForm.tsx
index 258af90808a..e602bf4db9a 100644
--- a/apps/studio/components/interfaces/SignIn/SignInForm.tsx
+++ b/apps/studio/components/interfaces/SignIn/SignInForm.tsx
@@ -221,7 +221,14 @@ export const SignInForm = () => {
</div>
<LastSignInWrapper type="email">
- <Button block form={formId} type="submit" size="large" loading={isSubmitting}>
+ <Button
+ variant="primary"
+ block
+ form={formId}
+ type="submit"
+ size="large"
+ loading={isSubmitting}
+ >
Sign in
</Button>
</LastSignInWrapper>
diff --git a/apps/studio/components/interfaces/SignIn/SignInMfaForm.tsx b/apps/studio/components/interfaces/SignIn/SignInMfaForm.tsx
index 934998d089a..ce516318cb4 100644
--- a/apps/studio/components/interfaces/SignIn/SignInMfaForm.tsx
+++ b/apps/studio/components/interfaces/SignIn/SignInMfaForm.tsx
@@ -208,6 +208,7 @@ export const SignInMfaForm = ({ context = 'sign-in' }: SignInMfaFormProps) => {
Cancel
</Button>
<Button
+ variant="primary"
block
form={formId}
type="submit"
diff --git a/apps/studio/components/interfaces/SignIn/SignInSSOForm.tsx b/apps/studio/components/interfaces/SignIn/SignInSSOForm.tsx
index 908f42e204c..18e278a8aa5 100644
--- a/apps/studio/components/interfaces/SignIn/SignInSSOForm.tsx
+++ b/apps/studio/components/interfaces/SignIn/SignInSSOForm.tsx
@@ -127,7 +127,14 @@ export const SignInSSOForm = () => {
/>
</div>
- <Button block form={formId} type="submit" size="large" loading={isSubmitting}>
+ <Button
+ variant="primary"
+ block
+ form={formId}
+ type="submit"
+ size="large"
+ loading={isSubmitting}
+ >
Sign in
</Button>
</form>
diff --git a/apps/studio/components/interfaces/SignIn/SignUpForm.tsx b/apps/studio/components/interfaces/SignIn/SignUpForm.tsx
index 084d79aad5c..85612d22649 100644
--- a/apps/studio/components/interfaces/SignIn/SignUpForm.tsx
+++ b/apps/studio/components/interfaces/SignIn/SignUpForm.tsx
@@ -225,6 +225,7 @@ export const SignUpForm = ({ onSuccess }: { onSuccess?: () => void }) => {
</div>
<Button
+ variant="primary"
block
form={formId}
type="submit"
diff --git a/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/CreateTable/CreateTableSheet.tsx b/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/CreateTable/CreateTableSheet.tsx
index 26de06b2d34..5514f0d3924 100644
--- a/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/CreateTable/CreateTableSheet.tsx
+++ b/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/CreateTable/CreateTableSheet.tsx
@@ -267,7 +267,7 @@ export const CreateTableSheet = ({ open, onOpenChange }: CreateTableSheetProps)
>
Cancel
</Button>
- <Button form={formId} type="submit" loading={isCreating}>
+ <Button variant="primary" form={formId} type="submit" loading={isCreating}>
Create table
</Button>
</SheetFooter>
diff --git a/apps/studio/components/interfaces/Storage/AnalyticsBuckets/CreateAnalyticsBucketForm.tsx b/apps/studio/components/interfaces/Storage/AnalyticsBuckets/CreateAnalyticsBucketForm.tsx
index 25446fb5eb1..50c33cab86b 100644
--- a/apps/studio/components/interfaces/Storage/AnalyticsBuckets/CreateAnalyticsBucketForm.tsx
+++ b/apps/studio/components/interfaces/Storage/AnalyticsBuckets/CreateAnalyticsBucketForm.tsx
@@ -260,6 +260,7 @@ export const CreateAnalyticsBucketForm = ({
Cancel
</Button>
<Button
+ variant="primary"
form={formId}
type="submit"
loading={isCreating}
diff --git a/apps/studio/components/interfaces/Storage/BucketFilePickerDialog/BucketFilePickerPreviewPane.tsx b/apps/studio/components/interfaces/Storage/BucketFilePickerDialog/BucketFilePickerPreviewPane.tsx
index 82f8ec6aa29..742b2312ae6 100644
--- a/apps/studio/components/interfaces/Storage/BucketFilePickerDialog/BucketFilePickerPreviewPane.tsx
+++ b/apps/studio/components/interfaces/Storage/BucketFilePickerDialog/BucketFilePickerPreviewPane.tsx
@@ -130,6 +130,7 @@ export const PreviewPane = ({ onSelect }: { onSelect: (url: string) => void }) =
{/* Preview Header */}
<div className="flex w-full justify-end items-center gap-2 sticky top-0 bg-surface-100 p-4 border-b">
<Button
+ variant="primary"
size="tiny"
onClick={() => onSelect(previewUrl!)}
disabled={!previewUrl}
diff --git a/apps/studio/components/interfaces/Storage/CreateBucketModal.tsx b/apps/studio/components/interfaces/Storage/CreateBucketModal.tsx
index 793038eb43b..19632128c74 100644
--- a/apps/studio/components/interfaces/Storage/CreateBucketModal.tsx
+++ b/apps/studio/components/interfaces/Storage/CreateBucketModal.tsx
@@ -376,6 +376,7 @@ export const CreateBucketModal = ({ open, onOpenChange }: CreateBucketModalProps
Cancel
</Button>
<Button
+ variant="primary"
form={formId}
type="submit"
loading={isCreatingBucket}
diff --git a/apps/studio/components/interfaces/Storage/EditBucketModal.tsx b/apps/studio/components/interfaces/Storage/EditBucketModal.tsx
index a2a723364ae..dfd21ed7fcd 100644
--- a/apps/studio/components/interfaces/Storage/EditBucketModal.tsx
+++ b/apps/studio/components/interfaces/Storage/EditBucketModal.tsx
@@ -413,7 +413,7 @@ export const EditBucketModal = ({ visible, bucket, onClose }: EditBucketModalPro
<Button variant="default" disabled={isUpdating} onClick={closeModal}>
Cancel
</Button>
- <Button form={formId} type="submit" loading={isUpdating}>
+ <Button variant="primary" form={formId} type="submit" loading={isUpdating}>
Save
</Button>
</DialogFooter>
diff --git a/apps/studio/components/interfaces/Storage/StorageSettings/CreateCredentialModal.tsx b/apps/studio/components/interfaces/Storage/StorageSettings/CreateCredentialModal.tsx
index 4353218abc6..39c81b40112 100644
--- a/apps/studio/components/interfaces/Storage/StorageSettings/CreateCredentialModal.tsx
+++ b/apps/studio/components/interfaces/Storage/StorageSettings/CreateCredentialModal.tsx
@@ -172,7 +172,7 @@ export const CreateCredentialModal = ({ visible, onOpenChange }: CreateCredentia
/>
</DialogSection>
<DialogFooter>
- <Button type="submit" loading={isCreating}>
+ <Button variant="primary" type="submit" loading={isCreating}>
Create access key
</Button>
</DialogFooter>
diff --git a/apps/studio/components/interfaces/Storage/VectorBuckets/CreateVectorBucketDialog.tsx b/apps/studio/components/interfaces/Storage/VectorBuckets/CreateVectorBucketDialog.tsx
index 9746240bb6a..071165359de 100644
--- a/apps/studio/components/interfaces/Storage/VectorBuckets/CreateVectorBucketDialog.tsx
+++ b/apps/studio/components/interfaces/Storage/VectorBuckets/CreateVectorBucketDialog.tsx
@@ -223,7 +223,7 @@ export const CreateVectorBucketDialog = ({
<Button variant="default" disabled={isLoading} onClick={() => setVisible(false)}>
Cancel
</Button>
- <Button form={formId} type="submit" loading={isLoading}>
+ <Button variant="primary" form={formId} type="submit" loading={isLoading}>
Create
</Button>
</DialogFooter>
diff --git a/apps/studio/components/interfaces/Storage/VectorBuckets/CreateVectorTableSheet.tsx b/apps/studio/components/interfaces/Storage/VectorBuckets/CreateVectorTableSheet.tsx
index 7ce70529753..71ebc952cdf 100644
--- a/apps/studio/components/interfaces/Storage/VectorBuckets/CreateVectorTableSheet.tsx
+++ b/apps/studio/components/interfaces/Storage/VectorBuckets/CreateVectorTableSheet.tsx
@@ -396,6 +396,7 @@ export const CreateVectorTableSheet = ({ bucketName }: CreateVectorTableSheetPro
Cancel
</Button>
<Button
+ variant="primary"
form={formId}
type="submit"
loading={isCreating}
diff --git a/apps/studio/components/interfaces/Support/ProjectAndPlanInfo.tsx b/apps/studio/components/interfaces/Support/ProjectAndPlanInfo.tsx
index 344a85671b3..2796dbdb965 100644
--- a/apps/studio/components/interfaces/Support/ProjectAndPlanInfo.tsx
+++ b/apps/studio/components/interfaces/Support/ProjectAndPlanInfo.tsx
@@ -199,7 +199,7 @@ export const PlanExpectationInfoContent = ({
{shouldShowUpgradeActions && (
<div className="flex flex-wrap gap-2 pt-1">
- <Button asChild size="tiny">
+ <Button variant="primary" asChild size="tiny">
<Link
href={`/org/${orgSlug}/billing?panel=subscriptionPlan&source=planSupportExpectationInfoBox`}
>
diff --git a/apps/studio/components/interfaces/Support/SubmitButton.tsx b/apps/studio/components/interfaces/Support/SubmitButton.tsx
index 3a1a020c997..cae6cb28685 100644
--- a/apps/studio/components/interfaces/Support/SubmitButton.tsx
+++ b/apps/studio/components/interfaces/Support/SubmitButton.tsx
@@ -21,6 +21,7 @@ export function SubmitButton({
return (
<div className={cn('flex flex-col gap-3', className)}>
<Button
+ variant="primary"
type="submit"
size="small"
block
diff --git a/apps/studio/components/layouts/Navigation/LayoutHeader/FeedbackDropdown/FeedbackWidget.tsx b/apps/studio/components/layouts/Navigation/LayoutHeader/FeedbackDropdown/FeedbackWidget.tsx
index 8532b9db1a6..90ed45d204b 100644
--- a/apps/studio/components/layouts/Navigation/LayoutHeader/FeedbackDropdown/FeedbackWidget.tsx
+++ b/apps/studio/components/layouts/Navigation/LayoutHeader/FeedbackDropdown/FeedbackWidget.tsx
@@ -309,6 +309,7 @@ export const FeedbackWidget = ({ onClose, onSwitchToIssueOptions }: FeedbackWidg
onChange={onFilesUpload}
/>
<Button
+ variant="primary"
disabled={feedback.length === 0 || isSending}
loading={isSending}
onClick={() => {
diff --git a/apps/studio/components/layouts/ProjectLayout/RestoringState.tsx b/apps/studio/components/layouts/ProjectLayout/RestoringState.tsx
index d90039e9f04..35900878d44 100644
--- a/apps/studio/components/layouts/ProjectLayout/RestoringState.tsx
+++ b/apps/studio/components/layouts/ProjectLayout/RestoringState.tsx
@@ -135,7 +135,12 @@ export const RestoringState = () => {
</div>
</div>
<div className="border-t border-overlay flex items-center justify-end py-4 px-8">
- <Button disabled={isConfirming} loading={isConfirming} onClick={onConfirm}>
+ <Button
+ variant="primary"
+ disabled={isConfirming}
+ loading={isConfirming}
+ onClick={onConfirm}
+ >
Return to project
</Button>
</div>
diff --git a/apps/studio/components/layouts/ProjectLayout/UpgradingState/index.tsx b/apps/studio/components/layouts/ProjectLayout/UpgradingState/index.tsx
index a909b77457f..83043a6c1a5 100644
--- a/apps/studio/components/layouts/ProjectLayout/UpgradingState/index.tsx
+++ b/apps/studio/components/layouts/ProjectLayout/UpgradingState/index.tsx
@@ -89,7 +89,12 @@ export const UpgradingState = () => {
</p>
</div>
<div className="mx-auto">
- <Button loading={loading} disabled={loading} onClick={refetchProjectDetails}>
+ <Button
+ variant="primary"
+ loading={loading}
+ disabled={loading}
+ onClick={refetchProjectDetails}
+ >
Return to project
</Button>
</div>
@@ -119,7 +124,12 @@ export const UpgradingState = () => {
Contact support
</SupportLink>
</Button>
- <Button loading={loading} disabled={loading} onClick={refetchProjectDetails}>
+ <Button
+ variant="primary"
+ loading={loading}
+ disabled={loading}
+ onClick={refetchProjectDetails}
+ >
Return to project
</Button>
</div>
diff --git a/apps/studio/components/ui/AutoEnableRLSNotice.tsx b/apps/studio/components/ui/AutoEnableRLSNotice.tsx
index 170e91a9115..31cc83fee46 100644
--- a/apps/studio/components/ui/AutoEnableRLSNotice.tsx
+++ b/apps/studio/components/ui/AutoEnableRLSNotice.tsx
@@ -160,6 +160,7 @@ const CreateEnsureRLSTriggerDialog = ({ iconOnly }: { iconOnly?: boolean }) => {
Cancel
</Button>
<ButtonTooltip
+ variant="primary"
disabled={!canCreateTriggers}
loading={isCreating}
onClick={handleCreateTrigger}
diff --git a/apps/studio/components/ui/DatePicker/index.tsx b/apps/studio/components/ui/DatePicker/index.tsx
index bf42d1be0ab..e9086944082 100644
--- a/apps/studio/components/ui/DatePicker/index.tsx
+++ b/apps/studio/components/ui/DatePicker/index.tsx
@@ -321,7 +321,9 @@ export function DatePicker({
Clear
</Button>
)}
- <Button onClick={() => handleSubmit()}>Apply</Button>
+ <Button variant="primary" onClick={() => handleSubmit()}>
+ Apply
+ </Button>
</div>
</>
</PopoverContent>
diff --git a/apps/studio/components/ui/EditorPanel/SaveSnippetDialog.tsx b/apps/studio/components/ui/EditorPanel/SaveSnippetDialog.tsx
index 0536a008a27..c8278d9f47c 100644
--- a/apps/studio/components/ui/EditorPanel/SaveSnippetDialog.tsx
+++ b/apps/studio/components/ui/EditorPanel/SaveSnippetDialog.tsx
@@ -108,7 +108,7 @@ export const SaveSnippetDialog = ({ open, sql, onOpenChange, onSave }: SaveSnipp
<Button variant="default" onClick={() => onOpenChange(false)}>
Cancel
</Button>
- <Button disabled={!name.trim()} onClick={handleSave}>
+ <Button variant="primary" disabled={!name.trim()} onClick={handleSave}>
Save snippet
</Button>
</DialogFooter>
diff --git a/apps/studio/components/ui/RequestUpgradeToBillingOwners.tsx b/apps/studio/components/ui/RequestUpgradeToBillingOwners.tsx
index 8eeebba0016..51fd2776169 100644
--- a/apps/studio/components/ui/RequestUpgradeToBillingOwners.tsx
+++ b/apps/studio/components/ui/RequestUpgradeToBillingOwners.tsx
@@ -239,7 +239,7 @@ export const RequestUpgradeToBillingOwners = ({
<Button variant="default" disabled={isSubmitting} onClick={() => setOpen(false)}>
Cancel
</Button>
- <Button type="submit" form={formId} loading={isSubmitting}>
+ <Button variant="primary" type="submit" form={formId} loading={isSubmitting}>
Submit request
</Button>
</DialogFooter>
diff --git a/apps/studio/hooks/use-check-latest-deploy.tsx b/apps/studio/hooks/use-check-latest-deploy.tsx
index 3240dce6cd8..1bf32df8664 100644
--- a/apps/studio/hooks/use-check-latest-deploy.tsx
+++ b/apps/studio/hooks/use-check-latest-deploy.tsx
@@ -25,6 +25,7 @@ const DeployCheckToast = ({ id }: { id: string | number }) => {
Not now
</Button>
<Button
+ variant="primary"
onClick={() => {
// Document requests carry no skew-protection pin (only built
// asset URLs do — see skewProtectionDpl in vite.config.ts), so a
diff --git a/apps/studio/pages/404.tsx b/apps/studio/pages/404.tsx
index 4e3294aac23..ce6ab57ec9e 100644
--- a/apps/studio/pages/404.tsx
+++ b/apps/studio/pages/404.tsx
@@ -58,7 +58,7 @@ const Error404: NextPage = ({}) => {
</p>
</div>
<div className="flex items-center space-x-4">
- <Button asChild size="small">
+ <Button variant="primary" asChild size="small">
<Link href="/projects">Head back</Link>
</Button>
</div>
diff --git a/apps/studio/pages/500.tsx b/apps/studio/pages/500.tsx
index a3e42efd702..20a351755a5 100644
--- a/apps/studio/pages/500.tsx
+++ b/apps/studio/pages/500.tsx
@@ -53,7 +53,7 @@ const Error500: NextPage = () => {
</div>
<div className="flex items-center space-x-4">
{router.pathname !== '/organizations' ? (
- <Button asChild>
+ <Button variant="primary" asChild>
<Link
href={
!!lastVisitedOrganization ? `/org/${lastVisitedOrganization}` : '/organizations'
@@ -63,7 +63,9 @@ const Error500: NextPage = () => {
</Link>
</Button>
) : (
- <Button onClick={onClickLogout}>Head back</Button>
+ <Button variant="primary" onClick={onClickLogout}>
+ Head back
+ </Button>
)}
<Button variant="secondary" asChild>
<SupportLink>Submit a support request</SupportLink>
diff --git a/apps/studio/pages/integrations/vercel/[slug]/deploy-button/new-project.tsx b/apps/studio/pages/integrations/vercel/[slug]/deploy-button/new-project.tsx
index ba81df5aeec..a01393288f3 100644
--- a/apps/studio/pages/integrations/vercel/[slug]/deploy-button/new-project.tsx
+++ b/apps/studio/pages/integrations/vercel/[slug]/deploy-button/new-project.tsx
@@ -218,7 +218,9 @@ export function VercelConnectionError({
<Button asChild variant="default">
<Link href={`/project/${projectRef}`}>Open project</Link>
</Button>
- <Button onClick={onRetry}>Retry connection</Button>
+ <Button variant="primary" onClick={onRetry}>
+ Retry connection
+ </Button>
</div>
</div>
)
diff --git a/apps/studio/pages/project/[ref]/database/column-privileges.tsx b/apps/studio/pages/project/[ref]/database/column-privileges.tsx
index 52c19b1c475..78b6a3a2ae8 100644
--- a/apps/studio/pages/project/[ref]/database/column-privileges.tsx
+++ b/apps/studio/pages/project/[ref]/database/column-privileges.tsx
@@ -335,7 +335,7 @@ const PrivilegesPage: NextPageWithLayout = () => {
privileges here
</p>
{selectedSchema === 'public' && (
- <Button asChild className="mt-4">
+ <Button variant="primary" asChild className="mt-4">
<Link href={`/project/${ref}/editor`}>Create a new table</Link>
</Button>
)}
diff --git a/apps/studio/pages/project/[ref]/functions/[functionSlug]/code.tsx b/apps/studio/pages/project/[ref]/functions/[functionSlug]/code.tsx
index 36f6dcaae2e..a9caf52da8e 100644
--- a/apps/studio/pages/project/[ref]/functions/[functionSlug]/code.tsx
+++ b/apps/studio/pages/project/[ref]/functions/[functionSlug]/code.tsx
@@ -214,6 +214,7 @@ const CodePage = () => {
{IS_PLATFORM && (
<div className="flex items-center bg-background-muted justify-end p-4 border-t bg-surface-100 shrink-0">
<ButtonTooltip
+ variant="primary"
loading={isDeploying}
size="medium"
disabled={!canDeployFunction || files.length === 0 || isLoadingFiles}
diff --git a/apps/studio/pages/project/[ref]/functions/new.tsx b/apps/studio/pages/project/[ref]/functions/new.tsx
index 1aa3c89de65..14f527e7777 100644
--- a/apps/studio/pages/project/[ref]/functions/new.tsx
+++ b/apps/studio/pages/project/[ref]/functions/new.tsx
@@ -409,6 +409,7 @@ const NewFunctionPage = () => {
/>
</div>
<Button
+ variant="primary"
loading={isDeploying}
size="medium"
disabled={files.length === 0 || isDeploying}
diff --git a/apps/studio/tests/pages/sign-up.test.tsx b/apps/studio/tests/pages/sign-up.test.tsx
index d305bae88f1..00b113fd796 100644
--- a/apps/studio/tests/pages/sign-up.test.tsx
+++ b/apps/studio/tests/pages/sign-up.test.tsx
@@ -18,7 +18,7 @@ const mocks = vi.hoisted(() => ({
vi.mock('@/components/interfaces/SignIn/SignInWithExternalProvider', () => ({
SignInWithExternalProvider: ({ provider }: { provider: ExternalIdentityProviderConfig }) => (
- <Button>Continue with {provider.displayName}</Button>
+ <Button variant="primary">Continue with {provider.displayName}</Button>
),
}))
@@ -29,6 +29,7 @@ vi.mock('@/components/interfaces/SignIn/SignUpForm', () => ({
return (
<>
<Button
+ variant="primary"
onClick={() => {
setIsSubmitted(true)
onSuccess?.()
diff --git a/apps/www/app/(home)/_components/CTASection.tsx b/apps/www/app/(home)/_components/CTASection.tsx
index 2c8baf2412d..1e15823b1e5 100644
--- a/apps/www/app/(home)/_components/CTASection.tsx
+++ b/apps/www/app/(home)/_components/CTASection.tsx
@@ -19,7 +19,7 @@ export function CTASection() {
<span className="text-foreground block sm:inline"> scale to millions</span>
</h2>
<div className="flex items-center gap-2">
- <Button asChild size="medium">
+ <Button variant="primary" asChild size="medium">
<Link
href={getDashboardCtaHref(isLoggedIn)}
onClick={() =>
diff --git a/apps/www/app/(home)/_components/Hero.tsx b/apps/www/app/(home)/_components/Hero.tsx
index 58adeb119c1..c2ee0898b68 100644
--- a/apps/www/app/(home)/_components/Hero.tsx
+++ b/apps/www/app/(home)/_components/Hero.tsx
@@ -26,7 +26,7 @@ export function Hero() {
</p>
</div>
<div className="flex items-center gap-2">
- <Button asChild size="medium">
+ <Button variant="primary" asChild size="medium">
<Link
href={getDashboardCtaHref(isLoggedIn)}
onClick={() =>
diff --git a/apps/www/app/partners/catalog/IntegrationsContent.tsx b/apps/www/app/partners/catalog/IntegrationsContent.tsx
index 1c6de11d98f..6b4b18cb67e 100644
--- a/apps/www/app/partners/catalog/IntegrationsContent.tsx
+++ b/apps/www/app/partners/catalog/IntegrationsContent.tsx
@@ -203,7 +203,7 @@ export default function IntegrationsContent({
{metaDescription}
</p>
</div>
- <Button asChild size="tiny" className="shrink-0">
+ <Button variant="primary" asChild size="tiny" className="shrink-0">
<Link href="https://forms.supabase.com/partner">Apply as a Partner</Link>
</Button>
</div>
@@ -461,7 +461,7 @@ export default function IntegrationsContent({
className="mx-auto max-w-2xl flex flex-col items-center gap-6 py-32 px-6 text-center"
>
<h2 className="h2 text-balance">Interested in partnering with Supabase?</h2>
- <Button asChild size="medium" iconRight={<ArrowRight />}>
+ <Button variant="primary" asChild size="medium" iconRight={<ArrowRight />}>
<Link href="https://forms.supabase.com/partner">Apply as a Partner</Link>
</Button>
</div>
diff --git a/apps/www/app/partners/catalog/[slug]/PartnerCatalogDetail.tsx b/apps/www/app/partners/catalog/[slug]/PartnerCatalogDetail.tsx
index 1eaf596567f..fdc3eb63033 100644
--- a/apps/www/app/partners/catalog/[slug]/PartnerCatalogDetail.tsx
+++ b/apps/www/app/partners/catalog/[slug]/PartnerCatalogDetail.tsx
@@ -142,7 +142,12 @@ export default function PartnerCatalogDetail({ partner, serializedListings }: Pr
<h1 className="h1 mb-0!">{partner.title}</h1>
</div>
{installHref && (
- <Button asChild size="medium" iconRight={<ArrowUpRight strokeWidth={1.5} />}>
+ <Button
+ variant="primary"
+ asChild
+ size="medium"
+ iconRight={<ArrowUpRight strokeWidth={1.5} />}
+ >
<a href={installHref} target="_blank" rel="noreferrer">
{activeListing.publishedInMarketplace
? 'Install integration'
@@ -295,7 +300,7 @@ export default function PartnerCatalogDetail({ partner, serializedListings }: Pr
</div>
</div>
{installHref && (
- <Button asChild>
+ <Button variant="primary" asChild>
<a href={installHref} target="_blank" rel="noreferrer">
{activeListing.publishedInMarketplace
? 'Install integration'
@@ -311,7 +316,7 @@ export default function PartnerCatalogDetail({ partner, serializedListings }: Pr
<div className="border-t bg-background">
<SectionContainerWithCn className="mx-auto max-w-2xl flex flex-col items-center gap-6 py-24 px-6 text-center">
<h2 className="h2 text-balance">Interested in partnering with Supabase?</h2>
- <Button asChild size="medium">
+ <Button variant="primary" asChild size="medium">
<Link href="/partners#become-a-partner">Become a partner</Link>
</Button>
</SectionContainerWithCn>
diff --git a/apps/www/app/state-of-startups/StateOfStartups2026Content.tsx b/apps/www/app/state-of-startups/StateOfStartups2026Content.tsx
index 58841f11ded..4f1f21b7798 100644
--- a/apps/www/app/state-of-startups/StateOfStartups2026Content.tsx
+++ b/apps/www/app/state-of-startups/StateOfStartups2026Content.tsx
@@ -301,7 +301,7 @@ const CTABanner = forwardRef<HTMLElement>((props, ref) => {
</p>
</div>
<div className="flex items-center justify-center gap-2 mt-4">
- <Button asChild size="medium">
+ <Button variant="primary" asChild size="medium">
<Link
href="https://supabase.com/dashboard"
onClick={() =>
diff --git a/apps/www/app/state-of-startups/register/RegisterContent.tsx b/apps/www/app/state-of-startups/register/RegisterContent.tsx
index 3b1898524bc..e10d6a90760 100644
--- a/apps/www/app/state-of-startups/register/RegisterContent.tsx
+++ b/apps/www/app/state-of-startups/register/RegisterContent.tsx
@@ -105,7 +105,12 @@ export function RegisterContent() {
We want to know what building at startups looks like from where you sit.
</p>
- <Button asChild size="medium" iconRight={<ArrowRight size={12} />}>
+ <Button
+ variant="primary"
+ asChild
+ size="medium"
+ iconRight={<ArrowRight size={12} />}
+ >
<Link href="https://supabase.typeform.com/to/p2XiROl8" target="_blank">
Take the Survey
</Link>
diff --git a/apps/www/components/CTABanner/index.tsx b/apps/www/components/CTABanner/index.tsx
index 01532b181c4..e1ade8f0e3b 100644
--- a/apps/www/components/CTABanner/index.tsx
+++ b/apps/www/components/CTABanner/index.tsx
@@ -30,7 +30,7 @@ const CTABanner = ({ darkerBg, className }: Props) => {
</h2>
</div>
<div className="flex items-center justify-center gap-2 col-span-12 mt-4">
- <Button asChild size="medium">
+ <Button variant="primary" asChild size="medium">
<Link
href={getDashboardCtaHref(isLoggedIn)}
onClick={() =>
diff --git a/apps/www/components/CTASection.tsx b/apps/www/components/CTASection.tsx
index 2c8baf2412d..1e15823b1e5 100644
--- a/apps/www/components/CTASection.tsx
+++ b/apps/www/components/CTASection.tsx
@@ -19,7 +19,7 @@ export function CTASection() {
<span className="text-foreground block sm:inline"> scale to millions</span>
</h2>
<div className="flex items-center gap-2">
- <Button asChild size="medium">
+ <Button variant="primary" asChild size="medium">
<Link
href={getDashboardCtaHref(isLoggedIn)}
onClick={() =>
diff --git a/apps/www/components/Contribute/SimilarSolvedThreads.tsx b/apps/www/components/Contribute/SimilarSolvedThreads.tsx
index 03fbd22002e..f4935208f1b 100644
--- a/apps/www/components/Contribute/SimilarSolvedThreads.tsx
+++ b/apps/www/components/Contribute/SimilarSolvedThreads.tsx
@@ -301,7 +301,12 @@ export const SimilarSolvedThreads = ({ threads, parentThreadId }: SimilarSolvedT
</div>
</DialogSection>
<DialogFooter>
- <Button onClick={persistAndCloseDialog} disabled={isSubmitting} loading={isSubmitting}>
+ <Button
+ variant="primary"
+ onClick={persistAndCloseDialog}
+ disabled={isSubmitting}
+ loading={isSubmitting}
+ >
{isSubmitting ? 'Submitting...' : 'Submit feedback'}
</Button>
</DialogFooter>
diff --git a/apps/www/components/Error404.tsx b/apps/www/components/Error404.tsx
index 5032d9d7eda..f2791658180 100644
--- a/apps/www/components/Error404.tsx
+++ b/apps/www/components/Error404.tsx
@@ -51,7 +51,7 @@ const Error404 = () => {
</p>
</div>
<div className="flex items-center space-x-4">
- <Button asChild size="small">
+ <Button variant="primary" asChild size="small">
<Link href="/">Head back</Link>
</Button>
</div>
diff --git a/apps/www/components/Events/new/EventBanner.tsx b/apps/www/components/Events/new/EventBanner.tsx
index c259a9f9d4b..577d9f739e5 100644
--- a/apps/www/components/Events/new/EventBanner.tsx
+++ b/apps/www/components/Events/new/EventBanner.tsx
@@ -61,7 +61,12 @@ export function EventBanner() {
</Button>
)}
{featuredEvent.link && (
- <Button size="medium" asChild iconRight={<ArrowRightIcon size={14} />}>
+ <Button
+ variant="primary"
+ size="medium"
+ asChild
+ iconRight={<ArrowRightIcon size={14} />}
+ >
<Link
href={featuredEvent.link.href}
target={featuredEvent.link.target}
diff --git a/apps/www/components/Forms/ApplyToSupaSquadForm.tsx b/apps/www/components/Forms/ApplyToSupaSquadForm.tsx
index 564ed774f31..4296fde950a 100644
--- a/apps/www/components/Forms/ApplyToSupaSquadForm.tsx
+++ b/apps/www/components/Forms/ApplyToSupaSquadForm.tsx
@@ -551,7 +551,13 @@ const FormContent = memo(function FormContent({
>
Cancel
</Button>
- <Button size="small" type="submit" disabled={isSubmitting} className="flex-1">
+ <Button
+ variant="primary"
+ size="small"
+ type="submit"
+ disabled={isSubmitting}
+ className="flex-1"
+ >
{isSubmitting ? <>Submitting...</> : <>Submit Application</>}
</Button>
</div>
diff --git a/apps/www/components/Forms/RequestADemoForm.tsx b/apps/www/components/Forms/RequestADemoForm.tsx
index 67656f9cf9d..bd3c1dba9fe 100644
--- a/apps/www/components/Forms/RequestADemoForm.tsx
+++ b/apps/www/components/Forms/RequestADemoForm.tsx
@@ -254,6 +254,7 @@ const RequestADemoForm: FC<Props> = ({ className }) => {
<Separator className="col-span-full" />
<Button
+ variant="primary"
block
type="submit"
size="small"
diff --git a/apps/www/components/Forms/TalkToPartnershipTeamForm.tsx b/apps/www/components/Forms/TalkToPartnershipTeamForm.tsx
index 4c0dfaaa905..a21479952dc 100644
--- a/apps/www/components/Forms/TalkToPartnershipTeamForm.tsx
+++ b/apps/www/components/Forms/TalkToPartnershipTeamForm.tsx
@@ -244,6 +244,7 @@ const TalkToPartnershipTeamForm: FC<Props> = ({ className }) => {
<Separator className="col-span-full" />
<Button
+ variant="primary"
block
type="submit"
size="small"
diff --git a/apps/www/components/Nav/MobileMenu.tsx b/apps/www/components/Nav/MobileMenu.tsx
index afe39a84422..a5c2c842a70 100644
--- a/apps/www/components/Nav/MobileMenu.tsx
+++ b/apps/www/components/Nav/MobileMenu.tsx
@@ -292,7 +292,7 @@ export const MobileMenu = ({ open, setOpen, menu }: Props) => {
})
}
>
- <Button block asChild>
+ <Button variant="primary" block asChild>
<a type={undefined} className="h-10 py-4">
Start your project
</a>
diff --git a/apps/www/components/Nav/index.tsx b/apps/www/components/Nav/index.tsx
index 8464a96d02e..d2051647a65 100644
--- a/apps/www/components/Nav/index.tsx
+++ b/apps/www/components/Nav/index.tsx
@@ -180,7 +180,7 @@ const Nav = ({ hideNavbar, stickyNavbar = true }: Props) => {
Sign in
</Link>
</Button>
- <Button className="hidden lg:block" asChild>
+ <Button variant="primary" className="hidden lg:block" asChild>
<Link
href="https://supabase.com/dashboard/sign-up"
onClick={() =>
diff --git a/apps/www/components/NewFeatureCard.tsx b/apps/www/components/NewFeatureCard.tsx
index 7ac528d4a1d..82870975654 100644
--- a/apps/www/components/NewFeatureCard.tsx
+++ b/apps/www/components/NewFeatureCard.tsx
@@ -43,7 +43,7 @@ const NewFeatureCard = (props: CardProps) => (
<div className="flex items-center flex-wrap gap-1">
{props.ctas.map((cta: any) => (
- <Button type={cta.type} asChild>
+ <Button variant={cta.type} asChild>
<Link href={cta.href} target={cta.target}>
{cta.label}
</Link>
diff --git a/apps/www/components/Pricing/UpgradePlan.tsx b/apps/www/components/Pricing/UpgradePlan.tsx
index 50f70c5177a..103e15894b5 100644
--- a/apps/www/components/Pricing/UpgradePlan.tsx
+++ b/apps/www/components/Pricing/UpgradePlan.tsx
@@ -141,7 +141,7 @@ const UpgradePlan = ({ organizations = [], onClick, size = 'large', planId }: Up
<DialogClose asChild>
<Button variant="outline">Cancel</Button>
</DialogClose>
- <Button disabled={!value} asChild>
+ <Button variant="primary" disabled={!value} asChild>
<Link
href={
value === 'new-organization'
diff --git a/apps/www/components/Sections/EnterpriseCta.tsx b/apps/www/components/Sections/EnterpriseCta.tsx
index 3ea3c7dd201..b247055bd01 100644
--- a/apps/www/components/Sections/EnterpriseCta.tsx
+++ b/apps/www/components/Sections/EnterpriseCta.tsx
@@ -1,7 +1,7 @@
+import SectionContainer from '~/components/Layouts/SectionContainer'
import Link from 'next/link'
import React from 'react'
import { Button } from 'ui'
-import SectionContainer from '~/components/Layouts/SectionContainer'
const EnterpriseCta = () => {
return (
@@ -16,7 +16,7 @@ const EnterpriseCta = () => {
and managing embeddings at scale.
</p>
<div className="w-full mt-4 flex items-center justify-center text-center gap-4">
- <Button asChild size="medium">
+ <Button variant="primary" asChild size="medium">
<Link href="https://forms.supabase.com/enterprise">Fill out Enterprise Form</Link>
</Button>
</div>
diff --git a/apps/www/components/Sections/ProductHeader.tsx b/apps/www/components/Sections/ProductHeader.tsx
index 9dc87137734..32618266e48 100644
--- a/apps/www/components/Sections/ProductHeader.tsx
+++ b/apps/www/components/Sections/ProductHeader.tsx
@@ -53,7 +53,7 @@ const ProductHeader = (props: Types) => {
})}
</div>
<div className="flex flex-row md:flex-row md:items-center">
- <Button asChild size="medium">
+ <Button variant="primary" asChild size="medium">
<Link
href={getDashboardCtaHref(isLoggedIn)}
onClick={() =>
diff --git a/apps/www/components/Sections/ProductHeaderCentered.tsx b/apps/www/components/Sections/ProductHeaderCentered.tsx
index 60dfe711ec9..61b69b84ebf 100644
--- a/apps/www/components/Sections/ProductHeaderCentered.tsx
+++ b/apps/www/components/Sections/ProductHeaderCentered.tsx
@@ -81,7 +81,7 @@ const ProductHeaderCentered = (props: Types) => (
</div>
<div className="w-full sm:w-auto flex flex-col items-stretch sm:flex-row pt-2 sm:items-center gap-2">
{props.cta && (
- <Button size="medium" iconRight={props.cta.icon} asChild>
+ <Button variant="primary" size="medium" iconRight={props.cta.icon} asChild>
<Link href={props.cta.link} as={props.cta.link}>
{props.cta.label ?? 'Start for free'}
</Link>
diff --git a/apps/www/components/Sections/ProductModulesHeader.tsx b/apps/www/components/Sections/ProductModulesHeader.tsx
index 882e5fe62a2..bde6d07f9cf 100644
--- a/apps/www/components/Sections/ProductModulesHeader.tsx
+++ b/apps/www/components/Sections/ProductModulesHeader.tsx
@@ -1,9 +1,10 @@
+import styles from '~/styles/animations.module.css'
+import { PlayCircle } from 'lucide-react'
import Image from 'next/image'
import Link from 'next/link'
import { Button, cn } from 'ui'
-import styles from '~/styles/animations.module.css'
+
import AnnouncementBadge from '../Announcement/Badge'
-import { PlayCircle } from 'lucide-react'
interface Types {
h1: string | React.ReactNode
@@ -102,7 +103,7 @@ const ProductModulesHeader = (props: Types) => (
</div>
<div className="w-full sm:w-auto flex flex-col items-stretch sm:flex-row pt-2 sm:items-center gap-2">
{props.cta && (
- <Button size="small" asChild>
+ <Button variant="primary" size="small" asChild>
<Link href={props.cta.link} as={props.cta.link}>
{props.cta.label ?? 'Start for free'}
</Link>
diff --git a/apps/www/components/Solutions/CtaSection.tsx b/apps/www/components/Solutions/CtaSection.tsx
index e8996601ea1..362014210d6 100644
--- a/apps/www/components/Solutions/CtaSection.tsx
+++ b/apps/www/components/Solutions/CtaSection.tsx
@@ -43,7 +43,7 @@ const CtaSection = ({
<h2 className="text-foreground-light text-2xl lg:text-3xl leading-tight">{title}</h2>
{subtitle && <p className="text-foreground-light text-lg">{subtitle}</p>}
<div className="flex flex-wrap gap-3 pt-4">
- <Button asChild size="medium" icon={primaryCta.icon}>
+ <Button variant="primary" asChild size="medium" icon={primaryCta.icon}>
<Link href={primaryCta.url} target={primaryCta.target}>
{primaryCta.label}
</Link>
diff --git a/apps/www/components/Supasquad/CtaSection.tsx b/apps/www/components/Supasquad/CtaSection.tsx
index dd3b474cce8..fcf586d0959 100644
--- a/apps/www/components/Supasquad/CtaSection.tsx
+++ b/apps/www/components/Supasquad/CtaSection.tsx
@@ -36,7 +36,7 @@ const CtaSection = ({ id, title, subtitle, primaryCta, secondaryCta, className }
<h2 className="text-foreground-light text-2xl lg:text-3xl leading-tight">{title}</h2>
{subtitle && <p className="text-foreground-light text-lg">{subtitle}</p>}
<div className="flex flex-wrap gap-3 pt-4">
- <Button asChild size="medium" icon={primaryCta.icon}>
+ <Button variant="primary" asChild size="medium" icon={primaryCta.icon}>
<Link href={primaryCta.url} target={primaryCta.target}>
{primaryCta.label}
</Link>
diff --git a/apps/www/pages/company.tsx b/apps/www/pages/company.tsx
index 6574e23327e..d5d43581ed6 100644
--- a/apps/www/pages/company.tsx
+++ b/apps/www/pages/company.tsx
@@ -91,7 +91,9 @@ const Team = () => {
</div>
<div className=" col-span-4 pt-8 md:mt-0 md:text-right">
<a href="https://supabase.com/careers">
- <Button size="medium">Join the team</Button>
+ <Button variant="primary" size="medium">
+ Join the team
+ </Button>
</a>
</div>
</div>
diff --git a/apps/www/pages/opt-out/[ref].tsx b/apps/www/pages/opt-out/[ref].tsx
index 57e57ed5604..6643ec162c3 100644
--- a/apps/www/pages/opt-out/[ref].tsx
+++ b/apps/www/pages/opt-out/[ref].tsx
@@ -227,7 +227,12 @@ export default function OptOutPage() {
)}
</div>
- <Button type="submit" size="small" disabled={submissionType === 'success'}>
+ <Button
+ variant="primary"
+ type="submit"
+ size="small"
+ disabled={submissionType === 'success'}
+ >
Report spam
</Button>
<FormMessage
diff --git a/apps/www/pages/partners/index.tsx b/apps/www/pages/partners/index.tsx
index 5c0fbe29a1d..7ab1a5e6501 100644
--- a/apps/www/pages/partners/index.tsx
+++ b/apps/www/pages/partners/index.tsx
@@ -206,7 +206,7 @@ const Partners = () => {
Reach out to partner with Supabase
</h2>
<div className="w-full mt-4 flex items-center justify-center text-center gap-4">
- <Button asChild size="medium">
+ <Button variant="primary" asChild size="medium">
<Link href="https://forms.supabase.com/partner" tabIndex={-1}>
Become a Partner
</Link>
diff --git a/apps/www/pages/state-of-startups-2025.tsx b/apps/www/pages/state-of-startups-2025.tsx
index 86a674fbd1a..b033e1c36e1 100644
--- a/apps/www/pages/state-of-startups-2025.tsx
+++ b/apps/www/pages/state-of-startups-2025.tsx
@@ -311,7 +311,7 @@ const CTABanner = forwardRef<HTMLElement>((props, ref) => {
</p>
</div>
<div className="flex items-center justify-center gap-2 mt-4">
- <Button asChild size="medium">
+ <Button variant="primary" asChild size="medium">
<Link
href="https://supabase.com/dashboard"
onClick={() =>
diff --git a/packages/ui-patterns/src/PrivacySettings/index.tsx b/packages/ui-patterns/src/PrivacySettings/index.tsx
index b13fdd0c5c3..94360595949 100644
--- a/packages/ui-patterns/src/PrivacySettings/index.tsx
+++ b/packages/ui-patterns/src/PrivacySettings/index.tsx
@@ -94,7 +94,9 @@ export const PrivacySettings = ({
</DialogSection>
<DialogFooter>
<Button onClick={() => setIsOpen(false)}>Cancel</Button>
- <Button onClick={handleConfirmPreferences}>Confirm</Button>
+ <Button variant="primary" onClick={handleConfirmPreferences}>
+ Confirm
+ </Button>
</DialogFooter>
</DialogContent>
</Dialog>
diff --git a/packages/ui-patterns/src/form/FormLayout2.tsx b/packages/ui-patterns/src/form/FormLayout2.tsx
index 4c039ad47c0..a8bbc05605f 100644
--- a/packages/ui-patterns/src/form/FormLayout2.tsx
+++ b/packages/ui-patterns/src/form/FormLayout2.tsx
@@ -420,7 +420,9 @@ export const Page = () => {
</SheetSection>
<SheetFooter>
<Button variant="default">Cancel</Button>
- <Button type="submit">Submit</Button>
+ <Button variant="primary" type="submit">
+ Submit
+ </Button>
</SheetFooter>
</form>
</Form>
diff --git a/packages/ui-patterns/src/form/KeyValueFieldArray/KeyValueFieldArray.test.tsx b/packages/ui-patterns/src/form/KeyValueFieldArray/KeyValueFieldArray.test.tsx
index ae164bdf23d..f6265b7019c 100644
--- a/packages/ui-patterns/src/form/KeyValueFieldArray/KeyValueFieldArray.test.tsx
+++ b/packages/ui-patterns/src/form/KeyValueFieldArray/KeyValueFieldArray.test.tsx
@@ -78,7 +78,9 @@ const KeyValueForm = ({
addActions={addActions}
removeLabel="Remove header"
/>
- <Button type="submit">Submit</Button>
+ <Button variant="primary" type="submit">
+ Submit
+ </Button>
</form>
</Form>
)
@@ -110,7 +112,9 @@ const NameValueForm = ({
addLabel="Add header"
removeLabel="Remove header"
/>
- <Button type="submit">Submit</Button>
+ <Button variant="primary" type="submit">
+ Submit
+ </Button>
</form>
</Form>
)
diff --git a/packages/ui-patterns/src/form/SingleValueFieldArray/SingleValueFieldArray.test.tsx b/packages/ui-patterns/src/form/SingleValueFieldArray/SingleValueFieldArray.test.tsx
index 73acdaf5845..28c5e1eaf3b 100644
--- a/packages/ui-patterns/src/form/SingleValueFieldArray/SingleValueFieldArray.test.tsx
+++ b/packages/ui-patterns/src/form/SingleValueFieldArray/SingleValueFieldArray.test.tsx
@@ -57,7 +57,9 @@ const ValueForm = ({
removeLabel="Remove URL"
minimumRows={1}
/>
- <Button type="submit">Submit</Button>
+ <Button variant="primary" type="submit">
+ Submit
+ </Button>
</form>
</Form>
)
@@ -84,7 +86,9 @@ const NameForm = ({ onSubmit = vi.fn() }: { onSubmit?: (values: NameFormValues)
removeLabel="Remove domain"
minimumRows={1}
/>
- <Button type="submit">Submit</Button>
+ <Button variant="primary" type="submit">
+ Submit
+ </Button>
</form>
</Form>
)
diff --git a/packages/ui/src/components/Button/Button.test.tsx b/packages/ui/src/components/Button/Button.test.tsx
index 9eaed6e17f1..054b933258d 100644
--- a/packages/ui/src/components/Button/Button.test.tsx
+++ b/packages/ui/src/components/Button/Button.test.tsx
@@ -26,6 +26,22 @@ describe('#Button', () => {
expect(() => wrapper.unmount()).not.toThrow()
})
+ it('should default to the neutral default variant', () => {
+ render(<Button>Neutral</Button>)
+
+ const button = screen.getByRole('button', { name: 'Neutral' })
+ expect(button.className).toContain('bg-background')
+ expect(button.className).toContain('hover:bg-popover')
+ expect(button.className).not.toContain('bg-brand-400')
+ })
+
+ it('should allow an explicit primary variant override', () => {
+ render(<Button variant="primary">Primary</Button>)
+
+ const button = screen.getByRole('button', { name: 'Primary' })
+ expect(button.className).toContain('bg-brand-400')
+ })
+
it('should render different text', () => {
const wrapper = render(<Button>Button</Button>)
diff --git a/packages/ui/src/components/Button/Button.tsx b/packages/ui/src/components/Button/Button.tsx
index 8ead5f9ba92..201a793ffe9 100644
--- a/packages/ui/src/components/Button/Button.tsx
+++ b/packages/ui/src/components/Button/Button.tsx
@@ -191,7 +191,7 @@ const Button = forwardRef<HTMLButtonElement, ButtonProps>(
{
asChild = false,
size = 'tiny',
- variant = 'primary',
+ variant = 'default',
children,
loading,
block,