{
  "$schema": "./app-stylr.schema.json",
  "name": "App Stylr",
  "version": "1.4.4",
  "description": "Reusable visual and interaction tokens for small web, browser-extension, and macOS products.",
  "brand": {
    "ink": "#111111",
    "charcoal": "#2E3135",
    "slate": "#49545B",
    "steel": "#647B81",
    "sage": "#83A4A3",
    "mint": "#A9CEC2"
  },
  "themes": {
    "light": {
      "canvas": "#F7FAF9",
      "sidebar": "#EEF4F2",
      "surface": "#FFFFFF",
      "surfaceRaised": "#FFFFFF",
      "border": "#D8E4E0",
      "borderStrong": "#647B81",
      "text": "#111111",
      "textMuted": "#49545B",
      "accent": "#2E3135",
      "accentText": "#FFFFFF",
      "accentStrong": "#111111",
      "link": "#315E5A",
      "focus": "#315E5A",
      "selected": "#A9CEC2",
      "selectedText": "#111111",
      "success": "#2F6B4F",
      "successSurface": "#E8F5ED",
      "warning": "#8A5A00",
      "warningSurface": "#FFF4D6",
      "danger": "#A33A32",
      "dangerSurface": "#FCEBE9",
      "info": "#315E5A",
      "infoSurface": "#E6F2EF"
    },
    "dark": {
      "canvas": "#0E0E10",
      "sidebar": "#121214",
      "surface": "#151517",
      "surfaceRaised": "#202023",
      "border": "#2A2A2E",
      "borderStrong": "#747479",
      "text": "#F5F4F3",
      "textMuted": "#A7A7AE",
      "accent": "#A9CEC2",
      "accentText": "#111111",
      "accentStrong": "#C3E3D9",
      "link": "#A9CEC2",
      "focus": "#A9CEC2",
      "selected": "#263D39",
      "selectedText": "#F5F4F3",
      "success": "#82D3A7",
      "successSurface": "#173126",
      "warning": "#F2C46F",
      "warningSurface": "#352B18",
      "danger": "#FF9189",
      "dangerSurface": "#38201F",
      "info": "#A9CEC2",
      "infoSurface": "#1C302D"
    }
  },
  "typography": {
    "families": {
      "sans": "Geist Sans",
      "mono": "Geist Mono",
      "sansFallback": "Inter, ui-sans-serif, system-ui, sans-serif",
      "monoFallback": "ui-monospace, SFMono-Regular, Consolas, monospace"
    },
    "styles": {
      "display": {
        "size": 36,
        "lineHeight": 40,
        "weight": 500,
        "letterSpacing": -1.08
      },
      "heading1": {
        "size": 28,
        "lineHeight": 34,
        "weight": 600,
        "letterSpacing": -0.56
      },
      "heading2": {
        "size": 22,
        "lineHeight": 28,
        "weight": 600,
        "letterSpacing": -0.44
      },
      "heading3": {
        "size": 17,
        "lineHeight": 23,
        "weight": 600,
        "letterSpacing": -0.17
      },
      "body": {
        "size": 15,
        "lineHeight": 23,
        "weight": 400,
        "letterSpacing": 0
      },
      "small": {
        "size": 13,
        "lineHeight": 19,
        "weight": 400,
        "letterSpacing": 0
      },
      "label": {
        "size": 12,
        "lineHeight": 16,
        "weight": 500,
        "letterSpacing": 0
      },
      "monoMetadata": {
        "size": 12,
        "lineHeight": 16,
        "weight": 500,
        "letterSpacing": 0
      }
    }
  },
  "spacing": {
    "4": 4,
    "8": 8,
    "12": 12,
    "16": 16,
    "24": 24,
    "32": 32,
    "48": 48,
    "64": 64
  },
  "radius": {
    "control": 4,
    "card": 8,
    "dialog": 12,
    "button": 4
  },
  "size": {
    "control": 44,
    "controlCompact": 40,
    "readingWidth": "68ch"
  },
  "motion": {
    "control": 140,
    "panel": 200,
    "syncPulse": 1200
  },
  "profiles": {
    "game": {
      "minimumViewportWidth": 1024,
      "controlHeight": 48,
      "primaryControlHeight": 58,
      "readingTextSize": 14,
      "readingLineHeight": 21,
      "labelTextSize": 12,
      "labelLineHeight": 16,
      "disclosureSummaryHeight": 76,
      "disclosureToggleSize": 32
    }
  },
  "icon": {
    "canvas": 1024,
    "square": 1024,
    "inset": 0,
    "radius": 160,
    "safeAreaPercent": 9,
    "gradient": {
      "angle": 135,
      "stops": [
        {
          "offset": 0,
          "color": "#0D0D0D"
        },
        {
          "offset": 48,
          "color": "#3B4145"
        },
        {
          "offset": 100,
          "color": "#899F98"
        }
      ]
    },
    "background": "#262626",
    "foreground": "#F5F5F5",
    "monochromeGradient": {
      "angle": 135,
      "stops": [
        {
          "offset": 0,
          "color": "#383838"
        },
        {
          "offset": 100,
          "color": "#202020"
        }
      ]
    }
  },
  "accessibility": {
    "minimumContrast": {
      "normalText": 4.5,
      "largeText": 3,
      "uiGraphics": 3
    },
    "contrastPairs": [
      {
        "name": "Light primary text",
        "foreground": "themes.light.text",
        "background": "themes.light.canvas",
        "minimum": 4.5
      },
      {
        "name": "Light muted text",
        "foreground": "themes.light.textMuted",
        "background": "themes.light.surface",
        "minimum": 4.5
      },
      {
        "name": "Light primary action",
        "foreground": "themes.light.accentText",
        "background": "themes.light.accent",
        "minimum": 4.5
      },
      {
        "name": "Light selected state",
        "foreground": "themes.light.selectedText",
        "background": "themes.light.selected",
        "minimum": 4.5
      },
      {
        "name": "Light success message",
        "foreground": "themes.light.success",
        "background": "themes.light.successSurface",
        "minimum": 4.5
      },
      {
        "name": "Light warning message",
        "foreground": "themes.light.warning",
        "background": "themes.light.warningSurface",
        "minimum": 4.5
      },
      {
        "name": "Light danger message",
        "foreground": "themes.light.danger",
        "background": "themes.light.dangerSurface",
        "minimum": 4.5
      },
      {
        "name": "Light info message",
        "foreground": "themes.light.info",
        "background": "themes.light.infoSurface",
        "minimum": 4.5
      },
      {
        "name": "Dark primary text",
        "foreground": "themes.dark.text",
        "background": "themes.dark.canvas",
        "minimum": 4.5
      },
      {
        "name": "Dark muted text",
        "foreground": "themes.dark.textMuted",
        "background": "themes.dark.surface",
        "minimum": 4.5
      },
      {
        "name": "Dark primary action",
        "foreground": "themes.dark.accentText",
        "background": "themes.dark.accent",
        "minimum": 4.5
      },
      {
        "name": "Dark selected state",
        "foreground": "themes.dark.selectedText",
        "background": "themes.dark.selected",
        "minimum": 4.5
      },
      {
        "name": "Dark success message",
        "foreground": "themes.dark.success",
        "background": "themes.dark.successSurface",
        "minimum": 4.5
      },
      {
        "name": "Dark warning message",
        "foreground": "themes.dark.warning",
        "background": "themes.dark.warningSurface",
        "minimum": 4.5
      },
      {
        "name": "Dark danger message",
        "foreground": "themes.dark.danger",
        "background": "themes.dark.dangerSurface",
        "minimum": 4.5
      },
      {
        "name": "Dark info message",
        "foreground": "themes.dark.info",
        "background": "themes.dark.infoSurface",
        "minimum": 4.5
      },
      {
        "name": "Light quiet success",
        "foreground": "themes.light.success",
        "background": "themes.light.surface",
        "minimum": 4.5
      },
      {
        "name": "Light quiet warning",
        "foreground": "themes.light.warning",
        "background": "themes.light.surface",
        "minimum": 4.5
      },
      {
        "name": "Light quiet danger",
        "foreground": "themes.light.danger",
        "background": "themes.light.surface",
        "minimum": 4.5
      },
      {
        "name": "Light quiet info",
        "foreground": "themes.light.info",
        "background": "themes.light.surface",
        "minimum": 4.5
      },
      {
        "name": "Dark quiet success",
        "foreground": "themes.dark.success",
        "background": "themes.dark.surface",
        "minimum": 4.5
      },
      {
        "name": "Dark quiet warning",
        "foreground": "themes.dark.warning",
        "background": "themes.dark.surface",
        "minimum": 4.5
      },
      {
        "name": "Dark quiet danger",
        "foreground": "themes.dark.danger",
        "background": "themes.dark.surface",
        "minimum": 4.5
      },
      {
        "name": "Dark quiet info",
        "foreground": "themes.dark.info",
        "background": "themes.dark.surface",
        "minimum": 4.5
      }
    ]
  },
  "accents": {
    "ember": {
      "dark": {
        "accent": "#EF8B7C",
        "accentStrong": "#FFB3A5",
        "link": "#EF8B7C",
        "focus": "#EF8B7C",
        "selected": "#422B27",
        "info": "#EF8B7C",
        "infoSurface": "#382420"
      },
      "light": {
        "accent": "#A04435",
        "accentStrong": "#783025",
        "link": "#A04435",
        "focus": "#A04435",
        "selected": "#F6DFD9",
        "info": "#A04435",
        "infoSurface": "#F7E7E2"
      }
    },
    "blue": {
      "dark": {
        "accent": "#9BB6CC",
        "accentStrong": "#C1D4E3",
        "link": "#9BB6CC",
        "focus": "#9BB6CC",
        "selected": "#293944",
        "info": "#9BB6CC",
        "infoSurface": "#1D2C36"
      },
      "light": {
        "accent": "#3E5F78",
        "accentStrong": "#2B465C",
        "link": "#3E5F78",
        "focus": "#3E5F78",
        "selected": "#DFE8EF",
        "info": "#3E5F78",
        "infoSurface": "#E7EEF3"
      }
    },
    "royal": {
      "dark": {
        "accent": "#ADA0CD",
        "accentStrong": "#CEC3E5",
        "link": "#ADA0CD",
        "focus": "#ADA0CD",
        "selected": "#352F45",
        "info": "#ADA0CD",
        "infoSurface": "#2B2639"
      },
      "light": {
        "accent": "#665181",
        "accentStrong": "#49375F",
        "link": "#665181",
        "focus": "#665181",
        "selected": "#E9E3F1",
        "info": "#665181",
        "infoSurface": "#F0ECF6"
      }
    },
    "amber": {
      "dark": {
        "accent": "#C8B38F",
        "accentStrong": "#E0CFB2",
        "link": "#C8B38F",
        "focus": "#C8B38F",
        "selected": "#3A3227",
        "info": "#C8B38F",
        "infoSurface": "#2F291F"
      },
      "light": {
        "accent": "#79613F",
        "accentStrong": "#57442B",
        "link": "#79613F",
        "focus": "#79613F",
        "selected": "#EEE6D9",
        "info": "#79613F",
        "infoSurface": "#F5F0E7"
      }
    },
    "monochrome": {
      "dark": {
        "accent": "#29292E",
        "accentText": "#F5F4F3",
        "accentStrong": "#3C3C44",
        "link": "#B1B1B8",
        "focus": "#94949C",
        "selected": "#202024",
        "info": "#B1B1B8",
        "infoSurface": "#252529"
      },
      "light": {
        "accent": "#F3F3F5",
        "accentText": "#111111",
        "accentStrong": "#E3E3E7",
        "link": "#55555C",
        "focus": "#696971",
        "selected": "#F0F0F2",
        "info": "#55555C",
        "infoSurface": "#EFEFF2"
      }
    }
  },
  "accentPresets": {
    "mint": {
      "name": "Sage",
      "description": "Original sage/mint default."
    },
    "ember": {
      "name": "Ember",
      "description": "Warm fire red."
    },
    "blue": {
      "name": "Slate",
      "description": "Muted gray-blue."
    },
    "royal": {
      "name": "Royal",
      "description": "Muted purple."
    },
    "amber": {
      "name": "Amber",
      "description": "Muted champagne gold."
    },
    "monochrome": {
      "name": "Monochrome",
      "description": "Near-black and near-white fills."
    }
  },
  "surfaceTones": {
    "lighter": {
      "dark": {
        "canvas": "#18181B",
        "sidebar": "#1D1D20",
        "surface": "#222225",
        "surfaceRaised": "#2D2D31",
        "border": "#3B3B40",
        "borderStrong": "#87878E"
      },
      "light": {
        "canvas": "#FCFDFC",
        "sidebar": "#F4F7F6",
        "surface": "#FFFFFF",
        "surfaceRaised": "#FFFFFF",
        "border": "#E0E8E5",
        "borderStrong": "#6B7E82"
      }
    },
    "darker": {
      "dark": {
        "canvas": "#070709",
        "sidebar": "#0B0B0D",
        "surface": "#101012",
        "surfaceRaised": "#19191C",
        "border": "#242428",
        "borderStrong": "#6F6F76"
      },
      "light": {
        "canvas": "#E9EFEC",
        "sidebar": "#E1E9E5",
        "surface": "#F0F5F2",
        "surfaceRaised": "#F7FAF9",
        "border": "#C2CFCA",
        "borderStrong": "#526B71"
      }
    }
  },
  "surfaceTonePresets": {
    "lighter": {
      "name": "Lighter",
      "description": "Lift the neutral surfaces."
    },
    "normal": {
      "name": "Normal",
      "description": "Original surface values."
    },
    "darker": {
      "name": "Darker",
      "description": "Deepen the neutral surfaces."
    }
  }
}
