Loading...
Loading...
Author/validate/export Google's DESIGN.md token spec files.
npx skill4agent add nousresearch/hermes-agent design-mdgoogle-labs-code/design.mdnpx @google/design.mdpopular-web-designsclaude-design---
version: alpha
name: Heritage
description: Architectural minimalism meets journalistic gravitas.
colors:
primary: "#1A1C1E"
secondary: "#6C7278"
tertiary: "#B8422E"
neutral: "#F7F5F2"
typography:
h1:
fontFamily: Public Sans
fontSize: 3rem
fontWeight: 700
lineHeight: 1.1
letterSpacing: "-0.02em"
body-md:
fontFamily: Public Sans
fontSize: 1rem
rounded:
sm: 4px
md: 8px
lg: 16px
spacing:
sm: 8px
md: 16px
lg: 24px
components:
button-primary:
backgroundColor: "{colors.tertiary}"
textColor: "#FFFFFF"
rounded: "{rounded.sm}"
padding: 12px
button-primary-hover:
backgroundColor: "{colors.primary}"
---
## Overview
Architectural Minimalism meets Journalistic Gravitas...
## Colors
- **Primary (#1A1C1E):** Deep ink for headlines and core text.
- **Tertiary (#B8422E):** "Boston Clay" — the sole driver for interaction.
## Typography
Public Sans for everything except small all-caps labels...
## Components
`button-primary` is the only high-emphasis action on a page...| Type | Format | Example |
|---|---|---|
| Color | | |
| Dimension | number + unit ( | |
| Token reference | | |
| Typography | object with | see above |
backgroundColortextColortypographyroundedpaddingsizeheightwidthbutton-primary-hoverDESIGN.mdwrite_filename:colors:{colors.primary}components:tailwind.theme.jsontokens.json@google/design.mdnpx# Validate structure + token references + WCAG contrast
npx -y @google/design.md lint DESIGN.md
# Compare two versions, fail on regression (exit 1 = regression)
npx -y @google/design.md diff DESIGN.md DESIGN-v2.md
# Export to Tailwind theme JSON
npx -y @google/design.md export --format tailwind DESIGN.md > tailwind.theme.json
# Export to W3C DTCG (Design Tokens Format Module) JSON
npx -y @google/design.md export --format dtcg DESIGN.md > tokens.json
# Print the spec itself — useful when injecting into an agent prompt
npx -y @google/design.md spec --rules-only --format json-lint--format jsonbroken-ref{colors.missing}duplicate-section## Headinginvalid-colorinvalid-dimensioninvalid-typographywcag-contrasttextColorbackgroundColorunknown-component-propertybutton-primary.hoverbutton-primary-hover##1A1C1EletterSpacing: -0.02emletterSpacing: "-0.02em"version: alpha{colors.primary}{primary}@google/design.md