---
version: alpha
name: SafeBook
description: "Dark interface measured from fazpronoy.pythonanywhere.com: Chakra Petch type with IBM Plex Sans, teal accents, tonal surfaces and pill-shaped controls."
colors:
  background: "#05080C"
  surface: "#05080C"
  on-surface: "#D7E9E2"
  on-background: "#D7E9E2"
  on-surface-strong: "#FFFFFF"
  on-surface-variant: "#CFE5DD"
  on-surface-muted: "#8BA39B"
  surface-container-low: "#070B10"
  surface-container: "#0D141C"
  surface-container-high: "#121C27"
  overlay: "#2EE59D24"
  overlay-strong: "#FFFFFF14"
  outline: "#1B2A36"
  outline-variant: "#2EE59D40"
  primary: "#2EE59D"
  on-primary: "#03140D"
  secondary: "#63EDB7"
typography:
  headline-display:
    fontFamily: Chakra Petch
    fontSize: 51px
    fontWeight: 700
    lineHeight: 1.08
    letterSpacing: 0.01em
  headline-lg:
    fontFamily: Chakra Petch
    fontSize: 27px
    fontWeight: 650
    lineHeight: 1.15
    letterSpacing: 0.01em
  body-md:
    fontFamily: IBM Plex Sans
    fontSize: 14.5px
    fontWeight: 400
    lineHeight: 1.6
  body-sm:
    fontFamily: IBM Plex Sans
    fontSize: 13px
    fontWeight: 400
    lineHeight: 1.6
  label-lg:
    fontFamily: Chakra Petch
    fontSize: 16px
    fontWeight: 650
    lineHeight: 1.15
    letterSpacing: 0.01em
  label-md:
    fontFamily: IBM Plex Sans
    fontSize: 15px
    fontWeight: 400
    lineHeight: 1.6
  label-sm:
    fontFamily: Chakra Petch
    fontSize: 13.5px
    fontWeight: 600
    lineHeight: 1.6
    letterSpacing: 0.03em
  code:
    fontFamily: Fira Code
    fontSize: 12px
    fontWeight: 400
    lineHeight: 1.6
    letterSpacing: 0.06em
  headline-display-mobile:
    fontFamily: Chakra Petch
    fontSize: 33.5px
    fontWeight: 700
    lineHeight: 1.08
    letterSpacing: 0.01em
  headline-lg-mobile:
    fontFamily: Chakra Petch
    fontSize: 21.5px
    fontWeight: 650
    lineHeight: 1.15
    letterSpacing: 0.01em
rounded:
  sm: 4px
  md: 6px
  lg: 8px
  xl: 10px
  full: 9999px
spacing:
  xs: 2px
  sm: 6px
  md: 12px
  lg: 20px
  xl: 56px
  gutter: 8px
  section: 56px
  container: 1080px
components:
  button-primary:
    backgroundColor: "{colors.primary}"
    textColor: "{colors.on-primary}"
    typography: "{typography.label-sm}"
    rounded: "{rounded.md}"
    padding: 6px 12px
    height: 34px
  button-primary-hover:
    backgroundColor: "{colors.secondary}"
  button-secondary:
    backgroundColor: "{colors.on-surface}"
    textColor: "{colors.surface-container}"
    typography: "{typography.label-md}"
    rounded: "{rounded.full}"
    padding: 0px 16px
    height: 44px
  button-outline:
    textColor: "{colors.on-surface-variant}"
    typography: "{typography.label-sm}"
    rounded: "{rounded.md}"
    padding: 0px 12px
    height: 40px
  button-ghost:
    textColor: "{colors.on-surface}"
    typography: "{typography.label-sm}"
    rounded: "{rounded.md}"
    padding: 6px 12px
  card:
    backgroundColor: "{colors.surface-container}"
    textColor: "{colors.on-surface}"
    typography: "{typography.label-md}"
    rounded: "{rounded.xl}"
    padding: 16px
  link:
    textColor: "{colors.primary}"
---

# SafeBook Design System

## Overview

