{
  "$description": "NRE.Com.Net design tokens. Single source for colours, type and sizes. tokens.css and the logos are generated from it (scripts/).",
  "color": {
    "$type": "color",
    "$description": "All colours are defined in OKLCH (DTCG colour format: colorSpace, components [L 0-1, C, H in degrees]). hex is the official reference value and the fallback for SVG, email, PNG, GIF, Discourse and print; the build fails if the components do not round to exactly this hex value. New steps, tints and gradients are derived in OKLCH (scripts/colors.py).",
    "ash": {
      "50": {
        "$value": { "colorSpace": "oklch", "components": [0.9761, 0.0, 0.0], "hex": "#F7F7F7" },
        "$description": "Chalk. Raised surfaces in the light scheme."
      },
      "100": {
        "$value": { "colorSpace": "oklch", "components": [0.9401, 0.0, 0.0], "hex": "#EBEBEB" },
        "$description": "Ash. Page background in the light scheme, text in the dark one."
      },
      "200": {
        "$value": { "colorSpace": "oklch", "components": [0.8853, 0.0, 0.0], "hex": "#D9D9D9" },
        "$description": "Lines and dividers in the light scheme."
      },
      "400": {
        "$value": { "colorSpace": "oklch", "components": [0.7155, 0.0, 0.0], "hex": "#A3A3A3" },
        "$description": "Smoke light. Secondary text in the dark scheme."
      },
      "600": {
        "$value": { "colorSpace": "oklch", "components": [0.5103, 0.0, 0.0], "hex": "#666666" },
        "$description": "Smoke. Secondary text in the light scheme."
      },
      "700": {
        "$value": { "colorSpace": "oklch", "components": [0.4128, 0.0, 0.0], "hex": "#4B4B4B" },
        "$description": "Graphite. Official grey of NemesisRE: the stems of the mark."
      },
      "800": {
        "$value": { "colorSpace": "oklch", "components": [0.3012, 0.0, 0.0], "hex": "#2E2E2E" },
        "$description": "Raised surfaces and lines in the dark scheme."
      },
      "900": {
        "$value": { "colorSpace": "oklch", "components": [0.2562, 0.0, 0.0], "hex": "#232323" },
        "$description": "Soot. Page background in the dark scheme."
      },
      "950": {
        "$value": { "colorSpace": "oklch", "components": [0.2178, 0.0, 0.0], "hex": "#1A1A1A" },
        "$description": "Ink. Body text in the light scheme."
      }
    },
    "ember": {
      "400": {
        "$value": { "colorSpace": "oklch", "components": [0.6813, 0.1625, 29.23], "hex": "#EC6B5B" },
        "$description": "Spark. Red for text and links on dark backgrounds."
      },
      "500": {
        "$value": { "colorSpace": "oklch", "components": [0.5944, 0.1989, 29.23], "hex": "#DC3C2E" },
        "$description": "Flame. Red in the logo on dark backgrounds. Surface only, never for text."
      },
      "700": {
        "$value": { "colorSpace": "oklch", "components": [0.3703, 0.152, 29.23], "hex": "#7D0000" },
        "$description": "Ember. Official red of NemesisRE: NRE in the wordmark, the feather of the mark, links."
      }
    },
    "petrol": {
      "400": {
        "$value": { "colorSpace": "oklch", "components": [0.715, 0.0962, 214.32], "hex": "#50B2C8" },
        "$description": "Petrol light. The dot of NCN on dark backgrounds."
      },
      "600": {
        "$value": { "colorSpace": "oklch", "components": [0.5363, 0.0854, 214.32], "hex": "#1F7A8C" },
        "$description": "Petrol. The dot of NCN on light backgrounds: mark, wordmark, list dots. Surface only, never for text."
      }
    },
    "violet": {
      "400": {
        "$value": { "colorSpace": "oklch", "components": [0.68, 0.182, 289.52], "hex": "#9880FF" },
        "$description": "Violet light. The dot of NGN on dark backgrounds (5.1 : 1 on Soot)."
      },
      "600": {
        "$value": { "colorSpace": "oklch", "components": [0.5162, 0.2317, 289.52], "hex": "#6D3BE0" },
        "$description": "Violet. The dot of NGN on light backgrounds. Surface only, never for text."
      }
    }
  },
  "theme": {
    "light": {
      "$type": "color",
      "bg": {
        "$value": "{color.ash.100}"
      },
      "surface": {
        "$value": "{color.ash.50}"
      },
      "line": {
        "$value": "{color.ash.200}"
      },
      "text": {
        "$value": "{color.ash.950}"
      },
      "muted": {
        "$value": "{color.ash.600}"
      },
      "mark": {
        "$value": "{color.ash.700}"
      },
      "red": {
        "$value": "{color.ember.700}"
      },
      "accent": {
        "$value": "{color.ember.700}"
      },
      "accent-strong": {
        "$value": "{color.ash.950}"
      },
      "on-accent": {
        "$value": "{color.ash.50}"
      },
      "dot": {
        "$value": "{color.petrol.600}"
      }
    },
    "dark": {
      "$type": "color",
      "bg": {
        "$value": "{color.ash.900}"
      },
      "surface": {
        "$value": "{color.ash.800}"
      },
      "line": {
        "$value": "{color.ash.700}"
      },
      "text": {
        "$value": "{color.ash.100}"
      },
      "muted": {
        "$value": "{color.ash.400}"
      },
      "mark": {
        "$value": "{color.ash.100}"
      },
      "red": {
        "$value": "{color.ember.500}"
      },
      "accent": {
        "$value": "{color.ember.400}"
      },
      "accent-strong": {
        "$value": "{color.ash.50}"
      },
      "on-accent": {
        "$value": "{color.ash.950}"
      },
      "dot": {
        "$value": "{color.petrol.400}"
      }
    }
  },
  "brand": {
    "$description": "Overrides per brand of the family. NCN is the default; data-brand=\"ngn\" or \"nemesisre\" switches.",
    "ngn": {
      "light": {
        "$type": "color",
        "dot": {
          "$value": "{color.violet.600}"
        }
      },
      "dark": {
        "$type": "color",
        "dot": {
          "$value": "{color.violet.400}"
        }
      }
    },
    "nemesisre": {
      "light": {
        "$type": "color",
        "dot": {
          "$value": "{color.ember.700}"
        }
      },
      "dark": {
        "$type": "color",
        "dot": {
          "$value": "{color.ember.500}"
        }
      }
    }
  },
  "font": {
    "family": {
      "$type": "fontFamily",
      "sans": {
        "$value": [
          "Archivo",
          "Arial",
          "Helvetica",
          "sans-serif"
        ]
      },
      "mono": {
        "$value": [
          "Commit Mono",
          "ui-monospace",
          "Menlo",
          "Consolas",
          "monospace"
        ]
      }
    },
    "width": {
      "$type": "number",
      "normal": {
        "$value": 100,
        "$description": "Body text and controls."
      },
      "wide": {
        "$value": 125,
        "$description": "Headings and wordmark (font-stretch 125 %)."
      }
    },
    "weight": {
      "$type": "fontWeight",
      "text": {
        "$value": 400
      },
      "strong": {
        "$value": 600
      },
      "title": {
        "$value": 650
      }
    },
    "size": {
      "$type": "dimension",
      "small": {
        "$value": "0.875rem"
      },
      "text": {
        "$value": "1.0625rem"
      },
      "lead": {
        "$value": "1.3125rem"
      },
      "h3": {
        "$value": "1.3125rem"
      },
      "h2": {
        "$value": "1.75rem"
      },
      "h1": {
        "$value": "clamp(2rem, 1.1rem + 3.4vw, 3.25rem)"
      }
    },
    "leading": {
      "$type": "number",
      "title": {
        "$value": 1.08
      },
      "text": {
        "$value": 1.55
      }
    }
  },
  "space": {
    "$type": "dimension",
    "1": {
      "$value": "0.25rem"
    },
    "2": {
      "$value": "0.5rem"
    },
    "3": {
      "$value": "0.75rem"
    },
    "4": {
      "$value": "1rem"
    },
    "6": {
      "$value": "1.5rem"
    },
    "8": {
      "$value": "2rem"
    },
    "12": {
      "$value": "3rem"
    },
    "16": {
      "$value": "4rem"
    },
    "24": {
      "$value": "6rem"
    }
  },
  "radius": {
    "$type": "dimension",
    "control": {
      "$value": "6px",
      "$description": "Buttons, input fields, code."
    },
    "round": {
      "$value": "999px",
      "$description": "Round shapes only: status dots and the dot of the brand."
    }
  },
  "measure": {
    "$type": "dimension",
    "text": {
      "$value": "62ch",
      "$description": "Maximum line length for body text."
    },
    "page": {
      "$value": "72rem"
    }
  },
  "motion": {
    "$description": "Motion of the brand: the feather glides into place once, for the networks the dot follows. Offsets in units of the 64 grid of the mark. Only with prefers-reduced-motion: no-preference.",
    "feather": {
      "duration": {
        "$type": "duration",
        "$value": "700ms"
      },
      "delay": {
        "$type": "duration",
        "$value": "120ms"
      },
      "easing": {
        "$type": "cubicBezier",
        "$value": [
          0.2,
          0.9,
          0.25,
          1
        ],
        "$description": "Fast start, soft landing."
      },
      "offset-x": {
        "$type": "number",
        "$value": -9,
        "$description": "Starts left of the final position."
      },
      "offset-y": {
        "$type": "number",
        "$value": -10,
        "$description": "Starts above the final position."
      }
    },
    "dot": {
      "duration": {
        "$type": "duration",
        "$value": "300ms"
      },
      "delay": {
        "$type": "duration",
        "$value": "650ms",
        "$description": "The dot appears when the feather has nearly arrived."
      },
      "easing": {
        "$type": "cubicBezier",
        "$value": [
          0,
          0,
          0.58,
          1
        ],
        "$description": "ease-out."
      }
    }
  },
  "discourse": {
    "$description": "Colour palettes for Discourse (ngn.gg), based on the default theme Foundation. Keys are the twelve base colours of Discourse. scripts/build_discourse.py generates discourse/ from it and checks the contrast. References to color.* where possible; the status colours and tints exist nowhere else in the brand.",
    "$type": "color",
    "light": {
      "primary": {
        "$value": "{color.ash.950}",
        "$description": "Text."
      },
      "secondary": {
        "$value": "{color.ash.50}",
        "$description": "Page background."
      },
      "tertiary": {
        "$value": "{color.ember.700}",
        "$description": "Links and primary buttons. Brand red."
      },
      "quaternary": {
        "$value": "{color.violet.600}",
        "$description": "Accent of NGN."
      },
      "header_background": {
        "$value": "{color.ash.100}"
      },
      "header_primary": {
        "$value": "{color.ash.950}"
      },
      "highlight": {
        "$value": { "colorSpace": "oklch", "components": [0.8787, 0.0601, 298.98], "hex": "#DCCFFA" },
        "$description": "Violet tint for highlighted posts."
      },
      "selected": {
        "$value": { "colorSpace": "oklch", "components": [0.909, 0.0374, 299.18], "hex": "#E4DCF7" },
        "$description": "Violet tint for the selected row."
      },
      "hover": {
        "$value": "{color.ash.100}"
      },
      "danger": {
        "$value": { "colorSpace": "oklch", "components": [0.5386, 0.1937, 26.72], "hex": "#C62828" },
        "$description": "Errors. Lighter than the brand red so errors and links are not confused."
      },
      "success": {
        "$value": { "colorSpace": "oklch", "components": [0.5152, 0.1258, 150.6], "hex": "#1E7B3F" }
      },
      "love": {
        "$value": { "colorSpace": "oklch", "components": [0.5313, 0.2015, 5.62], "hex": "#C2185B" },
        "$description": "Like heart."
      }
    },
    "dark": {
      "primary": {
        "$value": "{color.ash.100}"
      },
      "secondary": {
        "$value": "{color.ash.900}"
      },
      "tertiary": {
        "$value": "{color.ember.400}"
      },
      "quaternary": {
        "$value": "{color.violet.400}"
      },
      "header_background": {
        "$value": "{color.ash.950}"
      },
      "header_primary": {
        "$value": "{color.ash.100}"
      },
      "highlight": {
        "$value": { "colorSpace": "oklch", "components": [0.3421, 0.1085, 291.68], "hex": "#3B2A6B" }
      },
      "selected": {
        "$value": { "colorSpace": "oklch", "components": [0.2771, 0.0298, 298.77], "hex": "#2A2535" }
      },
      "hover": {
        "$value": { "colorSpace": "oklch", "components": [0.285, 0.0, 0.0], "hex": "#2A2A2A" },
        "$description": "Between Soot and Ash 800 (OKLCH mix: 60 % Ash 800, 40 % Soot), so links on hover still reach 4.5 : 1."
      },
      "danger": {
        "$value": { "colorSpace": "oklch", "components": [0.7102, 0.1823, 25.87], "hex": "#FF6B63" }
      },
      "success": {
        "$value": { "colorSpace": "oklch", "components": [0.7117, 0.164, 151.35], "hex": "#3DBE6B" }
      },
      "love": {
        "$value": { "colorSpace": "oklch", "components": [0.7444, 0.1659, 2.99], "hex": "#FF7AA2" }
      }
    }
  }
}
