{
  "$schema": "https://design-frontier.dev/schemas/tokens.schema.json",
  "$description": "Design Frontier semantic tokens for Frontier Ops",
  "meta": {
    "formatVersion": {
      "$type": "number",
      "$value": 2,
      "$description": "Canonical Design Frontier token format"
    },
    "theme": {
      "$type": "string",
      "$value": "both",
      "$description": "Supported theme mode"
    },
    "density": {
      "$type": "string",
      "$value": "medium-high",
      "$description": "Operational density target"
    }
  },
  "color": {
    "surface": {
      "page": {
        "$type": "color",
        "$value": "#F7F8FA",
        "$description": "Page background"
      },
      "panel": {
        "$type": "color",
        "$value": "#FFFFFF",
        "$description": "Primary contained surface"
      },
      "raised": {
        "$type": "color",
        "$value": "#FFFFFF",
        "$description": "Raised panel, popover or menu"
      },
      "overlay": {
        "$type": "color",
        "$value": "#FFFFFF",
        "$description": "Modal and drawer surface"
      }
    },
    "text": {
      "primary": {
        "$type": "color",
        "$value": "#171A21",
        "$description": "Primary readable text"
      },
      "secondary": {
        "$type": "color",
        "$value": "#5F6877",
        "$description": "Secondary readable text"
      },
      "muted": {
        "$type": "color",
        "$value": "#667085",
        "$description": "Muted labels and metadata"
      },
      "inverse": {
        "$type": "color",
        "$value": "#FFFFFF",
        "$description": "Text on inverse surfaces"
      }
    },
    "border": {
      "default": {
        "$type": "color",
        "$value": "#D8DDE6",
        "$description": "Default structural border"
      },
      "strong": {
        "$type": "color",
        "$value": "#AEB7C6",
        "$description": "Emphasized structural border"
      },
      "focus": {
        "$type": "color",
        "$value": "#7D9BFF",
        "$description": "Visible focus outline"
      }
    },
    "action": {
      "primary": {
        "$type": "color",
        "$value": "#3157D5",
        "$description": "Primary action"
      },
      "primaryHover": {
        "$type": "color",
        "$value": "#1F45C3",
        "$description": "Primary action hover"
      },
      "secondary": {
        "$type": "color",
        "$value": "#0F9F8F",
        "$description": "Secondary action or accent"
      },
      "disabled": {
        "$type": "color",
        "$value": "#98A2B3",
        "$description": "Disabled control"
      }
    },
    "status": {
      "success": {
        "$type": "color",
        "$value": "#15805D",
        "$description": "Successful outcome"
      },
      "warning": {
        "$type": "color",
        "$value": "#A86500",
        "$description": "Warning or attention"
      },
      "danger": {
        "$type": "color",
        "$value": "#C73535",
        "$description": "Destructive action or error"
      },
      "info": {
        "$type": "color",
        "$value": "#1C6FC2",
        "$description": "Informational feedback"
      }
    }
  },
  "themes": {
    "light": {
      "color": {
        "surface": {
          "page": {
            "$type": "color",
            "$value": "#F7F8FA",
            "$description": "Page background"
          },
          "panel": {
            "$type": "color",
            "$value": "#FFFFFF",
            "$description": "Primary contained surface"
          },
          "raised": {
            "$type": "color",
            "$value": "#FFFFFF",
            "$description": "Raised panel, popover or menu"
          },
          "overlay": {
            "$type": "color",
            "$value": "#FFFFFF",
            "$description": "Modal and drawer surface"
          }
        },
        "text": {
          "primary": {
            "$type": "color",
            "$value": "#171A21",
            "$description": "Primary readable text"
          },
          "secondary": {
            "$type": "color",
            "$value": "#5F6877",
            "$description": "Secondary readable text"
          },
          "muted": {
            "$type": "color",
            "$value": "#667085",
            "$description": "Muted labels and metadata"
          },
          "inverse": {
            "$type": "color",
            "$value": "#FFFFFF",
            "$description": "Text on inverse surfaces"
          }
        },
        "border": {
          "default": {
            "$type": "color",
            "$value": "#D8DDE6",
            "$description": "Default structural border"
          },
          "strong": {
            "$type": "color",
            "$value": "#AEB7C6",
            "$description": "Emphasized structural border"
          },
          "focus": {
            "$type": "color",
            "$value": "#7D9BFF",
            "$description": "Visible focus outline"
          }
        },
        "action": {
          "primary": {
            "$type": "color",
            "$value": "#3157D5",
            "$description": "Primary action"
          },
          "primaryHover": {
            "$type": "color",
            "$value": "#1F45C3",
            "$description": "Primary action hover"
          },
          "secondary": {
            "$type": "color",
            "$value": "#0F9F8F",
            "$description": "Secondary action or accent"
          },
          "disabled": {
            "$type": "color",
            "$value": "#98A2B3",
            "$description": "Disabled control"
          }
        },
        "status": {
          "success": {
            "$type": "color",
            "$value": "#15805D",
            "$description": "Successful outcome"
          },
          "warning": {
            "$type": "color",
            "$value": "#A86500",
            "$description": "Warning or attention"
          },
          "danger": {
            "$type": "color",
            "$value": "#C73535",
            "$description": "Destructive action or error"
          },
          "info": {
            "$type": "color",
            "$value": "#1C6FC2",
            "$description": "Informational feedback"
          }
        }
      }
    },
    "dark": {
      "color": {
        "surface": {
          "page": {
            "$type": "color",
            "$value": "#0F1115",
            "$description": "Page background"
          },
          "panel": {
            "$type": "color",
            "$value": "#171A21",
            "$description": "Primary contained surface"
          },
          "raised": {
            "$type": "color",
            "$value": "#1E222B",
            "$description": "Raised panel, popover or menu"
          },
          "overlay": {
            "$type": "color",
            "$value": "#252A34",
            "$description": "Modal and drawer surface"
          }
        },
        "text": {
          "primary": {
            "$type": "color",
            "$value": "#F4F6F8",
            "$description": "Primary readable text"
          },
          "secondary": {
            "$type": "color",
            "$value": "#B4BCC8",
            "$description": "Secondary readable text"
          },
          "muted": {
            "$type": "color",
            "$value": "#667085",
            "$description": "Muted labels and metadata"
          },
          "inverse": {
            "$type": "color",
            "$value": "#171A21",
            "$description": "Text on inverse surfaces"
          }
        },
        "border": {
          "default": {
            "$type": "color",
            "$value": "#343B47",
            "$description": "Default structural border"
          },
          "strong": {
            "$type": "color",
            "$value": "#566071",
            "$description": "Emphasized structural border"
          },
          "focus": {
            "$type": "color",
            "$value": "#7D9BFF",
            "$description": "Visible focus outline"
          }
        },
        "action": {
          "primary": {
            "$type": "color",
            "$value": "#3157D5",
            "$description": "Primary action"
          },
          "primaryHover": {
            "$type": "color",
            "$value": "#4369E7",
            "$description": "Primary action hover"
          },
          "secondary": {
            "$type": "color",
            "$value": "#0F9F8F",
            "$description": "Secondary action or accent"
          },
          "disabled": {
            "$type": "color",
            "$value": "#667085",
            "$description": "Disabled control"
          }
        },
        "status": {
          "success": {
            "$type": "color",
            "$value": "#36B98B",
            "$description": "Successful outcome"
          },
          "warning": {
            "$type": "color",
            "$value": "#E2A43A",
            "$description": "Warning or attention"
          },
          "danger": {
            "$type": "color",
            "$value": "#EF6B6B",
            "$description": "Destructive action or error"
          },
          "info": {
            "$type": "color",
            "$value": "#62A8E8",
            "$description": "Informational feedback"
          }
        }
      }
    }
  },
  "space": {
    "0": {
      "$type": "dimension",
      "$value": "0px",
      "$description": "No spacing"
    },
    "1": {
      "$type": "dimension",
      "$value": "4px",
      "$description": "Smallest spacing unit"
    },
    "2": {
      "$type": "dimension",
      "$value": "8px",
      "$description": "Compact spacing"
    },
    "3": {
      "$type": "dimension",
      "$value": "12px",
      "$description": "Compact component spacing"
    },
    "4": {
      "$type": "dimension",
      "$value": "16px",
      "$description": "Default component spacing"
    },
    "5": {
      "$type": "dimension",
      "$value": "20px",
      "$description": "Section internal spacing"
    },
    "6": {
      "$type": "dimension",
      "$value": "24px",
      "$description": "Default section spacing"
    },
    "8": {
      "$type": "dimension",
      "$value": "32px",
      "$description": "Large section spacing"
    },
    "10": {
      "$type": "dimension",
      "$value": "40px",
      "$description": "Page section separation"
    },
    "12": {
      "$type": "dimension",
      "$value": "48px",
      "$description": "Large public-site rhythm"
    },
    "16": {
      "$type": "dimension",
      "$value": "64px",
      "$description": "Major marketing section rhythm"
    }
  },
  "size": {
    "control": {
      "compact": {
        "$type": "dimension",
        "$value": "32px",
        "$description": "Compact control height"
      },
      "default": {
        "$type": "dimension",
        "$value": "36px",
        "$description": "Default control height"
      },
      "large": {
        "$type": "dimension",
        "$value": "44px",
        "$description": "Touch-friendly control height"
      }
    },
    "layout": {
      "pagePadding": {
        "$type": "dimension",
        "$value": "20px",
        "$description": "Default page horizontal padding"
      },
      "sectionGap": {
        "$type": "dimension",
        "$value": "24px",
        "$description": "Default vertical section gap"
      },
      "sidebar": {
        "$type": "dimension",
        "$value": "264px",
        "$description": "Expanded application sidebar width"
      },
      "sidebarCollapsed": {
        "$type": "dimension",
        "$value": "72px",
        "$description": "Collapsed application sidebar width"
      },
      "header": {
        "$type": "dimension",
        "$value": "56px",
        "$description": "Application header height"
      }
    },
    "content": {
      "appMax": {
        "$type": "dimension",
        "$value": "1440px",
        "$description": "Maximum operational content width"
      },
      "readingMax": {
        "$type": "dimension",
        "$value": "760px",
        "$description": "Maximum long-form reading width"
      },
      "landingMax": {
        "$type": "dimension",
        "$value": "1280px",
        "$description": "Maximum marketing content width"
      }
    }
  },
  "radius": {
    "none": {
      "$type": "dimension",
      "$value": "0px",
      "$description": "Square corners"
    },
    "control": {
      "$type": "dimension",
      "$value": "8px",
      "$description": "Inputs and buttons"
    },
    "panel": {
      "$type": "dimension",
      "$value": "12px",
      "$description": "Panels and cards"
    },
    "overlay": {
      "$type": "dimension",
      "$value": "14px",
      "$description": "Modals and drawers"
    },
    "pill": {
      "$type": "dimension",
      "$value": "999px",
      "$description": "Chips, filters and compact selectors only"
    }
  },
  "border": {
    "width": {
      "default": {
        "$type": "dimension",
        "$value": "1px",
        "$description": "Default border width"
      },
      "strong": {
        "$type": "dimension",
        "$value": "2px",
        "$description": "Focus and emphasized border width"
      }
    }
  },
  "shadow": {
    "raised": {
      "$type": "shadow",
      "$value": {
        "color": "#0000001A",
        "offsetX": "0px",
        "offsetY": "4px",
        "blur": "16px",
        "spread": "0px"
      },
      "$description": "Raised panel shadow"
    },
    "overlay": {
      "$type": "shadow",
      "$value": {
        "color": "#00000026",
        "offsetX": "0px",
        "offsetY": "12px",
        "blur": "32px",
        "spread": "0px"
      },
      "$description": "Modal or drawer shadow"
    }
  },
  "typography": {
    "family": {
      "body": {
        "$type": "fontFamily",
        "$value": "Inter, ui-sans-serif, system-ui, sans-serif",
        "$description": "Body family"
      },
      "heading": {
        "$type": "fontFamily",
        "$value": "Inter, ui-sans-serif, system-ui, sans-serif",
        "$description": "Heading family"
      },
      "mono": {
        "$type": "fontFamily",
        "$value": "ui-monospace, SFMono-Regular, Menlo, Consolas, monospace",
        "$description": "Monospace family"
      }
    },
    "size": {
      "xs": {
        "$type": "dimension",
        "$value": "12px",
        "$description": "Compact labels"
      },
      "sm": {
        "$type": "dimension",
        "$value": "14px",
        "$description": "Secondary text and controls"
      },
      "md": {
        "$type": "dimension",
        "$value": "16px",
        "$description": "Default body text"
      },
      "lg": {
        "$type": "dimension",
        "$value": "18px",
        "$description": "Large body or compact heading"
      },
      "xl": {
        "$type": "dimension",
        "$value": "24px",
        "$description": "Page heading"
      },
      "display": {
        "$type": "dimension",
        "$value": "48px",
        "$description": "Marketing display, never used in operational tables or forms"
      }
    },
    "lineHeight": {
      "tight": {
        "$type": "number",
        "$value": 1.2,
        "$description": "Display and compact headings"
      },
      "normal": {
        "$type": "number",
        "$value": 1.5,
        "$description": "Body and controls"
      },
      "relaxed": {
        "$type": "number",
        "$value": 1.65,
        "$description": "Long-form reading"
      }
    }
  },
  "motion": {
    "duration": {
      "fast": {
        "$type": "dimension",
        "$value": "120ms",
        "$description": "Hover and focus feedback"
      },
      "normal": {
        "$type": "dimension",
        "$value": "180ms",
        "$description": "Menus and compact transitions"
      },
      "slow": {
        "$type": "dimension",
        "$value": "280ms",
        "$description": "Large surface transitions"
      }
    },
    "easing": {
      "standard": {
        "$type": "cubicBezier",
        "$value": [
          0.2,
          0,
          0,
          1
        ],
        "$description": "Standard interface easing"
      }
    }
  }
}
