# Lexical design system

> Lexical design system measured from lexical.dev: Arial font, #51A2FF primary on #FAFAFA, 16 color hex codes, type scale, spacing and a free DESIGN.md.

Canonical page: https://sitepeel.dev/design-md/lexical.dev/

Lexical’s website (lexical.dev) uses the Arial font and #51A2FF as its main color on a #FAFAFA background. Measured by Sitepeel on November 29, 2026.

## What font does Lexical use?

Lexical uses Arial (weight 500) on lexical.dev. Page titles are 36px at weight 700 (30px on phones) and body text is 14px. Measured on November 29, 2026.

- system-ui (weights 400, 500, 700)
- Arial (weights 500)

## Lexical colors: palette and hex codes

Lexical’s main colors are #FAFAFA (snow) for the background, #1C1E21 (charcoal) for text and #51A2FF (blue) as the main accent, with #AED4FF (light blue) and #102445 (deep blue) as other accents. Measured on November 29, 2026.

- #FAFAFA: snow (rgb(250, 250, 250), hsl(0, 0%, 98%))
- #1C1E21: charcoal (rgb(28, 30, 33), hsl(216, 8%, 12%))
- #000000: near black (rgb(0, 0, 0), hsl(0, 0%, 0%))
- #3F3F46: cool graphite (rgb(63, 63, 70), hsl(240, 5%, 26%))
- #71717B: cool slate (rgb(113, 113, 123), hsl(240, 4%, 46%))
- #FFFBEB: pale amber (rgb(255, 251, 235), hsl(48, 100%, 96%))
- #FFFFFF: white (rgb(255, 255, 255), hsl(0, 0%, 100%))
- #F4F4F5: snow (rgb(244, 244, 245), hsl(240, 5%, 96%))

## What is Lexical built with?

Lexical’s website (lexical.dev) is built with Docusaurus, React, Tailwind CSS and Vercel. Measured on November 29, 2026.

- Hosting & CDN: Vercel
- JavaScript framework: Docusaurus 3.10.2, React 19.2.5
- Analytics: Vercel Speed Insights, Vercel Web Analytics, Google Analytics
- UI & CSS: Tailwind CSS 4.x

## Questions and answers

### What font does Lexical use?

Lexical’s website uses Arial (weight 500). Page titles are 36px at weight 700 (30px on phones) and body text is 14px. Measured on November 29, 2026.

### What are the Lexical colors and hex codes?

On lexical.dev: #FAFAFA (snow) for the background, #1C1E21 (charcoal) for text and #51A2FF (blue) as the main accent, with #AED4FF (light blue) and #102445 (deep blue) as other accents. The color palette above lists all 16 colors with their hex codes and where each one is used.

### What is the Lexical design system?

The design system on this page is lexical.dev’s, as measured on November 29, 2026: Arial type, #51A2FF as the main color and 6px corners, written down as a DESIGN.md. It is not Lexical’s own documentation.

### What is Lexical built with?

Lexical’s website (lexical.dev) is built with Docusaurus, React, Tailwind CSS and Vercel. The full tech stack Sitepeel found: Vercel, Docusaurus, React, Vercel Speed Insights, Vercel Web Analytics, Tailwind CSS and Google Analytics. Measured on November 29, 2026.

### What is the Lexical DESIGN.md?

A plain-text file with Lexical’s measured colors, type, spacing, corners and components as tokens, plus short rules, in the DESIGN.md format Google published with Stitch. Your AI coding agent reads it and builds in this style. More about DESIGN.md.

### How do I use it with Claude Code or Cursor?

Download the file and put it in your project’s root folder, then ask your agent to follow DESIGN.md. Step-by-step guides: Claude Code, Cursor, Codex, GitHub Copilot.

### Is this Lexical’s official design system?

No. Sitepeel measured it from lexical.dev’s public page on November 29, 2026. It is an independent analysis, not made or approved by Lexical.

### Can I use Lexical’s style in my own product?

Use it to learn, prototype and compare. For a real product, make the style your own, and never copy Lexical’s logo, name, pictures or text.

### How accurate are the values?

Each value was measured on the rendered page after it fully loaded, on desktop and mobile: colors where they appear, type with tracking, spacing, corners, shadows and hover states. Sites change, so check the date at the top.

