---
version: alpha
name: Code Arena
description: "Dark interface measured from codeareana.com: Inter type, amber accents, tonal surfaces and 6px corners."
colors:
  background: "#0F1115"
  surface: "#0F1115"
  on-surface: "#FAFAFA"
  on-background: "#FAFAFA"
  on-surface-variant: "#DCDCAA"
  on-surface-muted: "#C8C8C8"
  on-surface-subtle: "#A3A3A3"
  surface-container-low: "#121212"
  surface-container: "#0C0C0C"
  surface-container-high: "#1A1A1AE6"
  surface-container-highest: "#3A3A3A"
  overlay: "#0A0A0A4D"
  overlay-strong: "#0A0A0A33"
  outline: "#262626B3"
  outline-variant: "#26262666"
  primary: "#FDDF49"
  on-primary: "#171717"
  secondary: "#F5C518"
typography:
  headline-display:
    fontFamily: Inter
    fontSize: 36px
    fontWeight: 700
    lineHeight: 1.11
    letterSpacing: -0.025em
  headline-lg:
    fontFamily: Inter
    fontSize: 24px
    fontWeight: 700
    lineHeight: 1.33
    letterSpacing: -0.025em
  body-md:
    fontFamily: Inter
    fontSize: 16px
    fontWeight: 400
    lineHeight: 1.5
  body-lg:
    fontFamily: Inter
    fontSize: 18px
    fontWeight: 700
    lineHeight: 1.56
    letterSpacing: -0.025em
  body-sm:
    fontFamily: Inter
    fontSize: 12px
    fontWeight: 400
    lineHeight: 1.33
  label-lg:
    fontFamily: Inter
    fontSize: 16px
    fontWeight: 700
    lineHeight: 1.5
  label-md:
    fontFamily: Inter
    fontSize: 14px
    fontWeight: 500
    lineHeight: 1.43
  label-sm:
    fontFamily: Inter
    fontSize: 12px
    fontWeight: 500
    lineHeight: 1.33
  code:
    fontFamily: ui-monospace
    fontSize: 14px
    fontWeight: 400
    lineHeight: 1.63
  headline-display-mobile:
    fontFamily: Inter
    fontSize: 30px
    fontWeight: 700
    lineHeight: 1.2
    letterSpacing: -0.025em
rounded:
  md: 6px
spacing:
  base: 4px
  xs: 4px
  sm: 8px
  md: 12px
  lg: 24px
  xl: 64px
  gutter: 8px
  section: 96px
  container: 1152px
components:
  button-primary:
    backgroundColor: "{colors.primary}"
    textColor: "{colors.on-primary}"
    typography: "{typography.label-lg}"
    padding: 24px
    height: 50px
  button-secondary:
    backgroundColor: "{colors.secondary}"
    textColor: "{colors.on-primary}"
    typography: "{typography.label-md}"
    padding: 6px 12px
    height: 32px
  button-outline:
    backgroundColor: "{colors.background}"
    textColor: "{colors.on-surface}"
    typography: "{typography.body-md}"
    padding: 24px
    height: 50px
  button-ghost:
    textColor: "{colors.on-surface-muted}"
    typography: "{typography.label-md}"
    padding: 6px 12px
  card:
    textColor: "{colors.on-surface}"
    typography: "{typography.body-md}"
    rounded: 0px
    padding: 32px
  link:
    textColor: "{colors.primary}"
---

# Code Arena Design System

## Overview

