About
Clickable sales CRM in petrol teal: revenue home, drag-and-drop deal pipeline, reports with morphing charts and live Settings. Dark and light. Full Halden app: codeandchill.store/templates/halden?utm_source=21st
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Halden Sales CRM to your project and fits it to your theme.
Code
How Halden Sales CRM is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { useEffect, useState } from "react";
import HaldenDashboard from "@/components/ui/halden-sales-crm";
const settings = {
accent: "#12707a",
workspaceName: "Halden",
userName: "Amara Osei",
quarterGoal: 200,
};
/** Opens dark, then follows the page's `dark` class only when it changes (no sync on mount). */
function usePageDark() {
const [dark, setDark] = useState(true);
useEffect(() => {
const html = document.documentElement;
const mo = new MutationObserver(() => setDark(html.classList.contains("dark")));
mo.observe(html, { attributes: true, attributeFilter: ["class"] });
return () => mo.disconnect();
}, []);
return dark;
}
export default function Demo(props: Partial<typeof settings> = {}) {
const s = { ...settings, ...props };
const dark = usePageDark();
return (
<div className="min-h-screen w-full bg-background">
<HaldenDashboard accent={s.accent} workspaceName={s.workspaceName} userName={s.userName} quarterGoal={s.quarterGoal} theme={dark ? "dark" : "light"} />
</div>
);
}















