---
version: alpha
name: NhacVibe
description: "Dark interface measured from nhacvibe.com: system-ui type, light violet accents, tonal surfaces and pill-shaped controls."
colors:
  background: "#171724"
  surface: "#171724"
  on-surface: "#F4F4F8"
  on-background: "#F4F4F8"
  on-surface-strong: "#FFFFFF"
  on-surface-variant: "#9B9BB2"
  surface-container-low: "#11111BF7"
  surface-container: "#0B0B12F5"
  surface-container-high: "#0B0B12"
  surface-container-highest: "#202033"
  overlay: "#00000080"
  overlay-strong: "#000000C7"
  outline: "#FFFFFF14"
  outline-variant: "#47A7EB59"
  primary: "#A78BFA"
  on-primary: "#000000"
  secondary: "#EC4899"
typography:
  headline-display:
    fontFamily: system-ui
    fontSize: 40px
    fontWeight: 700
    lineHeight: 1.1
    letterSpacing: -0.025em
  headline-lg:
    fontFamily: system-ui
    fontSize: 20px
    fontWeight: 800
    lineHeight: 1.2
    letterSpacing: -0.015em
  body-md:
    fontFamily: system-ui
    fontSize: 14px
    fontWeight: 400
    lineHeight: 1.45
  body-lg:
    fontFamily: system-ui
    fontSize: 19px
    fontWeight: 750
    lineHeight: 1.45
    letterSpacing: -0.011em
  body-sm:
    fontFamily: system-ui
    fontSize: 12px
    fontWeight: 400
    lineHeight: 1.4
  label-lg:
    fontFamily: system-ui
    fontSize: 15px
    fontWeight: 400
    lineHeight: 1.45
  label-md:
    fontFamily: system-ui
    fontSize: 14.5px
    fontWeight: 700
    lineHeight: 1.45
  label-sm:
    fontFamily: system-ui
    fontSize: 14px
    fontWeight: 600
    lineHeight: 1.45
  headline-display-mobile:
    fontFamily: system-ui
    fontSize: 26px
    fontWeight: 700
    lineHeight: 1.1
    letterSpacing: -0.038em
rounded:
  sm: 5px
  md: 12px
  lg: 14px
  full: 9999px
spacing:
  xs: 4px
  sm: 6px
  md: 14px
  lg: 18px
  xl: 56px
  gutter: 8px
  margin: 12px
components:
  button-primary:
    textColor: "{colors.on-surface-strong}"
    typography: "{typography.body-md}"
    rounded: "{rounded.full}"
    padding: 9px 16px 9px 12px
    height: 38px
  button-outline:
    backgroundColor: "{colors.surface-container-highest}"
    textColor: "{colors.on-surface}"
    rounded: "{rounded.full}"
    padding: 4px 10px
    height: 28px
  button-secondary:
    textColor: "{colors.on-surface}"
    typography: "{typography.body-md}"
    rounded: "{rounded.full}"
    padding: 8px 14px
    height: 38px
  button-ghost:
    textColor: "{colors.on-surface-strong}"
    typography: "{typography.body-md}"
    rounded: "{rounded.full}"
    padding: 9px 16px 9px 12px
  input-field:
    backgroundColor: "{colors.background}"
    textColor: "{colors.on-surface}"
    rounded: "{rounded.full}"
    padding: 0px 44px 0px 16px
  card:
    backgroundColor: "{colors.background}"
    textColor: "{colors.on-surface}"
    typography: "{typography.label-lg}"
    rounded: 20px
    padding: 14px 14px 4px 14px
  link:
    textColor: "{colors.on-surface}"
---

# NhacVibe Design System

## Overview

