{
  "$schema": "https://tokens.studio/schemas/tokens.json",
  "meta": {
    "name": "Golova Design System Tokens",
    "language": "ru",
    "source": "css/tokens.css",
    "status": "draft",
    "description": "Machine-readable token contract for Golova B2B SaaS UI prototypes and implementation."
  },
  "primitive": {
    "neutral": {
      "90": { "value": "#333333", "type": "color" },
      "80": { "value": "#727272", "type": "color" },
      "70": { "value": "#DADADA", "type": "color" },
      "50": { "value": "#E1E5EF", "type": "color" },
      "30": { "value": "#F0F2F7", "type": "color" },
      "20": { "value": "#F7F9FB", "type": "color" },
      "0": { "value": "#FFFFFF", "type": "color" }
    },
    "dark": {
      "100": { "value": "#0F1114", "type": "color" },
      "90": { "value": "#15181C", "type": "color" },
      "80": { "value": "#1E2228", "type": "color" },
      "70": { "value": "#2A3038", "type": "color" },
      "60": { "value": "#3A424D", "type": "color" },
      "50": { "value": "#69717D", "type": "color" },
      "20": { "value": "#C9D0DD", "type": "color" },
      "0": { "value": "#F7F9FB", "type": "color" }
    },
    "brand": {
      "informative": { "value": "#4976F4", "type": "color" },
      "positive": { "value": "#38B000", "type": "color" },
      "error": { "value": "#E63A1E", "type": "color" },
      "informative-soft": { "value": "rgba(73,118,244,0.10)", "type": "color" },
      "positive-soft": { "value": "rgba(56,176,0,0.10)", "type": "color" },
      "error-soft": { "value": "rgba(230,58,30,0.10)", "type": "color" },
      "informative-soft-dark": { "value": "rgba(73,118,244,0.18)", "type": "color" },
      "positive-soft-dark": { "value": "rgba(56,176,0,0.18)", "type": "color" },
      "error-soft-dark": { "value": "rgba(230,58,30,0.18)", "type": "color" }
    }
  },
  "semantic": {
    "light": {
      "text": {
        "primary": { "value": "{primitive.neutral.90}", "type": "color" },
        "secondary": { "value": "{primitive.neutral.80}", "type": "color" },
        "disabled": { "value": "{primitive.neutral.70}", "type": "color" },
        "inverse": { "value": "{primitive.neutral.0}", "type": "color" },
        "link": { "value": "{primitive.brand.informative}", "type": "color" },
        "error": { "value": "{primitive.brand.error}", "type": "color" },
        "success": { "value": "{primitive.brand.positive}", "type": "color" }
      },
      "bg": {
        "page": { "value": "{primitive.neutral.20}", "type": "color" },
        "card": { "value": "{primitive.neutral.0}", "type": "color" },
        "table-hover": { "value": "{primitive.neutral.30}", "type": "color" },
        "selected": { "value": "{primitive.brand.informative-soft}", "type": "color" },
        "error": { "value": "{primitive.brand.error-soft}", "type": "color" },
        "success": { "value": "{primitive.brand.positive-soft}", "type": "color" }
      },
      "border": {
        "default": { "value": "{primitive.neutral.50}", "type": "color" },
        "strong": { "value": "{primitive.neutral.70}", "type": "color" },
        "focus": { "value": "{primitive.brand.informative}", "type": "color" },
        "error": { "value": "{primitive.brand.error}", "type": "color" }
      },
      "icon": {
        "primary": { "value": "{primitive.neutral.90}", "type": "color" },
        "secondary": { "value": "{primitive.neutral.80}", "type": "color" },
        "disabled": { "value": "{primitive.neutral.70}", "type": "color" },
        "informative": { "value": "{primitive.brand.informative}", "type": "color" },
        "error": { "value": "{primitive.brand.error}", "type": "color" },
        "success": { "value": "{primitive.brand.positive}", "type": "color" }
      }
    },
    "dark": {
      "text": {
        "primary": { "value": "{primitive.dark.0}", "type": "color" },
        "secondary": { "value": "{primitive.dark.20}", "type": "color" },
        "disabled": { "value": "{primitive.dark.50}", "type": "color" },
        "inverse": { "value": "{primitive.dark.100}", "type": "color" },
        "link": { "value": "#7FA0FF", "type": "color" },
        "error": { "value": "#FF7A66", "type": "color" },
        "success": { "value": "#7DD957", "type": "color" }
      },
      "bg": {
        "page": { "value": "{primitive.dark.100}", "type": "color" },
        "card": { "value": "{primitive.dark.80}", "type": "color" },
        "table-hover": { "value": "{primitive.dark.70}", "type": "color" },
        "selected": { "value": "{primitive.brand.informative-soft-dark}", "type": "color" },
        "error": { "value": "{primitive.brand.error-soft-dark}", "type": "color" },
        "success": { "value": "{primitive.brand.positive-soft-dark}", "type": "color" }
      },
      "border": {
        "default": { "value": "{primitive.dark.70}", "type": "color" },
        "strong": { "value": "{primitive.dark.60}", "type": "color" },
        "focus": { "value": "#7FA0FF", "type": "color" },
        "error": { "value": "#FF7A66", "type": "color" }
      },
      "icon": {
        "primary": { "value": "{primitive.dark.0}", "type": "color" },
        "secondary": { "value": "{primitive.dark.20}", "type": "color" },
        "disabled": { "value": "{primitive.dark.50}", "type": "color" },
        "informative": { "value": "#7FA0FF", "type": "color" },
        "error": { "value": "#FF7A66", "type": "color" },
        "success": { "value": "#7DD957", "type": "color" }
      }
    }
  },
  "component": {
    "button": {
      "primary-bg": { "value": "{primitive.neutral.90}", "type": "color" },
      "primary-bg-hover": { "value": "#000000", "type": "color" },
      "primary-fg": { "value": "{primitive.neutral.0}", "type": "color" },
      "secondary-bg": { "value": "{semantic.light.bg.card}", "type": "color" },
      "secondary-border": { "value": "{semantic.light.border.strong}", "type": "color" },
      "secondary-fg": { "value": "{semantic.light.text.primary}", "type": "color" }
    },
    "control": {
      "checked-bg": { "value": "{primitive.neutral.90}", "type": "color" },
      "checked-fg": { "value": "{primitive.neutral.0}", "type": "color" },
      "disabled-bg": { "value": "{primitive.neutral.30}", "type": "color" }
    }
  },
  "radius": {
    "form": { "value": "4px", "type": "dimension" },
    "sm": { "value": "6px", "type": "dimension" },
    "md": { "value": "8px", "type": "dimension" },
    "lg": { "value": "12px", "type": "dimension" },
    "xl": { "value": "16px", "type": "dimension" },
    "pill": { "value": "999px", "type": "dimension" }
  },
  "space": {
    "1": { "value": "4px", "type": "dimension" },
    "2": { "value": "8px", "type": "dimension" },
    "3": { "value": "12px", "type": "dimension" },
    "4": { "value": "16px", "type": "dimension" },
    "5": { "value": "20px", "type": "dimension" },
    "6": { "value": "24px", "type": "dimension" },
    "8": { "value": "32px", "type": "dimension" },
    "10": { "value": "40px", "type": "dimension" },
    "14": { "value": "56px", "type": "dimension" },
    "16": { "value": "64px", "type": "dimension" }
  },
  "font": {
    "body": { "value": "Roboto Flex, Roboto, system-ui, sans-serif", "type": "fontFamily" },
    "mono": { "value": "PragmataPro Mono, IBM Plex Mono, SFMono-Regular, Consolas, monospace", "type": "fontFamily" }
  },
  "motion": {
    "ease": { "value": "cubic-bezier(.4,0,.2,1)", "type": "cubicBezier" }
  },
  "notes": {
    "warning": "There is no official warning token yet. Rating stars use --_placeholder-warning (#F5A623) until the palette owner adds brand/warning."
  }
}