Code Arena describes itself as: “Practice coding problems, fight 1v1 battles, and run JavaScript, TypeScript, and Python in a free playground — no account, no install.” The interface is dark, built on **Cool Charcoal (#0F1115)** with **Snow (#FAFAFA)** text, and **Amber (#FDDF49)** as the main accent.

Type is set in **Inter**, with **ui-monospace** for code. Headlines run large with tight negative tracking; body text is 16px. Depth comes from soft drop shadows. Corners are mostly 6px.

Measured from [codeareana.com](https://www.codeareana.com/) on November 13, 2026 at 1440×900 and 390×844 from 154 rendered elements. Values are computed styles from the live page, not the original source files.

## Colors

The palette has 16 roles.

- **Cool Charcoal (#0F1115):** Page background, seen 4 times. Token `background`.
- **Snow (#FAFAFA):** Primary text and headings, seen 18 times. Token `on-surface`.
- **Light Yellow (#DCDCAA):** Secondary text, seen 2 times. Token `on-surface-variant`.
- **Silver (#C8C8C8):** Muted text and metadata, seen 11 times. Token `on-surface-muted`.
- **Gray (#A3A3A3):** Subtle text and placeholders, seen 42 times. Token `on-surface-subtle`.
- **Charcoal (#121212):** Raised areas one step from the page, seen 3 times. Token `surface-container-low`.
- **Charcoal (#0C0C0C):** Cards and panels, seen 1 time. Token `surface-container`.
- **Charcoal 90% (#1A1A1AE6):** Hover and pressed fills, seen 1 time. Token `surface-container-high`.
- **Graphite (#3A3A3A):** Highest raised elements, seen 2 times. Token `surface-container-highest`.
- **Near Black 30% (#0A0A0A4D):** Translucent fill for cards and controls, seen 3 times. Token `overlay`.
- **Near Black 20% (#0A0A0A33):** Stronger translucent fill, seen 2 times. Token `overlay-strong`.
- **Graphite 70% (#262626B3):** Borders and dividers, seen 4 times. Token `outline`.
- **Graphite 40% (#26262666):** Secondary dividers, seen 3 times. Token `outline-variant`.
- **Amber (#FDDF49):** Primary buttons and calls to action, seen 27 times. Token `primary`.
- **Charcoal (#171717):** Text and icons on primary. Token `on-primary`.
- **Vivid Amber (#F5C518):** Secondary buttons, seen 3 times. Token `secondary`.

## Typography

**Inter** and **ui-monospace** (monospace) share the interface. Fallback stack: `Inter, Inter Fallback`.

- **headline-display:** Inter 36px at weight 700, line height 1.11, tracking -0.025em (30px on mobile). Page title (h1).
- **headline-lg:** Inter 24px at weight 700, line height 1.33, tracking -0.025em. Section headings (h2).
- **body-md:** Inter 16px at weight 400, line height 1.5. Body text.
- **body-lg:** Inter 18px at weight 700, line height 1.56, tracking -0.025em. Lead paragraphs.
- **body-sm:** Inter 12px at weight 400, line height 1.33. Secondary and small text.
- **label-lg:** Inter 16px at weight 700, line height 1.5. Large buttons and tabs.
- **label-md:** Inter 14px at weight 500, line height 1.43. Buttons, navigation and labels.
- **label-sm:** Inter 12px at weight 500, line height 1.33. Small labels and badges.
- **code:** ui-monospace 14px at weight 400, line height 1.63. Code and technical values.

## Layout

Spacing follows a 4px grid: 93% of measured gaps and paddings are multiples of 4px.

- **Scale:** xs 4px, sm 8px, md 12px, lg 24px, xl 64px.
- **Sections:** 96px vertical padding between major sections.
- **Gaps:** 8px is the most common gap in flex and grid layouts.
- **Container:** content is capped at 1152px.

## Elevation & Depth

Raised elements use soft drop shadows. The most used recipes:

- `rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.1) 0px 1px 2px -1px`

## Shapes

Most elements use 6px corners. Measured radii, most used first:

- **md (6px):** 4 elements.

## Components

Measured from the rendered page. Token values reference the tokens above.

- **button-primary (“Open problem set”):** #FDDF49 fill, #171717 text, 16px/700, 3.35544e+07px radius, padding 24px, border 1px solid #FDDF49, shadow `rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.1) 0px 1px 2px -1px`.
- **button-secondary (“Sign in”):** #F5C518 fill, #171717 text, 14px/600, 3.35544e+07px radius, padding 6px 12px.
- **button-outline (“Battle 1v1”):** #0F1115 fill, #FAFAFA text, 16px/500, 3.35544e+07px radius, padding 24px, border 1px solid #262626CC, shadow `rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.1) 0px 1px 2px -1px`.
- **button-ghost (“Playground”):** transparent fill, #C8C8C8 text, 14px/500, 3.35544e+07px radius, padding 6px 12px.
- **card:** transparent fill, #FAFAFA text, 16px/400, padding 32px.
- **link:** transparent fill, #FDDF49 text, padding 0px.

## Do's and Don'ts

- Do use #0F1115 for the page and lift surfaces in small steps: #121212, #0C0C0C, #1A1A1AE6, #3A3A3A.
- Do keep text in 4 levels: #FAFAFA, #DCDCAA, #C8C8C8, #A3A3A3.
- Do reserve #FDDF49 for primary actions and key highlights.
- Do set headlines in Inter with tight tracking (-0.025em).
- Do keep spacing on the 4px grid.
- Do use 6px corners on most elements.
- Don't introduce new font families beyond Inter and ui-monospace.
- Don't use #FDDF49 for large backgrounds or body text.
- Don't make interface transitions slower than 0.15s.

## Motion

Interface transitions are quick: 0.15s.

- **Easing:** `cubic-bezier(0.4, 0, 0.2, 1)`.
- **Reduced motion:** the page responds to `prefers-reduced-motion`.

Generated by [Sitepeel](https://sitepeel.dev/design-md/codeareana.com/), the free DESIGN.md generator (engine 2026.10.29+f0c146f7cdfd).
