import React, { useState, useCallback } from "react"; function Section({ title, children }: { title: string; children: React.ReactNode }) { return (

{title}

{children}
); } const snippet = `:root { --flux-primary-400: #0A6E5F; --flux-primary-800: #032E36; --flux-surface: #FFFFFF; --flux-background: #F8F8F8; }`; export default function CodeBlockDemo() { const [copied, setCopied] = useState(false); const handleCopy = useCallback(() => { navigator.clipboard.writeText(snippet).then(() => { setCopied(true); setTimeout(() => setCopied(false), 1500); }); }, []); return (

Use the{" "} --flux-primary-400 {" "} token for primary actions. Configure surfaces with{" "} --flux-surface {" "} and backgrounds with{" "} --flux-background .

CSS
            
              {snippet}
            
          
); }