Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

478 B
Raw Blame
import { getPrimaryColorVars } from "@/features/branding/utils";

export function BrandStyle({ primaryColor }: { primaryColor: string }) {
  const v = getPrimaryColorVars(primaryColor);
  return (
    <style>{`
          .light {
            --primary: ${v.light};
            --primary-foreground: ${v.lightForeground};
          }
          .dark {
            --primary: ${v.dark};
            --primary-foreground: ${v.darkForeground};
          }
        `}</style>
  );
}