मुख्य सामग्री पर जाएँ
Skillpedia
इंटरफ़ेस (UI/UX)8.2k · #12531

design-spec

यह क्या करती है

यह स्किल बताती है कि DESIGN.md फ़ाइल कैसे लिखी जाए, जो किसी प्रोजेक्ट के रंग, टाइप, स्पेसिंग और कंपोनेंट का एक ही मार्गदर्शक है। यह उन डिज़ाइनरों और डेवलपर्स के लिए है जिन्हें एक जैसा लुक चाहिए।

कब इस्तेमाल करें

  • ✓जब आप नई वेबसाइट या ऐप शुरू कर रहे हों और स्क्रीन बनाने से पहले लुक तय करना चाहें।
  • ✓जब किसी प्रोजेक्ट को रंग, फ़ॉन्ट और स्पेसिंग के लिए एक साझा सेट चाहिए।
  • ✓जब आप AI को इंटरफ़ेस के लिए एक साफ़ विज़ुअल ब्रीफ़ देना चाहें।

Skill का लिंक

https://github.com/vudovn/ag-kit/blob/main/.agents/skills/design-spec/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/vudovn/ag-kit/blob/main/.agents/skills/design-spec/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मेरी नई कैफ़े वेबसाइट के लिए DESIGN.md लिखिए, जिसमें रंग, फ़ॉन्ट और स्पेसिंग के नियम हों, उससे पहले कि हम कोई पेज बनाएँ।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

फ़ाइल के ऊपर डिज़ाइन मानों का एक मशीन-पढ़ने योग्य ब्लॉक होता है, उसके बाद उन चुनावों को समझाने वाले लिखित नोट्स। AI इसे इंटरफ़ेस बनाते समय आधार मानता है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

DESIGN.md Specification

A DESIGN.md is the single source of truth for a project's visual language. Create it BEFORE building UI. Two layers: machine-readable design tokens (YAML front matter) + human-readable rationale (markdown body). Tokens are normative; prose gives context. Prose may use descriptive names ("Midnight Forest Green") that map to systematic token names (primary).

Format adapted from the DESIGN.md spec (Google Labs, Apache-2.0). A linter/exporter exists: npx @google/design.md.

📚 Reference library: collection.md — 70+ real-world DESIGN.md files (Airbnb, Stripe, Linear, Vercel, Apple…) to study or adapt as a starting point.


When to produce a DESIGN.md

This is a hard gate for UI work (see .agents/rules/design-rules.md): before writing components, pages, or styles, a DESIGN.md must exist at the project root. If absent, create it first from the brief; if present, read it and conform.

The token block converts cleanly to/from tokens.json, Figma variables, and Tailwind theme config — so it is the bridge between design intent and code.


1. File structure

---
<YAML token front matter>
---

# Project Name (optional title)

## Overview
## Colors
## Typography
## Layout
## Elevation & Depth
## Shapes
## Components
## Do's and Don'ts

Front matter MUST begin and end with a line containing exactly ---. Sections use ## headings, appear in the order above, and may be omitted if irrelevant. Domain-specific sections may be added.


2. Token schema (YAML front matter)

version: alpha            # optional
name: Daylight Prestige
description: ...          # optional
colors:
  <token-name>: "#RRGGBB"
typography:
  <token-name>:
    fontFamily: Public Sans
    fontSize: 48px
    fontWeight: 600
    lineHeight: 1.1
    letterSpacing: -0.02em
rounded:
  <scale>: 8px
spacing:
  <scale>: 16px           # Dimension or unitless number
components:
  <component-name>:
    backgroundColor: "{colors.primary}"
    rounded: "{rounded.md}"
    padding: 12px

<scale> is a named level: xs sm md lg xl full (any descriptive key is valid).


3. Type system

Type Format Example
Color # + hex (sRGB) "#1A1C1E"
Dimension number + unit (px/em/rem) 48px, -0.02em
Token Reference {path.to.token} {colors.primary}
Typography composite object see §4

