{
  "$description": "Brand: Klarna — dark mode",
  "color": {
    "swatches": {
      "$description": "Source-of-truth color swatches from palette klarna@1.0.0",
      "klarna-pink": {
        "$value": "#FFA8CD",
        "$type": "color",
        "$description": "Signature pastel pink — the defining brand color, used as background fields and primary brand surface."
      },
      "klarna-pink-deep": {
        "$value": "#E6739D",
        "$type": "color",
        "$description": "Authored deeper pink for hover/pressed states on the primary pink action."
      },
      "klarna-black": {
        "$value": "#17120F",
        "$type": "color",
        "$description": "Klarna Black — warm near-black used for the wordmark, body text, and high-contrast type on pink fields."
      },
      "klarna-white": {
        "$value": "#FFFFFF",
        "$type": "color",
        "$description": "Canonical light canvas paired with the pink fields."
      },
      "klarna-cream": {
        "$value": "#F5EBE0",
        "$type": "color",
        "$description": "Warm off-white used as a secondary surface — softer than pure white, often paired with pink on marketing."
      },
      "klarna-graphite": {
        "$value": "#3C3733",
        "$type": "color",
        "$description": "Secondary text on light surfaces; a warm graphite that holds the same warmth as Klarna Black."
      },
      "klarna-gray": {
        "$value": "#7A716A",
        "$type": "color",
        "$description": "Tertiary text and metadata."
      },
      "klarna-divider": {
        "$value": "#E5DDD4",
        "$type": "color",
        "$description": "Authored hairline divider tone that respects the warm palette."
      },
      "klarna-canvas-dark": {
        "$value": "#1A1410",
        "$type": "color",
        "$description": "Authored dark-mode canvas — Klarna is light-first; this is an authored inversion."
      },
      "klarna-surface-dark": {
        "$value": "#2A211C",
        "$type": "color",
        "$description": "Authored elevated surface on dark mode."
      }
    },
    "roles": {
      "$description": "Semantic color roles (dark mode) mapped to palette swatches",
      "background": {
        "$value": "{color.swatches.klarna-canvas-dark}",
        "$type": "color",
        "$description": "background role → Klarna Canvas Dark"
      },
      "surface": {
        "$value": "{color.swatches.klarna-surface-dark}",
        "$type": "color",
        "$description": "surface role → Klarna Surface Dark"
      },
      "surface-elevated": {
        "$value": "{color.swatches.klarna-surface-dark}",
        "$type": "color",
        "$description": "surface-elevated role → Klarna Surface Dark"
      },
      "text-primary": {
        "$value": "{color.swatches.klarna-white}",
        "$type": "color",
        "$description": "text-primary role → Klarna White"
      },
      "text-secondary": {
        "$value": "{color.swatches.klarna-cream}",
        "$type": "color",
        "$description": "text-secondary role → Klarna Cream"
      },
      "text-tertiary": {
        "$value": "{color.swatches.klarna-gray}",
        "$type": "color",
        "$description": "text-tertiary role → Klarna Gray"
      },
      "primary": {
        "$value": "{color.swatches.klarna-pink}",
        "$type": "color",
        "$description": "primary role → Klarna Pink"
      },
      "primary-hover": {
        "$value": "{color.swatches.klarna-pink-deep}",
        "$type": "color",
        "$description": "primary-hover role → Klarna Pink Deep"
      },
      "accent": {
        "$value": "{color.swatches.klarna-pink}",
        "$type": "color",
        "$description": "accent role → Klarna Pink"
      },
      "accent-hover": {
        "$value": "{color.swatches.klarna-pink-deep}",
        "$type": "color",
        "$description": "accent-hover role → Klarna Pink Deep"
      },
      "warning": {
        "$value": "{color.swatches.klarna-pink-deep}",
        "$type": "color",
        "$description": "warning role → Klarna Pink Deep"
      },
      "warning-hover": {
        "$value": "{color.swatches.klarna-pink}",
        "$type": "color",
        "$description": "warning-hover role → Klarna Pink"
      },
      "error": {
        "$value": "{color.swatches.klarna-white}",
        "$type": "color",
        "$description": "error role → Klarna White"
      },
      "success": {
        "$value": "{color.swatches.klarna-pink}",
        "$type": "color",
        "$description": "success role → Klarna Pink"
      },
      "brand-overrides": {
        "$description": "Brand-level role overrides (take precedence over palette role mappings)",
        "identity": {
          "$value": "{color.swatches.klarna-pink}",
          "$type": "color",
          "$description": "Brand role identity → Klarna Pink"
        },
        "on-identity": {
          "$value": "{color.swatches.klarna-black}",
          "$type": "color",
          "$description": "Brand role on-identity → Klarna Black"
        },
        "primary": {
          "$value": "{color.swatches.klarna-pink}",
          "$type": "color",
          "$description": "Brand role primary → Klarna Pink"
        },
        "primary-hover": {
          "$value": "{color.swatches.klarna-pink-deep}",
          "$type": "color",
          "$description": "Brand role primary-hover → Klarna Pink Deep"
        },
        "accent": {
          "$value": "{color.swatches.klarna-pink}",
          "$type": "color",
          "$description": "Brand role accent → Klarna Pink"
        },
        "accent-hover": {
          "$value": "{color.swatches.klarna-pink-deep}",
          "$type": "color",
          "$description": "Brand role accent-hover → Klarna Pink Deep"
        },
        "mark": {
          "$value": "{color.swatches.klarna-black}",
          "$type": "color",
          "$description": "Brand role mark → Klarna Black"
        },
        "text-primary-light": {
          "$value": "{color.swatches.klarna-black}",
          "$type": "color",
          "$description": "Brand role text-primary-light → Klarna Black"
        },
        "text-primary-dark": {
          "$value": "{color.swatches.klarna-white}",
          "$type": "color",
          "$description": "Brand role text-primary-dark → Klarna White"
        },
        "text-secondary-light": {
          "$value": "{color.swatches.klarna-graphite}",
          "$type": "color",
          "$description": "Brand role text-secondary-light → Klarna Graphite"
        },
        "background-light": {
          "$value": "{color.swatches.klarna-white}",
          "$type": "color",
          "$description": "Brand role background-light → Klarna White"
        },
        "background-dark": {
          "$value": "{color.swatches.klarna-canvas-dark}",
          "$type": "color",
          "$description": "Brand role background-dark → Klarna Canvas Dark"
        },
        "surface-light": {
          "$value": "{color.swatches.klarna-cream}",
          "$type": "color",
          "$description": "Brand role surface-light → Klarna Cream"
        },
        "surface-dark": {
          "$value": "{color.swatches.klarna-surface-dark}",
          "$type": "color",
          "$description": "Brand role surface-dark → Klarna Surface Dark"
        },
        "divider": {
          "$value": "{color.swatches.klarna-divider}",
          "$type": "color",
          "$description": "Brand role divider → Klarna Divider"
        }
      }
    }
  },
  "font": {
    "$description": "Typography roles mapped to font atoms",
    "heading": {
      "family": {
        "$value": [
          "Inter",
          "-apple-system",
          "BlinkMacSystemFont",
          "Segoe UI",
          "Roboto",
          "Helvetica Neue",
          "Arial",
          "sans-serif"
        ],
        "$type": "fontFamily",
        "$description": "heading role → Inter (inter@1.0.0)"
      },
      "weight": {
        "100": {
          "$value": 100,
          "$type": "fontWeight"
        },
        "200": {
          "$value": 200,
          "$type": "fontWeight"
        },
        "300": {
          "$value": 300,
          "$type": "fontWeight"
        },
        "400": {
          "$value": 400,
          "$type": "fontWeight"
        },
        "500": {
          "$value": 500,
          "$type": "fontWeight"
        },
        "600": {
          "$value": 600,
          "$type": "fontWeight"
        },
        "700": {
          "$value": 700,
          "$type": "fontWeight"
        },
        "800": {
          "$value": 800,
          "$type": "fontWeight"
        },
        "900": {
          "$value": 900,
          "$type": "fontWeight"
        },
        "$description": "Available font weights"
      }
    },
    "body": {
      "family": {
        "$value": [
          "Inter",
          "-apple-system",
          "BlinkMacSystemFont",
          "Segoe UI",
          "Roboto",
          "Helvetica Neue",
          "Arial",
          "sans-serif"
        ],
        "$type": "fontFamily",
        "$description": "body role → Inter (inter@1.0.0)"
      },
      "weight": {
        "100": {
          "$value": 100,
          "$type": "fontWeight"
        },
        "200": {
          "$value": 200,
          "$type": "fontWeight"
        },
        "300": {
          "$value": 300,
          "$type": "fontWeight"
        },
        "400": {
          "$value": 400,
          "$type": "fontWeight"
        },
        "500": {
          "$value": 500,
          "$type": "fontWeight"
        },
        "600": {
          "$value": 600,
          "$type": "fontWeight"
        },
        "700": {
          "$value": 700,
          "$type": "fontWeight"
        },
        "800": {
          "$value": 800,
          "$type": "fontWeight"
        },
        "900": {
          "$value": 900,
          "$type": "fontWeight"
        },
        "$description": "Available font weights"
      }
    },
    "mono": {
      "family": {
        "$value": [
          "JetBrainsMono Nerd Font",
          "JetBrains Mono",
          "Fira Code",
          "Menlo",
          "Monaco",
          "Consolas",
          "Liberation Mono",
          "monospace"
        ],
        "$type": "fontFamily",
        "$description": "mono role → JetBrainsMono Nerd Font (jetbrainsmono-nerdfont@1.0.0)"
      },
      "weight": {
        "100": {
          "$value": 100,
          "$type": "fontWeight"
        },
        "200": {
          "$value": 200,
          "$type": "fontWeight"
        },
        "300": {
          "$value": 300,
          "$type": "fontWeight"
        },
        "400": {
          "$value": 400,
          "$type": "fontWeight"
        },
        "500": {
          "$value": 500,
          "$type": "fontWeight"
        },
        "600": {
          "$value": 600,
          "$type": "fontWeight"
        },
        "700": {
          "$value": 700,
          "$type": "fontWeight"
        },
        "800": {
          "$value": 800,
          "$type": "fontWeight"
        },
        "$description": "Available font weights"
      }
    }
  }
}
