videogen/apps/web/lib/clerk-appearance.ts
caelum0x d56639a594
Some checks are pending
build-images / api (push) Waiting to run
build-images / worker-gpu (push) Waiting to run
build-images / web (push) Waiting to run
codeql / Analyze (javascript-typescript) (push) Waiting to run
codeql / Analyze (python) (push) Waiting to run
perf / API hot-path micro-smoke (budgeted) (push) Waiting to run
perf / Desktop engine crates (release build check) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (comfy-workflow-schema) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (effects-core) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (eventbus-types) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (growth-analytics) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (trends-schema) (push) Waiting to run
vision2026-ci / API phase modules (ruff + pytest) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (provider-adapter-kit) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (publishing-connectors) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (render-core) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (shot-template-schema) (push) Waiting to run
vision2026-ci / Python SDK resource tests (push) Waiting to run
vision2026-ci / Desktop engine crates (test + clippy + fmt) (push) Waiting to run
vision2026-ci / Alembic upgrade + drift check (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (caption-engine) (push) Waiting to run
Menivor — open source release (MIT), free to use and fork
Paid, hosted product at menivor.com, now retired as a company project.
Fresh squashed history of the cleaned working tree (secret-scanned,
no .env, no customer data, no outreach logs). Built on
MoneyPrinterTurbo (MIT, harry0703) — see NOTICE.
2026-12-04 02:10:26 +03:00

96 lines
2.9 KiB
TypeScript

import { dark } from "@clerk/themes";
/**
* Clerk theming for the Apple-design system (see app/globals.css): dark
* system surfaces, one accent (Apple blue), no gradients or glow.
*
* Clerk styles its components with runtime CSS-in-JS, which outranks plain
* class names of equal specificity, so the card and controls are expressed
* as flat style objects here rather than as `.glass-*` classes. Solid
* fallbacks apply under prefers-reduced-transparency.
*/
const REDUCED_TRANSPARENCY = "@media (prefers-reduced-transparency: reduce)";
export const clerkAppearance = {
baseTheme: dark,
variables: {
colorPrimary: "#0071E3",
colorTextOnPrimaryBackground: "#FFFFFF",
colorBackground: "#000000",
colorInputBackground: "#1C1C1E",
colorText: "#F5F5F7",
colorTextSecondary: "#98989D",
borderRadius: "0.9rem",
fontFamily: "inherit",
},
elements: {
cardBox: {
backgroundColor: "hsl(240 3% 11% / 0.9)",
backdropFilter: "blur(20px)",
WebkitBackdropFilter: "blur(20px)",
border: "1px solid hsl(240 3% 24%)",
borderRadius: "1rem",
boxShadow: "0 1px 2px hsl(0 0% 0% / 0.3)",
[REDUCED_TRANSPARENCY]: {
backgroundColor: "hsl(240 3% 9%)",
backdropFilter: "none",
WebkitBackdropFilter: "none",
},
},
card: {
backgroundColor: "transparent",
boxShadow: "none",
border: "none",
},
footer: {
background: "transparent",
borderTop: "1px solid hsl(240 3% 20%)",
},
formButtonPrimary: {
backgroundColor: "#0071E3",
boxShadow: "none",
"&:hover": { backgroundColor: "#0066CC" },
"&:active": { backgroundColor: "#0059B3" },
},
formFieldInput: {
backgroundColor: "hsl(240 3% 9%)",
border: "1px solid hsl(240 3% 24%)",
boxShadow: "none",
},
socialButtonsBlockButton: {
backgroundColor: "hsl(0 0% 100% / 0.04)",
border: "1px solid hsl(240 3% 24%)",
boxShadow: "none",
"&:hover": { backgroundColor: "hsl(0 0% 100% / 0.08)" },
},
// Three labelled provider buttons in one row truncate to "Ap… Git… Go…" on
// a 390px phone. Stack labelled buttons on narrow screens; icon-only rows
// (sign-in) keep their single row.
socialButtons: {
"@media (max-width: 480px)": {
"&:has(.cl-socialButtonsBlockButton)": { gridTemplateColumns: "1fr" },
},
},
dividerLine: { backgroundColor: "hsl(240 3% 24%)" },
},
} as const;
/**
* Copy overrides for Clerk's components. Without these the sign-in card reads
* "Sign in to My Application" when the Clerk instance's application name has
* not been set in the dashboard.
*/
export const clerkLocalization = {
signIn: {
start: {
title: "Sign in to Menivor",
subtitle: "Welcome back. Sign in to continue.",
},
},
signUp: {
start: {
title: "Create your Menivor account",
},
},
};