Prompt file imported from shahidhustles/cypher-vuln (
.github/prompts/ui-design.prompt.md). Copyright stays with the author.
CYPHER Design System: "Cipher Control"
This document defines the visual language for CYPHER. It is based on a "Classified Mission Control" aesthetic—dark, monospaced, high-contrast, and data-dense.
Core Philosophy:
- Aesthetic: "Hollywood Hacker" meets "Military Dashboard".
- Function: High-density data presentation.
- Vibe: Serious, urgent, precise.
1. 🎨 Color Palette
We use a strictly limited palette to maintain the "terminal" feel.
Backgrounds
- Void Black:
#000000(Main App Background) - Radar Dark:
#0A0A0A(Card/Panel Backgrounds) - Scanline:
#111111(Table Stripes/Subtle highlights)
Borders & Separators
- Dim Border:
#333333(Standard container borders) - Active Border:
#FFFFFF(Selected/Focused elements)
Accents (Functional)
- 🟢 Success / Online:
#00FF94(Bright Neon Green) -> Use for: Valid, Safe, Completed, Low Severity. - 🟠 Warning / Busy:
#FF9900(Amber/Orange) -> Use for: Scanning, Medium Severity, Metrics. - 🔴 Critical / Alert:
#FF3333(Bright Red) -> Use for: High/Critical Severity, Attack Detected, Errors. - 🔵 System / Info:
#00CCFF(Cyan) -> Use for: AI Metadata, Neutral Info, Encryption.
Text
- Primary:
#EEEEEE(Off-white - pure white is too harsh for large text blocks) - Secondary:
#888888(Muted gray for labels) - Terminal:
#00FF94(For console logs/commands)
2. 🔠 Typography
Font Family: JetBrains Mono, Fira Code, or Geist Mono (Standard Google Font).
- Rule: 95% of UI text should be Monospace. Sans-serif is forbidden for data.
Styles:
- H1 / Page Titles:
Uppercase,Tracking-Widest(Letter spacing +2px). - Labels (Table Headers, Metrics):
Uppercase,Text-xs,Text-Gray-500. - Values:
Normal Case,Text-White.
3. 🧩 UI Components & Patterns
A. The "HUD" Container (Cards)
Every major section is enclosed in a bordered container with specific markers.
- Border: 1px solid
#333. - Corner Brackets: Absolute positioned "L" shapes at the 4 corners of the container.
- Visual:
border-l border-t(white, 2px width, 8px length).
- Visual:
- Header: A small label in the top-left, often outside the border or embedded in the border.
B. Section Headers
- Visual: Vertical Accent Bar on the left.
- Code:
border-l-2 border-orange-500 pl-3 uppercase tracking-wider text-sm font-bold. - Example:
| GLOBAL MISSION METRICS
C. Buttons (Tactical)
- Style: Outline only. No solid backgrounds for primary buttons unless active.
- Normal: Border
#333, Text#888. - Hover: Border
#FFF, Text#FFF, Background#111. - Active/Submit: Border
Green/Orange, TextGreen/Orange, Glow Effect. - Shape: Sharp corners (0px border-radius).
D. Progress Bars (Segmented)
Do not use smooth loading bars. Use "blocks" or "segments".
- Style:
[||||||||||.....] - Implementation: A flex container with 20 small
divs. Active divs havebg-green-500, inactive havebg-gray-800.
E. Status Indicators
- Glowing Dot: An 8px circle with a CSS drop-shadow (glow).
- Green Glow:
box-shadow: 0 0 10px #00FF94
- Green Glow:
- Text: Always Uppercase next to the dot.
● SYSTEM ONLINE
4. 📐 Layout Grid (The Bento Box)
The interface is strictly gridded. Use CSS Grid.
- Gap: Tiny gaps (16px/1rem).
- Structure:
- Sidebar: Slim icon rail (left).
- Main Stage: Large central interactive area (Map/Scanner Output).
- Right Panel: Auxiliary data (Logs/AI Chat).
5. 🕹️ Special Effects (The "Movie Feel")
- Scanlines: A CSS overlay with
pointer-events: noneand a repeating linear gradient to simulate CRT lines. - Blinking Cursor: Standard for terminal inputs.
animation: blink 1s step-end infinite. - Glitch: On critical alerts, use a slight CSS text-shadow glitch effect.
6. Iconography
- Use Lucide React or Heroicons.
- Style: Stroke width
1.5or1. Thin, precise lines.
Example Tailwind Utility Class collection
bg-black text-white font-monoborder border-white/20hover:border-white/60 transition-colorsuppercase tracking-[0.2em] text-xs text-white/50