@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

main
ts 48 lines 2.24 KB
Raw
1 import type { ClerkProviderProps } from "@clerk/react";
2
3 // Scoped to auth flows: UserProfile reuses formButtonPrimary for destructive confirmations.
4 const authFlowElements = {
5 formButtonPrimary:
6 "border-primary bg-primary bg-none text-primary-foreground shadow-xs shadow-primary/24 hover:bg-primary/90 focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background",
7 };
8
9 export const clerkAppearance = {
10 // index.css orders this layer below components and utilities so the element classes below win.
11 cssLayerName: "clerk",
12 options: { shimmer: false },
13 variables: {
14 borderRadius: "0.5rem",
15 // Clerk reuses its primary color for filled buttons and bare links.
16 colorPrimary: "var(--update-foreground)",
17 colorPrimaryForeground: "var(--card)",
18 colorDanger: "var(--error)",
19 colorSuccess: "var(--success)",
20 colorWarning: "var(--warning)",
21 colorNeutral: "var(--contrast-foreground)",
22 colorForeground: "var(--contrast-foreground)",
23 // Clerk's muted token fills the footer; derive an opaque surface instead of stock dark translucency.
24 colorMuted: "color-mix(in srgb, var(--card) 98%, var(--contrast-foreground))",
25 colorMutedForeground: "var(--contrast-muted-foreground)",
26 colorBackground: "var(--card)",
27 colorInputForeground: "var(--contrast-foreground)",
28 colorInput: "var(--secondary)",
29 colorRing: "var(--ring)",
30 },
31 elements: {
32 modalBackdrop: "dialog-backdrop z-50",
33 cardBox: "dialog-glass rounded-2xl border",
34 card: "border-0 bg-transparent shadow-none",
35 footer: "bg-transparent bg-none",
36 header: "items-start text-start",
37 headerTitle: "text-xl font-semibold",
38 headerSubtitle: "text-sm text-muted-foreground",
39 buttonArrowIcon: "hidden",
40 formFieldErrorText: { color: "var(--error-foreground)" },
41 formFieldWarningText: { color: "var(--warning-foreground)" },
42 formFieldSuccessText: { color: "var(--success-foreground)" },
43 otpCodeFieldErrorText: { color: "var(--error-foreground)" },
44 otpCodeFieldSuccessText: { color: "var(--success-foreground)" },
45 },
46 signIn: { elements: authFlowElements },
47 signUp: { elements: authFlowElements },
48 } satisfies NonNullable<ClerkProviderProps["appearance"]>;