{
  "$description": "Brand: Rust — dark mode",
  "color": {
    "swatches": {
      "$description": "Source-of-truth color swatches from palette rust@1.0.0",
      "rust-orange": {
        "$value": "#D34516",
        "$type": "color",
        "$description": "Primary brand accent — the signature Rust Orange used on the gear mark, primary buttons, and rust-lang.org accents.\n"
      },
      "rust-dark-blue": {
        "$value": "#1E2650",
        "$type": "color",
        "$description": "Primary corporate dark color — the Rust Foundation's signature navy used as a high-contrast canvas for the gear mark.\n"
      },
      "rust-blue": {
        "$value": "#28607F",
        "$type": "color",
        "$description": "Supporting blue used for technical illustrations and secondary interactive elements.\n"
      },
      "rust-silver": {
        "$value": "#67737A",
        "$type": "color",
        "$description": "Neutral metallic gray used for body text on light surfaces and hardware-adjacent surfaces.\n"
      },
      "rust-green": {
        "$value": "#61784D",
        "$type": "color",
        "$description": "Reserved green used for database / sustainability surfaces per the Brand Guide.\n"
      },
      "rust-black": {
        "$value": "#0E0E0E",
        "$type": "color",
        "$description": "Near-black surface for dark-mode page canvas."
      },
      "rust-charcoal": {
        "$value": "#222222",
        "$type": "color",
        "$description": "Elevated dark surface for cards and panels."
      },
      "rust-light-gray": {
        "$value": "#D7D7D7",
        "$type": "color",
        "$description": "Hairline borders and dividers on light canvas."
      },
      "rust-off-white": {
        "$value": "#F4F4F4",
        "$type": "color",
        "$description": "Subtle layered surface on the light canvas."
      },
      "rust-white": {
        "$value": "#FFFFFF",
        "$type": "color",
        "$description": "Page canvas in light mode; reversed text on orange."
      }
    },
    "roles": {
      "$description": "Semantic color roles (dark mode) mapped to palette swatches",
      "background": {
        "$value": "{color.swatches.rust-black}",
        "$type": "color",
        "$description": "background role → Rust Black"
      },
      "surface": {
        "$value": "{color.swatches.rust-charcoal}",
        "$type": "color",
        "$description": "surface role → Rust Charcoal"
      },
      "surface-elevated": {
        "$value": "{color.swatches.rust-charcoal}",
        "$type": "color",
        "$description": "surface-elevated role → Rust Charcoal"
      },
      "text-primary": {
        "$value": "{color.swatches.rust-white}",
        "$type": "color",
        "$description": "text-primary role → Rust White"
      },
      "text-secondary": {
        "$value": "{color.swatches.rust-light-gray}",
        "$type": "color",
        "$description": "text-secondary role → Rust Light Gray"
      },
      "text-tertiary": {
        "$value": "{color.swatches.rust-silver}",
        "$type": "color",
        "$description": "text-tertiary role → Rust Silver"
      },
      "primary": {
        "$value": "{color.swatches.rust-orange}",
        "$type": "color",
        "$description": "primary role → Rust Orange"
      },
      "primary-hover": {
        "$value": "{color.swatches.rust-light-gray}",
        "$type": "color",
        "$description": "primary-hover role → Rust Light Gray"
      },
      "accent": {
        "$value": "{color.swatches.rust-blue}",
        "$type": "color",
        "$description": "accent role → Rust Blue"
      },
      "accent-hover": {
        "$value": "{color.swatches.rust-light-gray}",
        "$type": "color",
        "$description": "accent-hover role → Rust Light Gray"
      },
      "warning": {
        "$value": "{color.swatches.rust-orange}",
        "$type": "color",
        "$description": "warning role → Rust Orange"
      },
      "warning-hover": {
        "$value": "{color.swatches.rust-light-gray}",
        "$type": "color",
        "$description": "warning-hover role → Rust Light Gray"
      },
      "error": {
        "$value": "{color.swatches.rust-orange}",
        "$type": "color",
        "$description": "error role → Rust Orange"
      },
      "success": {
        "$value": "{color.swatches.rust-green}",
        "$type": "color",
        "$description": "success role → Rust Green"
      },
      "brand-overrides": {
        "$description": "Brand-level role overrides (take precedence over palette role mappings)",
        "identity": {
          "$value": "{color.swatches.rust-orange}",
          "$type": "color",
          "$description": "Brand role identity → Rust Orange"
        },
        "on-identity": {
          "$value": "{color.swatches.rust-white}",
          "$type": "color",
          "$description": "Brand role on-identity → Rust White"
        },
        "primary": {
          "$value": "{color.swatches.rust-orange}",
          "$type": "color",
          "$description": "Brand role primary → Rust Orange"
        },
        "primary-hover": {
          "$value": "{color.swatches.rust-dark-blue}",
          "$type": "color",
          "$description": "Brand role primary-hover → Rust Dark Blue"
        },
        "accent": {
          "$value": "{color.swatches.rust-blue}",
          "$type": "color",
          "$description": "Brand role accent → Rust Blue"
        },
        "accent-hover": {
          "$value": "{color.swatches.rust-dark-blue}",
          "$type": "color",
          "$description": "Brand role accent-hover → Rust Dark Blue"
        },
        "background": {
          "$value": "{color.swatches.rust-white}",
          "$type": "color",
          "$description": "Brand role background → Rust White"
        },
        "surface": {
          "$value": "{color.swatches.rust-off-white}",
          "$type": "color",
          "$description": "Brand role surface → Rust Off-White"
        },
        "text-primary": {
          "$value": "{color.swatches.rust-dark-blue}",
          "$type": "color",
          "$description": "Brand role text-primary → Rust Dark Blue"
        },
        "text-secondary": {
          "$value": "{color.swatches.rust-silver}",
          "$type": "color",
          "$description": "Brand role text-secondary → Rust Silver"
        }
      }
    }
  },
  "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": [
          "Source Code Pro",
          "ui-monospace",
          "SFMono-Regular",
          "Menlo",
          "Consolas",
          "Liberation Mono",
          "monospace"
        ],
        "$type": "fontFamily",
        "$description": "mono role → Source Code Pro (source-code-pro@1.0.0)"
      },
      "weight": {
        "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"
      }
    }
  }
}