## Files

- [DESIGN.md](https://sitepeel.dev/design-md/lexical.dev/DESIGN.md): the plain file to put in your project.
- [All brand DESIGN.md files](https://sitepeel.dev/design-md/examples/index.md)

Independent analysis by Sitepeel (sitepeel.dev), not affiliated with Lexical.

## The DESIGN.md file

```markdown
---
version: alpha
name: Lexical
description: "Light interface measured from lexical.dev: system-ui type with Arial, blue accents, tonal surfaces and 6px corners."
colors:
  background: "#FAFAFA"
  surface: "#FAFAFA"
  on-surface: "#1C1E21"
  on-background: "#1C1E21"
  on-surface-strong: "#000000"
  on-surface-variant: "#3F3F46"
  on-surface-muted: "#71717B"
  surface-container-low: "#FFFBEB"
  surface-container: "#FFFFFF"
  surface-container-high: "#F4F4F5"
  surface-container-highest: "#EEF2FF"
  overlay: "#FFFFFF99"
  outline: "#D4D4D8"
  outline-variant: "#C7D2FF"
  primary: "#51A2FF"
  on-primary: "#000000"
  secondary: "#AED4FF"
  tertiary: "#102445"
typography:
  headline-display:
    fontFamily: system-ui
    fontSize: 36px
    fontWeight: 700
    lineHeight: 1.11
  headline-lg:
    fontFamily: system-ui
    fontSize: 20px
    fontWeight: 700
    lineHeight: 1.25
  body-md:
    fontFamily: system-ui
    fontSize: 14px
    fontWeight: 400
    lineHeight: 1.65
  body-lg:
    fontFamily: system-ui
    fontSize: 16px
    fontWeight: 400
    lineHeight: 1.65
  label-md:
    fontFamily: Arial
    fontSize: 14px
    fontWeight: 500
    lineHeight: 1.43
  label-sm:
    fontFamily: system-ui
    fontSize: 12px
    fontWeight: 500
    lineHeight: 1.33
  headline-display-mobile:
    fontFamily: system-ui
    fontSize: 30px
    fontWeight: 700
    lineHeight: 1.2
rounded:
  sm: 6px
  md: 16px
  lg: 32px
  full: 9999px
spacing:
  xs: 4px
  sm: 6px
  md: 12px
  lg: 32px
  xl: 40px
  gutter: 24px
  section: 48px
  margin: 32px
components:
  button-primary:
    backgroundColor: "{colors.primary}"
    textColor: "{colors.on-primary}"
    typography: "{typography.body-md}"
    rounded: "{rounded.sm}"
    padding: 8px 24px
    height: 36px
  button-primary-hover:
    textColor: "#76B6FF"
  button-outline:
    backgroundColor: "{colors.surface-container}"
    textColor: "{colors.on-surface-variant}"
    typography: "{typography.label-sm}"
    rounded: "{rounded.sm}"
    padding: 6px 12px
    height: 30px
  button-outline-hover:
    textColor: "#76B6FF"
  input-field:
    backgroundColor: "#EBEDF0"
    textColor: "#444950"
    rounded: "{rounded.lg}"
    padding: 0px 8px 0px 36px
---

# Lexical Design System

## Overview

Lexical describes itself as: “A text editor framework that does things differently” The interface is light, built on **Snow (#FAFAFA)** with **Charcoal (#1C1E21)** text, and **Blue (#51A2FF)** as the main accent.

Type is set in **system-ui** and **Arial**. Headlines run large; body text is 14px. Depth comes from soft drop shadows. Corners are mostly 6px.

Measured from [lexical.dev](https://lexical.dev/) on November 29, 2026 at 1440×900 and 390×844 from 133 rendered elements. Values are computed styles from the live page, not the original source files.

## Colors

The palette has 16 roles, plus gradient stops #76B6FF, #00C896.

- **Snow (#FAFAFA):** Page background. Token `background`.
- **Charcoal (#1C1E21):** Primary text and headings, seen 30 times. Token `on-surface`, CSS `--ifm-navbar-link-color`.
- **Near Black (#000000):** Headings and emphasis, seen 2 times. Token `on-surface-strong`.
- **Cool Graphite (#3F3F46):** Secondary text, seen 7 times. Token `on-surface-variant`.
- **Cool Slate (#71717B):** Muted text and metadata, seen 3 times. Token `on-surface-muted`.
- **Pale Amber (#FFFBEB):** Raised areas one step from the page, seen 1 time. Token `surface-container-low`.
- **White (#FFFFFF):** Cards and panels, seen 6 times. Token `surface-container`, CSS `--ifm-background-surface-color`.
- **Snow (#F4F4F5):** Hover and pressed fills, seen 1 time. Token `surface-container-high`, CSS `--color-zinc-100`.
- **Cool Snow (#EEF2FF):** Highest raised elements, seen 1 time. Token `surface-container-highest`.
- **White 60% (#FFFFFF99):** Translucent fill for cards and controls, seen 1 time. Token `overlay`.
- **Silver (#D4D4D8):** Borders and dividers, seen 5 times. Token `outline`.
- **Pale Indigo (#C7D2FF):** Secondary dividers, seen 1 time. Token `outline-variant`.
- **Blue (#51A2FF):** Primary buttons and calls to action, seen 5 times. Token `primary`, CSS `--ifm-color-primary-dark`.
- **Near Black (#000000):** Text and icons on primary. Token `on-primary`.
- **Light Blue (#AED4FF):** Accent (CSS variable). Token `secondary`.
- **Deep Blue (#102445):** Accent (CSS variable). Token `tertiary`.

## Typography

**system-ui** and **Arial** share the interface. Fallback stack: `system-ui, -apple-system, Segoe UI, Roboto`.

- **headline-display:** system-ui 36px at weight 700, line height 1.11 (30px on mobile). Page title (h1).
- **headline-lg:** system-ui 20px at weight 700, line height 1.25. Section headings (h2).
- **body-md:** system-ui 14px at weight 400, line height 1.65. Body text.
- **body-lg:** system-ui 16px at weight 400, line height 1.65. Lead paragraphs.
- **label-md:** Arial 14px at weight 500, line height 1.43. Buttons, navigation and labels.
- **label-sm:** system-ui 12px at weight 500, line height 1.33. Small labels and badges.

## Layout

Spacing does not follow a strict grid: 54% of measured values are multiples of 4px, so match the measured steps rather than rounding to a grid.

- **Scale:** xs 4px, sm 6px, md 12px, lg 32px, xl 40px.
- **Sections:** 48px vertical padding between major sections.
- **Gaps:** 24px is the most common gap in flex and grid layouts.
- **Page margin:** 32px on each side of full-width sections.

## Elevation & Depth

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

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

## Shapes

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

- **sm (6px):** 112 elements.
- **md (16px):** 8 elements.
- **lg (32px):** 4 elements.
- **full (9999px):** 4 elements.

## Components

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

- **button-primary (“Get Started”):** #51A2FF fill, #000000 text, 14px/700, 6px radius, padding 8px 24px.
- **button-primary-hover:** background #51A2FF, text #76B6FF on hover.
- **button-outline (“Open in StackBlitz”):** #FFFFFF fill, #3F3F46 text, 12px/500, 6px radius, padding 6px 12px, border 1px solid #D4D4D8.
- **button-outline-hover:** background #FFFFFF, text #76B6FF on hover.
- **input-field (“Search”):** #EBEDF0 fill, #444950 text, 13px/400, 32px radius, padding 0px 8px 0px 36px.

## Do's and Don'ts

- Do use #FAFAFA for the page and lift surfaces in small steps: #FFFBEB, #FFFFFF, #F4F4F5, #EEF2FF.
- Do keep text in 4 levels: #1C1E21, #000000, #3F3F46, #71717B.
- Do reserve #51A2FF for primary actions and key highlights.
- Do reuse the measured spacing steps (6px, 12px, 32px).
- Do use 6px corners on most elements; larger surfaces also use 16px and 32px.
- Don't introduce new font families beyond system-ui and Arial.
- Don't use #51A2FF for large backgrounds or body text.
- Don't make interface transitions slower than 0.3s.

## Motion

Interface transitions are quick: 0.15s, 0.2s, 0.3s.

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

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

```
