Sanity Library Reference Docs
    Preparing search index...

    Variable WS_CARD_TOKENSConst

    WS_CARD_TOKENS: {
        "--ws-accent": string;
        "--ws-accent-bg": string;
        "--ws-border": string;
        "--ws-ink": string;
        "--ws-ink-2": string;
        "--ws-panel": string;
        "--ws-path": string;
    } = ...

    The base --ws-* tokens, mapped onto Sanity UI's card vars so the workflow tools follow the ambient theme. Consumers retheme by overriding --ws-* on a wrapping element.

    --ws-font and --ws-font-weight are absent because Sanity UI publishes no card variable for either — it sets them on Text / Heading / Code and nowhere inheritable, so a bare Card computes to the browser's default serif. WorkflowDiagram reads them off the theme instead; a consumer applying this map to its own wrapper must set that pair itself.

    Type declaration

    • --ws-accent: string
    • --ws-accent-bg: string
    • --ws-border: string
    • --ws-ink: string
    • --ws-ink-2: string
    • --ws-panel: string
    • --ws-path: string