NhacVibe describes itself as: “NhacVibe - nghe nhạc YouTube không quảng cáo trên điện thoại Android, iPhone: phát nền khi tắt màn hình, chế độ lái xe, cài app miễn phí, có lời bài hát.” The interface is dark, built on **Cool Charcoal (#171724)** with **Snow (#F4F4F8)** text, and **Light Violet (#A78BFA)** as the main accent.

Type is set in **system-ui**. Headlines run large with tight negative tracking; body text is 14px. Depth comes from soft drop shadows. Controls are pill-shaped.

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

## Colors

The palette has 15 roles, plus gradient stops #8B5CF6, #EC4899, #F59E0B, #8B5CF6BF.

- **Cool Charcoal (#171724):** Page background, seen 4 times. Token `background`, CSS `--surface`.
- **Snow (#F4F4F8):** Primary text and headings, seen 34 times. Token `on-surface`, CSS `--text`.
- **White (#FFFFFF):** Headings and emphasis, seen 18 times. Token `on-surface-strong`.
- **Indigo (#9B9BB2):** Secondary text, seen 24 times. Token `on-surface-variant`, CSS `--muted`.
- **Cool Charcoal 97% (#11111BF7):** Raised areas one step from the page, seen 1 time. Token `surface-container-low`.
- **Cool Charcoal 96% (#0B0B12F5):** Cards and panels, seen 1 time. Token `surface-container`.
- **Cool Charcoal (#0B0B12):** Hover and pressed fills, seen 1 time. Token `surface-container-high`, CSS `--bg`.
- **Deep Indigo (#202033):** Highest raised elements, seen 17 times. Token `surface-container-highest`, CSS `--surface2`.
- **Near Black 50% (#00000080):** Translucent fill for cards and controls, seen 38 times. Token `overlay`.
- **Near Black 78% (#000000C7):** Stronger translucent fill, seen 16 times. Token `overlay-strong`.
- **White 8% (#FFFFFF14):** Borders and dividers, seen 6 times. Token `outline`, CSS `--line`.
- **Vivid Blue 35% (#47A7EB59):** Secondary dividers, seen 1 time. Token `outline-variant`.
- **Light Violet (#A78BFA):** Brand accent (CSS variable), seen 2 times. Token `primary`, CSS `--accent`.
- **Near Black (#000000):** Text and icons on primary. Token `on-primary`.
- **Vivid Pink (#EC4899):** Accent, seen 1 time. Token `secondary`, CSS `--accent2`.

## Typography

**system-ui** carries the whole interface. Fallback stack: `system-ui, -apple-system, Segoe UI, Roboto`.

- **headline-display:** system-ui 40px at weight 700, line height 1.1, tracking -0.025em (26px on mobile). Page title (h1).
- **headline-lg:** system-ui 20px at weight 800, line height 1.2, tracking -0.015em. Section headings (h2).
- **body-md:** system-ui 14px at weight 400, line height 1.45. Body text.
- **body-lg:** system-ui 19px at weight 750, line height 1.45, tracking -0.011em. Lead paragraphs.
- **body-sm:** system-ui 12px at weight 400, line height 1.4. Secondary and small text.
- **label-lg:** system-ui 15px at weight 400, line height 1.45. Large buttons and tabs.
- **label-md:** system-ui 14.5px at weight 700, line height 1.45. Buttons, navigation and labels.
- **label-sm:** system-ui 14px at weight 600, line height 1.45. Small labels and badges.

## Layout

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

- **Scale:** xs 4px, sm 6px, md 14px, lg 18px, xl 56px.
- **Gaps:** 8px is the most common gap in flex and grid layouts.
- **Page margin:** 12px on each side of full-width sections.
- **Breakpoints:** 350px, 480px, 520px, 560px, 600px, 640px, 699px, 700px, 959px, 960px, 1280px, 1500px.

## Elevation & Depth

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

- `rgba(236, 72, 153, 0.45) 0px 4px 14px 0px`
- `rgba(236, 72, 153, 0.28) 0px 6px 18px 0px`
- `rgba(0, 0, 0, 0.45) 0px 16px 36px 0px, rgba(139, 92, 246, 0.2) 0px 0px 36px 0px`

Hairline rings and inset highlights also appear: `rgba(255, 255, 255, 0.06) 0px 0px 0px 1px inset`.

## Shapes

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

- **full (9999px):** 280 elements.
- **md (12px):** 276 elements.
- **lg (14px):** 72 elements.
- **sm (5px):** 64 elements.

## Components

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

- **button-primary (“Phát ngay”):** transparent fill, #FFFFFF text, 14px/700, 999px radius, padding 9px 16px 9px 12px, shadow `rgba(236, 72, 153, 0.28) 0px 6px 18px 0px`.
- **button-outline (“Dùng vị trí của tôi”):** #202033 fill, #F4F4F8 text, 12.5px/600, 999px radius, padding 4px 10px, border 1px solid #FFFFFF14.
- **button-secondary (“🌃 Đêm khuya”):** transparent fill, #F4F4F8 text, 14px/400, 999px radius, padding 8px 14px, border 1px solid #8347EB59.
- **button-ghost (“Phát ngay”):** transparent fill, #FFFFFF text, 14px/700, 999px radius, padding 9px 16px 9px 12px, shadow `rgba(236, 72, 153, 0.28) 0px 6px 18px 0px`.
- **input-field (“Tìm bài hát, nghệ sĩ, thể loại…”):** #171724 fill, #F4F4F8 text, 16px/400, 999px radius, padding 0px 44px 0px 16px, border 1px solid #FFFFFF14.
- **card:** #171724 fill, #F4F4F8 text, 15px/400, 20px radius, padding 14px 14px 4px 14px, border 1px solid #51ABEC4D.
- **link:** transparent fill, #F4F4F8 text, padding 0px.

## Do's and Don'ts

- Do use #171724 for the page and lift surfaces in small steps: #11111BF7, #0B0B12F5, #0B0B12, #202033.
- Do keep text in 3 levels: #F4F4F8, #FFFFFF, #9B9BB2.
- Do use #A78BFA as the brand accent: header, logo and key highlights.
- Do set headlines in system-ui with tight tracking (-0.025em).
- Do reuse the measured spacing steps (6px, 14px, 18px).
- Do make buttons and chips fully rounded (9999px); most other elements use 12px corners.
- Don't introduce new font families beyond system-ui.
- Don't use #A78BFA for large backgrounds or body text.
- Don't make interface transitions slower than 0.55s.

## Motion

Interface transitions are quick: 0.15s, 0.1s, 0.25s, 0.55s. Longer ambient animations run 0.65s.

- **Easing:** `ease`, `cubic-bezier(0.2, 0.7, 0.2, 1)`, `ease-in-out`.
- **Reduced motion:** the page responds to `prefers-reduced-motion`.

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