Index of every page on this site: llms.txt
All skills
Run it yourself

Use when designing or building a modern React + Vite + Tailwind v4 frontend for a Rust desktop (Tauri v2) or web application. Provides a brand-neutral Dark-First + Light Mode token system, hairline glass surface hierarchy, crisp typography, accessible motion, and Rust ts-rs contract integration.

Use this Skill: https://skilld.dev/gh/kj-aiml/rust-product-skills/modern-ui-design

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈79 tokens for metadata: the name and description. ≈960 when used: this file. ≈1.4k more on demand in 2 files.

Description uses 3.9% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈315 characters, or 3.9%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Modern UI Design System (Brand-Neutral Base)

Overview

A clean, modern interface earns trust through restraint: crisp contrast, clear visual hierarchy, predictable interactive states, and zero visual clutter. This skill defines a brand-neutral design foundation—adapt the accent palette and emblem to each product's own identity rather than locking in any fixed brand.

Read the detailed references before styling components:

Visual Philosophy

  1. Dark-First, Dual-Theme Ready: Default to a deep, neutral obsidian canvas (#0F0F0F / oklch neutral dark) rather than muddy navy-grey, with a first-class crisp Light Mode token set (#FAFAFB canvas, #FFFFFF elevated cards) toggled cleanly via .dark / prefers-color-scheme.
  2. Surface Hierarchy via Hairlines & Luminance: Separate layers with 1px low-opacity hairline borders (rgba(255,255,255,0.08) in dark; rgba(15,15,18,0.08) in light) and subtle top inner highlights (inset 0 1px 0)—not heavy drop shadows or cluttered card borders.
  3. Restrained Glass & Ambient Accents: Use backdrop-filter: blur(...) selectively on floating command docks, status pills, and modals so typography always stays crisp. If adding an ambient background texture (subtle radial glow or low-opacity dot-matrix wave), anchor it away from primary text and react calmly to active state.
  4. Crisp Typography & Tabular Figures:
    • Pair a geometric sans (Geist / Inter / Outfit) for UI headings and body with a sharp monospace (IBM Plex Mono / JetBrains Mono) using tabular-nums for IPs, IDs, ports, latencies, quotas, and timestamps.
    • Tighten display headings (tracking-tight), keep body text readable (leading-relaxed), and reserve uppercase micro-labels (text-[11px] tracking-[0.18em]) strictly for section kickers.
  5. Motion with Restraint: Prefer crisp 150ms hover/press feedback and meaningful progress indicators (multi-stage phase steppers) over decorative bounce animations. Always honor @media (prefers-reduced-motion: reduce).

Architecture & Rust Contract Rules

  • Stack: React 19 + TypeScript (strict: true) + Vite + Tailwind CSS v4 (@tailwindcss/vite) + accessible primitives (radix-ui) + lucide-react icons.
  • Single Source of Truth (ts-rs): Never hand-duplicate backend structs in TypeScript. Import generated types directly from src/generated/ produced by cargo run -p xtask -- codegen.
  • Thin Bridge + Preview Fallback: Abstract backend communication behind a tiny Bridge interface (createTauriBridge / createHttpBridge + createPreviewBridge). When opened in a standard browser without the native shell or backend, render an explicit Preview Mode banner with scenario links (ready, empty, missing-dep, blocked, error) so every visual state can be verified cleanly.
  • Safety UX Matches Engine Rules: Destructive actions require an explicit confirmation dialog; blocked states explain which rule blocked them and why—never silently swallow clicks.

Visual Verification Gate

Before marking any UI task done:

  1. Run tsc --noEmit and vite build with zero errors.
  2. Inspect the live rendered app in a browser (desktop width ~1280x900 AND narrow/compact width ~768px) checking:
    • Zero console errors or uncaught promise rejections
    • No wrapping collisions on long values (e.g., IPv6 addresses, long file paths, long titles)
    • Clear contrast on active, disabled, warning, and blocked states
    • Interactive state transitions (loading stepper, copy feedback, modal confirm, empty/error states)

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts2d3 checks · Risk SAFE
  • Gen Agent Trust Hub2d

    This skill provides a set of design guidelines, architectural rules, and CSS tokens for building modern React/Tauri interfaces. It contains no malicious code, obfuscation, or suspicious network activities.

  • Socket2d

    No alerts

  • Snyk2d

    Risk: LOW · No issues

Signed by skilld at 9297d75. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 3 days ago

README badge

README badge for kj-aiml/rust-product-skills/modern-ui-design