Logo Vois Tokens

Vois Tokens

Cộng đồng
ommakes
vois-tokens

Rules and patterns for building UI with shadcn/ui, Tailwind v4 or StyleX, and Motion against a Vois design token set. Use when building components, pages, or any UI that should conform to the workspace design system. Covers spacing, typography, color tokens, component architecture, animation, accessibility, and modern CSS/StyleX patterns.

Tổng quan

Nhà phát hànhommakes
Kho mãSkills
Tên kỹ năngvois-tokens
Sao
21
Bản fork
0
Tệp đi kèm
41
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 41 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được ommakes công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Vois Tokens trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/ommakes/Skills/tree/main/vois-tokens
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ommakes/Skills.git /tmp/Skills
mkdir -p .claude/skills
cp -r /tmp/Skills/vois-tokens .claude/skills/vois-tokens
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Vois Tokens trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Vois Tokens ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Vois Tokens với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Vois Tokens Skill

You are building UI for a design system that uses shadcn/ui, Tailwind v4 or StyleX, and Motion. This skill defines the rules, constraints, and patterns you must follow. Deviation from these rules produces inconsistent, unmaintainable UI.

Determine the styling engine before applying implementation-layer rules. Check package.json for tailwindcss vs @stylexjs/stylex, or look for existing stylex.create() usage; ask if genuinely ambiguous. Everything in this skill except references/tailwind-v4.md and references/stylex.md (and the handful of rules tagged engines in data/vois-rules.json) applies identically regardless of engine.

This SKILL.md is the entry point. Detailed rules for each topic live in references/ — read only the file(s) relevant to what you're building, not all of them every time.

Automated checks: a deterministic detector (scripts/detect.mjs) covers the mechanically-verifiable subset of the Pre-Submit Checklist below, plus nine lookalike checks from vois-components, and can run as a per-edit hook in Claude Code, Cursor, or Codex. See references/hooks.md for setup and which rules are covered.


Taste dials

If vois-router loaded VOIS.md, you'll be handed three 1-10 dials — VARIANCE (layout asymmetry), MOTION (animation richness), DENSITY (information per screen). They tune choices you'd otherwise make by default:

  • DENSITY biases spacing scale and default paddings/gaps — high density reaches for the tighter end of the 4/8 scale, low density the looser end.
  • MOTION biases how much animation to add — low motion means essential feedback only; high motion means richer entrance/transition choreography.
  • VARIANCE biases layout — low means symmetric grids, high means asymmetry is welcome. VARIANCE also gates DS-SLOP-001 (centered-hero default fires above 4).

Dials never override hard rules. Every guardrail still applies at every dial value: animations stay under the 300/500ms caps and honor prefers-reduced-motion even at MOTION 10; contrast, touch targets, and spacing-on-the-4/8-scale hold even at DENSITY 10. Dials choose within the allowed range; they never widen it. If no dials were passed, assume the mid defaults (V/M/D = 5/4/5).


Before You Write Anything

  1. Check the component manifest. If a component exists for what you need, use it. Do not build a new one.
  2. Check data/tokens.json for the value you need (spacing, type scale, color, elevation, icon size, breakpoints). If a token exists, use it. Do not hardcode anything.
  3. If neither exists, flag it — don't invent values or components.
  4. If a vois_record_rule_usage tool is available, call it after completing any UI work with the rule IDs you applied — this feeds the self-improving design system. If you violated a rule or found a rule unclear, include it with violated: true or ambiguous: true. If the tool isn't available, this step is optional telemetry — skip it and move on.

Reference Files

Structured lookups — query these instead of scanning a whole reference file when you already know the rule ID, category, or token you need:

  • data/vois-rules.json — every numbered [DS-XXX-NNN] rule from the 15 files below, keyed by id, with category for filtering. Covers spacing, typography, color, components/modals, css-architecture, elevation, iconography, layout/responsive, surfaces, tailwind-v4, stylex, accessibility, and animation. Query by id for a specific rule or by category for a whole topic — don't read a references/*.md file just to re-derive a rule statement that's already indexed here. Rules scoped to one styling engine carry an engines field (["tailwind"] or ["stylex"]); no field means the rule applies under either.
  • data/tokens.json — the actual token values (spacing scale, type scale, easing curves, elevation shadow tiers, icon sizes, breakpoints, contrast minimums, touch target minimum). Rules are constraints; this file is values — they're deliberately separate.