SafeBook describes itself as: “SafeBook is a social network where your posts, comments and chats are locked with keys only you and your friends hold. The server stores them without a key of its own.” The interface is dark, built on **Near Black (#05080C)** with **Pale Teal (#D7E9E2)** text, and **Teal (#2EE59D)** as the main accent.

Type is set in **Chakra Petch** and **IBM Plex Sans**, with **Fira Code** for code. Headlines run large; body text is 14.5px. The surface language is flat. Controls are pill-shaped.

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

## Colors

The palette has 15 roles.

- **Near Black (#05080C):** Page background, seen 1 time. Token `background`, CSS `--band`.
- **Pale Teal (#D7E9E2):** Primary text and headings, seen 13 times. Token `on-surface`, CSS `--on-bar`.
- **White (#FFFFFF):** Headings and emphasis, seen 6 times. Token `on-surface-strong`.
- **Light Teal (#CFE5DD):** Secondary text, seen 3 times. Token `on-surface-variant`.
- **Teal (#8BA39B):** Muted text and metadata, seen 23 times. Token `on-surface-muted`, CSS `--muted`.
- **Cool Charcoal (#070B10):** Raised areas one step from the page, seen 2 times. Token `surface-container-low`, CSS `--bar-a`.
- **Cool Charcoal (#0D141C):** Cards and panels, seen 8 times. Token `surface-container`, CSS `--surface`.
- **Deep Blue (#121C27):** Hover and pressed fills, seen 4 times. Token `surface-container-high`, CSS `--surface-2`.
- **Teal 14% (#2EE59D24):** Translucent fill for cards and controls, seen 1 time. Token `overlay`, CSS `--glow-a`.
- **White 8% (#FFFFFF14):** Stronger translucent fill, seen 1 time. Token `overlay-strong`.
- **Deep Blue (#1B2A36):** Borders and dividers, seen 12 times. Token `outline`, CSS `--line`.
- **Teal 25% (#2EE59D40):** Secondary dividers, seen 3 times. Token `outline-variant`.
- **Teal (#2EE59D):** Primary buttons and calls to action, seen 28 times. Token `primary`, CSS `--signal`.
- **Charcoal (#03140D):** Text and icons on primary. Token `on-primary`.
- **Teal (#63EDB7):** Accent (CSS variable). Token `secondary`.

## Typography

**Chakra Petch**, **IBM Plex Sans** and **Fira Code** (monospace) share the interface. Fallback stack: `Chakra Petch, IBM Plex Sans, system-ui, sans-serif`.

- **headline-display:** Chakra Petch 51px at weight 700, line height 1.08, tracking 0.01em (33.5px on mobile). Page title (h1).
- **headline-lg:** Chakra Petch 27px at weight 650, line height 1.15, tracking 0.01em (21.5px on mobile). Section headings (h2).
- **body-md:** IBM Plex Sans 14.5px at weight 400, line height 1.6. Body text.
- **body-sm:** IBM Plex Sans 13px at weight 400, line height 1.6. Secondary and small text.
- **label-lg:** Chakra Petch 16px at weight 650, line height 1.15, tracking 0.01em. Large buttons and tabs.
- **label-md:** IBM Plex Sans 15px at weight 400, line height 1.6. Buttons, navigation and labels.
- **label-sm:** Chakra Petch 13.5px at weight 600, line height 1.6, tracking 0.03em. Small labels and badges.
- **code:** Fira Code 12px at weight 400, line height 1.6, tracking 0.06em. Code and technical values.

## 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 2px, sm 6px, md 12px, lg 20px, xl 56px.
- **Sections:** 56px vertical padding between major sections.
- **Gaps:** 8px is the most common gap in flex and grid layouts.
- **Container:** content is capped at 1080px.
- **Breakpoints:** 420px, 560px, 640px, 760px, 900px, 1180px.

## Elevation & Depth

The design is flat: no shadows were measured. Hierarchy comes from tonal surface steps (#070B10 → #0D141C → #121C27) and #1B2A36 borders.

## Shapes

Interactive controls are pill-shaped. Measured radii, most used first:

- **md (6px):** 48 elements.
- **full (9999px):** 36 elements.
- **xl (10px):** 16 elements.
- **sm (4px):** 4 elements.
- **lg (8px):** 4 elements.

## Components

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

- **button-primary (“Join”):** #2EE59D fill, #03140D text, 13.76px/700, 6px radius, padding 6px 12px.
- **button-primary-hover:** background #63EDB7, text #03140D on hover.
- **button-secondary (“Only me”):** #D7E9E2 fill, #0D141C text, 15px/600, 999px radius, padding 0px 16px, border 1px solid #D7E9E2.
- **button-outline (“As a friend”):** transparent fill, #CFE5DD text, 13.6px/600, 6px radius, padding 0px 12px, border 1px solid #2EE59D40.
- **button-ghost (“Sign in”):** transparent fill, #D7E9E2 text, 13.76px/700, 6px radius, padding 6px 12px.
- **card:** #0D141C fill, #D7E9E2 text, 15px/400, 10px radius, padding 16px, border 1px solid #1B2A36.
- **link:** transparent fill, #2EE59D text, padding 0px.

## Do's and Don'ts

- Do use #05080C for the page and lift surfaces in small steps: #070B10, #0D141C, #121C27.
- Do keep text in 4 levels: #D7E9E2, #FFFFFF, #CFE5DD, #8BA39B.
- Do reserve #2EE59D for primary actions and key highlights.
- Do reuse the measured spacing steps (6px, 12px, 20px).
- Do make buttons and chips fully rounded (9999px); most other elements use 6px corners.
- Don't add drop shadows for depth; use tonal surfaces.
- Don't introduce new font families beyond Chakra Petch, IBM Plex Sans and Fira Code.
- Don't use #2EE59D for large backgrounds or body text.
- Don't make interface transitions slower than 0.15s.

## Motion

Interface transitions are quick: 0.15s, 0.1s.

- **Easing:** `ease`.
- **Reduced motion:** the page responds to `prefers-reduced-motion`.

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