Typography properties: fontFamily (string), fontSize (Dimension), fontWeight (number — bare or quoted are equivalent in YAML), lineHeight (Dimension or unitless multiplier — unitless recommended), letterSpacing (Dimension), fontFeature (string), fontVariation (string).

Token references: wrapped in {} pointing to another value in the tree. Most groups must reference a primitive ({colors.primary-60}), not a group. Inside components, references to composite values are allowed ({typography.label-md}).

Component property tokens: backgroundColor, textColor (Color); typography (Typography); rounded, padding, size, height, width (Dimension).

Variants: define UI states as separate entries with a related key — button-primary, button-primary-hover.


4. Sections (canonical order)

# Section Aliases Purpose
1 Overview Brand & Style Brand personality, audience, emotional tone. Fallback context when a token isn't defined.
2 Colors Palettes; at least primary. Common: primary/secondary/tertiary/neutral.
3 Typography 9–15 levels, each a semantic role (headline/body/label) × size.
4 Layout Layout & Spacing Grid model, spacing scale, containment.
5 Elevation & Depth Elevation Shadows, OR for flat designs the alternative (borders, tonal layers, contrast).
6 Shapes Corner radii, edge treatment, shape language.
7 Components Per-atom guidance: Buttons, Inputs, Cards, Chips, Lists, etc.
8 Do's and Don'ts Guardrails during generation.

5. Recommended token names (guidance, not required)

  • Colors: primary secondary tertiary neutral surface on-surface error
  • Typography: headline-display headline-lg headline-md body-lg body-md body-sm label-lg label-md label-sm
  • Rounded: none sm md lg xl full

6. Consumer behavior for unknown content

The

अक्सर पूछे जाने वाले सवाल

DESIGN.md फ़ाइल में क्या जाता है?

रंग, टाइपोग्राफ़ी, स्पेसिंग और गोल कोनों जैसे डिज़ाइन टोकन, और उनके पीछे लिखे कारण।

क्या मैं किसी उदाहरण से शुरू कर सकता हूँ?

हाँ। स्किल असली दुनिया की DESIGN.md फ़ाइलों के संग्रह की ओर इशारा करती है, जिन्हें आप पढ़ या अपना सकते हैं।

क्या यूज़र इंटरफ़ेस बनाने से पहले इसकी ज़रूरत है?

स्किल इसे एक गेट मानती है, इसलिए कंपोनेंट या पेज लिखने से पहले DESIGN.md होनी चाहिए।

जानकारी

लेखक का मूल विवरण

How to author a DESIGN.md file — the machine-readable design-token + human-rationale format that must exist before any UI is built. YAML front-matter token schema (colors, typography, spacing, rounded, components), type system, token references, and canonical section order.

repo: vudovn/ag-kit

लोकप्रियता

GitHub स्टार
8.2k
रैंकिंग में स्थान
#12531
लाइसेंस
MIT
अपडेट की गई
18/10/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

batch-operations

8.2k

यह आपके एजेंट को एक ही बदलाव कई फ़ाइलों में एक साथ करने में मदद करती है, जैसे किसी फ़ंक्शन का नाम बदलना या पुराना इम्पोर्ट हर जगह बदलना।

कोडिंगसामान्य कोडिंग

brainstorming

8.2k

यह आपके एजेंट को कुछ भी नया या जटिल बनाने से पहले स्पष्ट सवाल पूछना सिखाती है, ताकि वह पहले आपका लक्ष्य समझे।

प्रोडक्टिविटीटास्क और प्रोजेक्ट

code-review-checklist

8.2k

यह आपके एजेंट को सही होने, सुरक्षा, प्रदर्शन, परीक्षण और डॉक्यूमेंटेशन के लिए कोड जाँचने की चेकलिस्ट देती है, AI से जुड़े जोखिमों सहित।

कोडिंगसामान्य कोडिंग

code-review-graph

8.2k

यह आपके एजेंट को संरचना के मानचित्र से बड़े प्रोजेक्ट में कोड समीक्षा करने में मदद करती है, ताकि वह केवल बदलाव से प्रभावित फ़ाइलें पढ़े।

कोडिंगसामान्य कोडिंग

मिलती-जुलती skills