{
  "name": "Nekko Agent quiet design system",
  "url": "https://nekkoagent.com/design-system",
  "markdown": "https://nekkoagent.com/design-system.md",
  "source": "https://github.com/nekko-labs/nekko-agent/blob/main/docs/design-system.md",
  "license": "MIT",
  "fonts": {
    "interface": "Geist",
    "code": "Geist Mono"
  },
  "principles": [
    {
      "rule": "Space before lines.",
      "detail": "Gaps and type separate things. A border is the last resort."
    },
    {
      "rule": "Say it once.",
      "detail": "One short line of help, at most. Detail waits behind a tap, a disclosure or a tooltip. Cut words before adding them."
    },
    {
      "rule": "Only what matters now.",
      "detail": "Show what applies to this model, this chat, this state. What does not apply is gone, not greyed out."
    },
    {
      "rule": "Colour means something.",
      "detail": "Plum for intent, state colours for state, Petrol for information. Neutrals do the structure."
    },
    {
      "rule": "Every action moves.",
      "detail": "Each change animates, briefly and quietly. Nothing bounces."
    },
    {
      "rule": "One surface per layer.",
      "detail": "No card in a card. A popover is the only thing that floats."
    }
  ],
  "colourways": {
    "light-nekko": {
      "--paper": "#fbfbfd",
      "--surface": "#ffffff",
      "--surface-2": "#f2f2f7",
      "--line": "#e8e8ef",
      "--ink": "#17171d",
      "--ink-soft": "#52525e",
      "--ink-faint": "#6c6c77",
      "--accent": "#5a2352",
      "--accent-soft": "color-mix(in srgb, #5a2352 13%, transparent)",
      "--ring": "color-mix(in srgb, #5a2352 35%, transparent)",
      "--info": "#1f6680",
      "--accent-2": "#8a4a7f",
      "--success": "#3aa870",
      "--success-text": "#226f49",
      "--warning": "#c9871f",
      "--warning-text": "#8a5a0c",
      "--danger": "#d24738",
      "--danger-text": "#b23a2d",
      "--attention": "#e8701a",
      "--attention-text": "#a84c0a",
      "--neutral": "#8a8f98",
      "--q-tight": "4px",
      "--q-inline": "8px",
      "--q-group": "20px",
      "--q-section": "40px",
      "--q-row": "40px",
      "--q-row-dense": "32px",
      "--ease-out": "cubic-bezier(0.22, 1, 0.36, 1)",
      "--dur-fast": "0.12s",
      "--dur-med": "0.2s",
      "--dur-slow": "0.26s"
    },
    "dusk": {
      "--paper": "#0b0c14",
      "--surface": "#14151f",
      "--surface-2": "#1d1f2c",
      "--line": "#252735",
      "--ink": "#eaeaf4",
      "--ink-soft": "#a3a4b6",
      "--ink-faint": "#87899b",
      "--accent": "#c084b5",
      "--accent-soft": "color-mix(in srgb, #c084b5 18%, transparent)",
      "--ring": "color-mix(in srgb, #c084b5 45%, transparent)",
      "--info": "#6bb8d4",
      "--accent-2": "#c99bb3",
      "--success": "#4ec98a",
      "--success-text": "#4ec98a",
      "--warning": "#e0a44a",
      "--warning-text": "#e0a44a",
      "--danger": "#e0574a",
      "--danger-text": "#ef6a5d",
      "--attention": "#f58a3a",
      "--attention-text": "#f58a3a",
      "--neutral": "#8a8f98",
      "--q-tight": "4px",
      "--q-inline": "8px",
      "--q-group": "20px",
      "--q-section": "40px",
      "--q-row": "40px",
      "--q-row-dense": "32px",
      "--ease-out": "cubic-bezier(0.22, 1, 0.36, 1)",
      "--dur-fast": "0.12s",
      "--dur-med": "0.2s",
      "--dur-slow": "0.26s"
    }
  },
  "tokenUse": {
    "--paper": {
      "group": "Neutrals",
      "use": "Page"
    },
    "--surface": {
      "group": "Neutrals",
      "use": "Popovers, menus, tooltips"
    },
    "--surface-2": {
      "group": "Neutrals",
      "use": "Raised: a secondary button on hover"
    },
    "--line": {
      "group": "Neutrals",
      "use": "The one hairline"
    },
    "--ink": {
      "group": "Neutrals",
      "use": "Titles, what you scan for"
    },
    "--ink-soft": {
      "group": "Neutrals",
      "use": "Supporting text, icons at rest"
    },
    "--ink-faint": {
      "group": "Neutrals",
      "use": "Metadata and help"
    },
    "--accent": {
      "group": "Intent",
      "use": "The one primary button, focus, selection, links, a switch that is on"
    },
    "--accent-soft": {
      "group": "Intent",
      "use": "Behind a selected row"
    },
    "--ring": {
      "group": "Intent",
      "use": "The focus halo"
    },
    "--info": {
      "group": "Information",
      "use": "Notices, \"New\", tips, chart series three"
    },
    "--accent-2": {
      "group": "Information",
      "use": "Chart series two"
    },
    "--success": {
      "group": "State",
      "use": "Working, done, connected: glyphs and dots"
    },
    "--success-text": {
      "group": "State",
      "use": "The same, as words"
    },
    "--warning": {
      "group": "State",
      "use": "Expiring, best so far"
    },
    "--warning-text": {
      "group": "State",
      "use": "The same, as words"
    },
    "--danger": {
      "group": "State",
      "use": "Errors and removal"
    },
    "--danger-text": {
      "group": "State",
      "use": "The same, as words"
    },
    "--attention": {
      "group": "State",
      "use": "An agent waiting on you"
    },
    "--attention-text": {
      "group": "State",
      "use": "The same, as words"
    },
    "--neutral": {
      "group": "State",
      "use": "Watching, offline"
    },
    "--q-tight": {
      "group": "Space",
      "use": "Coupled pairs: a title and its subtext"
    },
    "--q-inline": {
      "group": "Space",
      "use": "Row padding, name to meta"
    },
    "--q-group": {
      "group": "Space",
      "use": "Panel padding, group to group"
    },
    "--q-section": {
      "group": "Space",
      "use": "Section to section"
    },
    "--q-row": {
      "group": "Space",
      "use": "A row on a page"
    },
    "--q-row-dense": {
      "group": "Space",
      "use": "A row in a popover or menu"
    },
    "--ease-out": {
      "group": "Motion",
      "use": "The one curve, for everything"
    },
    "--dur-fast": {
      "group": "Motion",
      "use": "Hover and press"
    },
    "--dur-med": {
      "group": "Motion",
      "use": "Toggle, select, open"
    },
    "--dur-slow": {
      "group": "Motion",
      "use": "Meters and theme changes"
    }
  },
  "type": [
    {
      "role": "Page title",
      "size": "20 / 600",
      "ink": "ink"
    },
    {
      "role": "Section heading",
      "size": "16 / 600",
      "ink": "ink"
    },
    {
      "role": "Row title, page",
      "size": "14 / 500",
      "ink": "ink"
    },
    {
      "role": "Row title, popover",
      "size": "12 / 500",
      "ink": "ink"
    },
    {
      "role": "Group label",
      "size": "12 / 500",
      "ink": "ink-soft"
    },
    {
      "role": "Detail, meta",
      "size": "12 or 11 / 400",
      "ink": "ink-faint"
    }
  ],
  "checklist": [
    "No card, border or tile inside a view or popover, except the allowed objects.",
    "Spacing is 8 or 20 (4 only for coupled pairs); groups separated by --q-group and a label.",
    "At most one hairline, between sections of a different kind.",
    "Every size on the type ladder; no tracked caps; no third line on a row.",
    "One line of help at most; detail behind a tap or tooltip.",
    "Only controls that apply to the current context are shown.",
    "One primary button; plum only for intent; information in Petrol.",
    "Agent status uses StatusIcon or WallMascot; other status is a dot and a word with -text words.",
    "No hex, rgb(), Tailwind palette colour, white/black or token fallback in components.",
    "Control icons are Gentleface and play once on hover, focus or press.",
    "Every action has a motion from the table; removals offer Undo.",
    "Checked in Light Nekko and Dusk, at 360px and desktop width."
  ]
}