Full reference files — read these when you need the accompanying code examples, tsx/CSS snippets, and "why" explanation for a topic you're building fresh, not just the bare rule text:

FileRead this when you're working on...Rule prefix
references/spacing.mdAny padding, margin, or gap value[DS-SPACING]
references/typography.mdHeadings, body text, type scale, fonts, copy punctuation[DS-TYPOGRAPHY]
references/color.mdColor tokens, OKLCH, dark mode, light-dark()[DS-COLOR]
references/components.mdComponent variants, cva, modals/dialogs, accordions[DS-COMPONENT] [DS-MODAL]
references/surfaces.mdBorder radius, optical alignment, shadows vs. borders, image outlines, enter/exit choreography, icon transitions[DS-SURFACE]
references/elevation.mdShadow/elevation tiers, modal scrim, z-index pairing[DS-ELEVATION]
references/iconography.mdIcon sizing, stroke width[DS-ICON]
references/layout-and-responsive.mdViewport height units, content-visibility, breakpoints, form, field, dialog widths, auto-growing textareas[DS-LAYOUT] [DS-RESPONSIVE] [DS-LAYOUT-WIDTH] [DS-LAYOUT-FIELD]
references/grid.mdGrid classes, margins and gutters, how many columns a card grid holds, push and overlay side panels, the same on web, Flutter and native[DS-GRID] [DS-PANEL]
references/data-tables.mdTable scroll owner, sticky header and first column, scrollbar styling, one-axis wheel lock, responsive table layout, scroll-region accessibility[DS-TABLE]
references/tailwind-v4.mdTailwind v3→v4 migration, container queries, arbitrary values[DS-TAILWIND]
references/stylex.mdProjects using StyleX instead of Tailwind — build setup, defineVars/createTheme, variant composition[DS-STYLEX]
references/animation.mdTiming, easing, reduced motion, Motion library usage, motion tokens[DS-ANIMATION] [DS-MOTION-001] [DS-MOTION-002] [DS-MOTION-003] [DS-MOTION-004] [DS-MOTION-005] [DS-MOTION-006] [DS-MOTION-007]. For when to morph, see vois-patterns/references/motion.md; for morph specs, see vois-components/references/motion-morphs.md
references/accessibility.mdTouch targets, focus states, contrast, semantic HTML[DS-A11Y]
references/css-architecture.md@theme setup, selector specificity, media queries[DS-CSS]
references/marketing-type-and-spacing.mdType scale and spacing for marketing surfaces only (display and h2 face, 56ch body, section gap ratios, gaps above 96px). Ratios are rules, pixel values are starting points[DS-MKT]
references/anti-slop.mdGeneric "AI-looking" layout/styling defaults (centered hero, AI gradient, three-card grids, eyebrow overuse, em dashes) — judgment-only, not indexed in data/vois-rules.json by design; read the file[DS-SLOP]
references/hooks.mdSetting up the automated per-edit checker, managing ignores[DS-HOOKS]

Scoped loading: if you only need one or two rules (e.g. vois-router sent you here for a single component decision), query data/vois-rules.json for those rule IDs, or read only the matching reference file plus this SKILL.md if you need the examples too. You don't need the full set for a scoped task.

Source of truth: data/vois-rules.json is canonical for rule statements, severity, enforcement, and verification (how the rule can be checked: detector, spec, rendered or judgment; a detector rule also names the check in scripts/registry.mjs; a rendered rule needs the page open in a browser). references/*.md may restate a rule for readability and carries the code examples and rationale JSON doesn't — but if the two ever disagree, the JSON wins. scripts/check-rule-sync.mjs (repo root) checks in CI that every [DS-*] tag cited in references/*.md resolves to a real entry in vois-rules.json and vice versa, and scripts/check-verification.py checks that every detector named in the JSON exists in scripts/registry.mjs and every detector in the registry is named by a rule, so the two can't silently drift out of sync.


Pre-Submit Checklist

Run this regardless of which reference files you read — it's the universal gate before calling anything done.

Spacing

  • All spacing values divisible by 4 or 8 [DS-SPACING-001]
  • No arbitrary spacing values [DS-SPACING-003]
  • Consistent at all tested breakpoints [DS-SPACING-004]

Typography

  • No more than 3 text styles in any component [DS-TYPOGRAPHY-001]
  • Heading levels sequential, none skipped [DS-TYPOGRAPHY-002]
  • Numeric data uses monospace with tabular-nums [DS-TYPOGRAPHY-003]
  • Headings have text-wrap: balance [DS-TYPOGRAPHY-006]
  • Body copy has text-wrap: pretty [DS-TYPOGRAPHY-007]
  • Text containers have max-width: 65ch [DS-TYPOGRAPHY-008]
  • Ellipsis is … not ... [DS-TYPOGRAPHY-009]
  • Quotes are curly, not straight [DS-TYPOGRAPHY-010]

Color

  • No hardcoded hex values [DS-COLOR-001]
  • Status uses the info/positive/negative/warning role tokens, never a palette class or stock variant [DS-COLOR-008]
  • No raw Tailwind palette classes where tokens exist [DS-COLOR-002]
  • Both light and dark mode verified manually [DS-COLOR-007]
  • Color is not the only signal for error/success/warning [DS-COLOR-003]
  • Decorative icons have aria-hidden="true" [DS-COLOR-005]

Components

  • Checked component manifest before building anything new [DS-COMPONENT-001]
  • Variants used semantically, not just defaulted [DS-COMPONENT-006]
  • cva used for variant logic [DS-COMPONENT-002]
  • Modals use inert on background content [DS-MODAL-001]
  • Modals have overscroll-behavior: contain [DS-MODAL-002]
  • scrollbar-gutter: stable on html [DS-MODAL-003]

Surfaces

  • Nested rounded elements use concentric radius (outer = inner + padding) [DS-SURFACE-001]
  • Icons/buttons optically aligned, not just geometrically centered [DS-SURFACE-003]
  • Shadows used instead of borders for depth (not for dividers) [DS-SURFACE-007]
  • Image outlines are pure black/white at 0.1 opacity, never tinted [DS-SURFACE-010]
  • Enter animations split into chunks and staggered, not one big container [DS-SURFACE-011]
  • Exit animations are subtler/shorter than enters [DS-SURFACE-013]
  • Icon state transitions use scale 0.25→1, opacity, blur — not visibility toggling [DS-SURFACE-014]

Animation

  • UI animations under 300ms (large elements under 500ms) [DS-ANIMATION-001] [DS-ANIMATION-002]
  • Timing and easing from motion tokens, no literal durations or curves [DS-MOTION-001]
  • A morph runs inside one duration token: old out and new in overlap, never in sequence [DS-MOTION-003]
  • A multi-step tray is one container that stays mounted between steps [DS-MOTION-004]
  • Content left behind by a travelling element blurs at most the [DS-SURFACE-014] value, and the traveller is never blurred [DS-MOTION-005]
  • Springs use motionSpring with bounce: 0, and a retargeted transition continues from its current velocity [DS-MOTION-006]
  • Delight never gates the task, loops pause under reduced motion, one-off effects play once [DS-MOTION-007]
  • No keyboard-triggered animations [DS-ANIMATION-003]
  • transform-origin set to trigger point, not center [DS-ANIMATION-006]
  • No animations from scale(0) [DS-ANIMATION-005]
  • prefers-reduced-motion handled [DS-ANIMATION-004]
  • No transition: all [DS-TAILWIND-005]
  • Hover effects guarded on touch devices [DS-ANIMATION-007]
  • will-change only set when stutter is actually observed, only on transform/opacity/filter [DS-ANIMATION-009]

Accessibility

  • All interactive elements have :focus-visible styles [DS-A11Y-002]
  • No outline: none without a replacement [DS-A11Y-003]
  • Interactive elements have a hit area of at least var(--hit-area-min). The token never sets the visible size [DS-A11Y-001]
  • Contrast passes WCAG AA [DS-A11Y-004]
  • No div or span as interactive elements without ARIA [DS-A11Y-005]
  • All images have alt [DS-A11Y-010]
  • <fieldset> and <legend> used for radio/checkbox groups [DS-A11Y-016]
  • <br> not used for spacing [DS-A11Y-012]
  • <ul>/<ol> used for lists, not stacked divs [DS-A11Y-011]
  • loading="lazy" on below-the-fold images [DS-A11Y-013]

Layout

  • Form, field, and dialog widths use width tokens [DS-LAYOUT-WIDTH-001] [DS-LAYOUT-WIDTH-002] [DS-LAYOUT-WIDTH-003] [DS-LAYOUT-WIDTH-004]
  • Auto-growing textareas use field-sizing: content with an explicit inline-size, lh min and max, and an @supports fallback [DS-LAYOUT-FIELD-001] [DS-LAYOUT-FIELD-002] [DS-LAYOUT-FIELD-003] [DS-LAYOUT-FIELD-004]
  • Using svh/lvh/dvh not vh for viewport-height layouts [DS-LAYOUT-001]
  • Long pages use content-visibility: auto on off-screen sections [DS-LAYOUT-002]
  • Tested at the start of each grid class: narrow, snug, roomy, wide [DS-RESPONSIVE-002]
  • Grid class comes from the region width. Margins and gutters are --grid-* tokens. Card grids use the column formula, not fixed counts [DS-GRID-001] [DS-GRID-004] [DS-GRID-007]
  • Side panels push or overlay by the width rules, and are full screen below --breakpoint-roomy. Panel widths are tokens [DS-PANEL-002] [DS-PANEL-003] [DS-PANEL-006] [DS-PANEL-008]
  • At the tightest breakpoint, primary content stayed full-size and secondary content reflowed/collapsed/hid first — text wasn't shrunk to fit before those were tried [DS-RESPONSIVE-006] [DS-RESPONSIVE-007]
  • No padding-bottom/margin-top used to space siblings — use gap on parent [DS-LAYOUT-COMP-001]
  • No wrapper divs that serve no layout purpose [DS-LAYOUT-COMP-002]
  • min-width: 0 on flex children containing text or overflow-prone content [DS-LAYOUT-COMP-003]
  • Images with set dimensions have object-fit [DS-LAYOUT-COMP-006]
  • aspect-ratio used instead of padding-top percentage hack [DS-LAYOUT-COMP-005]

Data tables (details in references/data-tables.md)

  • One scroll owner per table: the page for a simple table, the wrapper for a complex one [DS-TABLE-001] [DS-TABLE-002] [DS-TABLE-003]
  • No overflow: auto clip or overflow-y: clip workaround. clip computes to hidden [DS-TABLE-004]
  • A complex table's wrapper has a bounded block size, and its flex or grid parents have min-block-size: 0 [DS-TABLE-002] [DS-TABLE-005]
  • Sticky cells use border-collapse: separate, opaque backgrounds, and local z layers inside isolation: isolate [DS-TABLE-006] [DS-TABLE-007]
  • Scrollbars styled with scrollbar-width: thin and scrollbar-color, no ::-webkit-scrollbar [DS-TABLE-010] [DS-TABLE-011]
  • A complex table that scrolls both ways uses the one-axis wheel lock [DS-TABLE-014]
  • The scroll region is focusable, labeled, and the table keeps real table elements [DS-TABLE-015]
  • Header and row heights come from the table_sizes tokens, and the page sets the table offset [DS-TABLE-019]

CSS

  • No #id selectors used for styling [DS-CSS-002]
  • Selectors no deeper than 2 levels without a class [DS-CSS-003]
  • Hand-authored @media queries use em not px [DS-CSS-007]
  • StyleX projects only: build plugin confirmed wired up [DS-STYLEX-001], tokens sourced from defineVars() not literals [DS-STYLEX-002]

Marketing surfaces (only; see references/marketing-type-and-spacing.md)

  • Display face only for display and h2, never below 28px [DS-MKT-002]
  • One display headline per page, one h2 per section [DS-MKT-003]
  • Body text capped at 56ch [DS-MKT-005]
  • Section gap at least 4x the heading-to-content gap [DS-MKT-006]
  • Gaps inside a block smaller than gaps between blocks [DS-MKT-007]

Anti-slop (see references/anti-slop.md — read it before flagging; several are dial-gated)

  • No centered-everything default above VARIANCE 4 [DS-SLOP-001]
  • No purple/indigo→blue "AI gradient" as a default [DS-SLOP-002]
  • Feature groups aren't three identical cards in a row [DS-SLOP-003]
  • Eyebrows capped at ~1 per 3 sections [DS-SLOP-004]
  • No emoji standing in for real icons [DS-SLOP-005]
  • No more than 2 consecutive zigzag sections [DS-SLOP-006]
  • No spec-sheet table on a marketing surface [DS-SLOP-007]
  • Page has some change in pace, not uniform top to bottom [DS-SLOP-008]
  • No em dashes in shipped copy [DS-SLOP-009]
  • No default card-ifying of static sections; drop shadow reserved for interactive elements [DS-SLOP-010]
  • No left-border + corner-radius combo (especially with a shadow) on active nav/sidebar items; use a subtle color shift instead [DS-SLOP-011]

Quick Reference

SituationWhat to doFull detail
Need a componentCheck manifest firstreferences/components.md
Nesting rounded elementsouterRadius = innerRadius + paddingreferences/surfaces.md
Icon or button looks off-centerAlign optically, not geometricallyreferences/surfaces.md
Card/container needs depthLayered box-shadow, not a borderreferences/surfaces.md
Image needs a subtle edge1px outline, pure black/white at 0.1 opacityreferences/surfaces.md
Page or section enteringSplit into chunks, stagger ~100msreferences/surfaces.md
Icon swapping state (play/pause, like)scale 0.25→1 + opacity + blur, exact valuesreferences/surfaces.md
Need a color valueCheck data/tokens.json (color) firstreferences/color.md
Need a spacing valueRound to nearest 4 or 8 — see data/tokens.json (spacing_scale)references/spacing.md
Need a font sizeUse the type scale in data/tokens.json (type_scale)references/typography.md
Need full-screen heightsvh not vhreferences/layout-and-responsive.md
Layout doesn't fit at a breakpointReflow, then collapse, then hide — shrinking type is the last resortreferences/layout-and-responsive.md
Text container widthmax-width: 65ch (DS-TYPOGRAPHY-008)references/typography.md
Two colors switching with themelight-dark()references/color.md
Animating accordion heightinterpolate-size: allow-keywordsreferences/components.md
Building a modalinert + overscroll-behavior + scrollbar-gutterreferences/components.md
Value doesn't exist in tokensFlag it, don't invent it—
Animation feels offCheck transform-origin and slow it downreferences/animation.md
Hover on mobileGuard with @media (hover: hover) and (pointer: fine)references/animation.md
Unsure about contrastMeasure it. 4.5:1 minimum for normal text — see data/tokens.json (contrast_minimums)references/accessibility.md
Space between two adjacent elementsgap on the parent, not padding-bottom on the first childreferences/layout-and-responsive.md
Flex child text overflowing or not truncatingAdd min-width: 0 to the flex childreferences/layout-and-responsive.md
Fixed-size image looks stretchedAdd object-fit: cover or object-fit: containreferences/layout-and-responsive.md
16:9 or other ratio containeraspect-ratio: 16 / 9, not padding-top hackreferences/layout-and-responsive.md
Textarea that grows with contentfield-sizing: content, explicit width, lh min and maxreferences/layout-and-responsive.md
Control smaller than its click areaExtend the hit area to var(--hit-area-min)references/accessibility.md
Form, field, or dialog widthUse the widths tokens in data/tokens.jsonreferences/layout-and-responsive.md
Sticky table header does not stickA table has one scroll owner. overflow-x: auto on the wrapper makes it the owner. Bound its height or remove the overflowreferences/data-tables.md
Table scrolls diagonallyWheel lock on complex tables: scroll only the dominant axisreferences/data-tables.md
Group of radio or checkbox inputsWrap in <fieldset> with <legend>references/accessibility.md
Date or time in content<time datetime="...">references/accessibility.md
Hand-authoring a media queryUse em not px for the breakpoint valuereferences/css-architecture.md
Project uses StyleX instead of TailwindConfirm the build plugin is wired up first, then use defineVars/createTheme/stylex.createreferences/stylex.md
Selector getting hard to overrideYou've gone too deep — add a class insteadreferences/css-architecture.md
Layout keeps landing on a centered heroAbove VARIANCE 4, break it — split/asymmetric/offsetreferences/anti-slop.md
Reaching for a purple→blue gradientStop — that's the AI-slop signature; use accent tokensreferences/anti-slop.md
Three identical feature cards in a rowVary sizes or use a bento/asymmetric gridreferences/anti-slop.md
Every section has an uppercase eyebrowCap at ~1 per 3 sectionsreferences/anti-slop.md
Done with UI workCall vois_record_rule_usage with rule IDs applied, if that tool is available—

Reviewing Existing UI

This section applies only when the task is reviewing, auditing, or polishing existing code against this design system — not when building something new from scratch. If you're asked to "review this component," "make this feel better," or "audit this screen for design system alignment," follow this output format.

No-silent-changes contract

When you're editing existing UI (a redesign, refactor, or polish pass — not a greenfield build), some things are load-bearing outside the visual layer and must never be changed silently as a side effect of restyling:

  • URL / route paths
  • Form field name and id attributes, and API request/response field names
  • Analytics event names, data-* tracking hooks, and test selectors (data-testid)
  • Primary navigation labels and their destinations

These carry meaning that other systems (bookmarks, backends, dashboards, tests, muscle memory) depend on. If a redesign needs to change one, surface it as an explicit proposed change with the reason — don't fold it into a styling diff. Restyle freely; rewrite these only on purpose and out loud.

Before editing, classify the scope of change you're making:

  • Greenfield — no existing UI to preserve; the contract above doesn't apply yet, but starts applying to whatever you ship.
  • Preserve — restyle/refactor only; every load-bearing identifier above must stay identical.
  • Overhaul — structural change is in scope; load-bearing identifiers may change, but only as an explicit, called-out decision — never a silent side effect of a styling pass.

Output Format

Present every change as a markdown table with Before and After columns, grouped under a heading per rule or category. Don't list findings as loose "Before:" / "After:" prose lines outside a table — they're harder to scan and easy to skim past.

  • Include every change made, not a representative subset.
  • One diff per row. Don't bundle two unrelated changes into a single row.
  • Cite the specific file and property when it isn't obvious from the snippet.
  • If a category was checked but nothing needed to change, omit that table entirely. Empty tables are noise, not reassurance.

Example

markdown
#### Concentric border radius `[DS-SURFACE-001]`
| Before | After |
| --- | --- |
| `rounded-xl` on card + `rounded-xl` on inner button (`p-2`) | `rounded-2xl` on card (`12 + 8`), `rounded-lg` on inner button |

#### Tabular numbers `[DS-TYPOGRAPHY-003]`
| Before | After |
| --- | --- |
| `<span>{count}</span>` on animated counter | `<span className="tabular-nums">{count}</span>` |

#### Scale on press `[DS-ANIMATION-008]`
| Before | After |
| --- | --- |
| `scale(0.9)` on button press | Raised to `scale(0.96)` — below `0.95` reads as exaggerated |

Review Checklist

Run this for any review/audit task, regardless of which reference files the underlying build touched:

  • Spacing divisible by 4 or 8, no arbitrary values
  • Color uses tokens, not hardcoded hex or raw Tailwind palette
  • Nested rounded elements use concentric radius
  • Icons/buttons optically aligned, not just geometrically centered
  • Shadows used instead of borders for depth (not dividers)
  • Component manifest checked before any custom-built equivalent
  • Modals have inert, overscroll-behavior: contain, scrollbar-gutter: stable
  • Enter animations split/staggered; exits are subtler and shorter
  • No transition: all; will-change only where stutter was actually observed
  • Hit areas at least var(--hit-area-min); focus-visible styles present
  • Headings use text-wrap: balance; body copy uses text-wrap: pretty
  • Dynamic numbers use tabular-nums
  • No AI-slop defaults — centered-everything hero, purple→blue gradient, three identical cards, eyebrow on every section (references/anti-slop.md)
  • No load-bearing identifiers (URLs, field names, event names, nav labels) changed silently by the restyle

This checklist is deliberately a cross-section of the full pre-submit checklist above — it's what's most likely to be wrong in code that predates this design system, not an exhaustive re-walk of every rule. For a from-scratch build, use the full pre-submit checklist instead.

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Vois Tokens làm được gì?

Rules and patterns for building UI with shadcn/ui, Tailwind v4 or StyleX, and Motion against a Vois design token set. Use when building components, pages, or any UI that should conform to the workspace design system. Covers spacing, typography, color tokens, component architecture, animation, accessibility, and modern CSS/StyleX patterns.

Vì sao nên dùng Vois Tokens trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Vois Tokens là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Vois Tokens trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/ommakes/Skills/tree/main/vois-tokens. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Vois Tokens?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Vois Tokens với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Vois Tokens với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Vois Tokens có miễn phí không?

Có. Kỹ năng này được ommakes phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