ui-design_skill

This skill helps you design premium, dark-mode UI views with consistent egui components and responsive layouts for finance apps.
  • Rust

3

GitHub Stars

1

Bundled Files

2 months ago

Catalog Refreshed

4 months ago

First Indexed

Readme & install

Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.

Installation

Preview and clipboard use veilstrat where the catalogue uses aiagentskills.

npx veilstrat add skill zuytan/rustrade --skill ui-design

  • SKILL.md3.4 KB

Overview

This skill teaches how to design premium dark-mode user interfaces for a Rust application using egui. It focuses on a financial, professional aesthetic, practical component patterns, and performance-conscious rendering. The guidance covers colors, layout patterns, card styling, and where UI code should live.

How this skill works

The skill inspects and prescribes UI structure and visual rules to implement in egui-based views and components. It provides concrete patterns: where to place components, how to compose layouts with egui helpers, and a reusable card/frame style for content surfaces. It also enforces separation of rendering from business logic and gives thread-safety recommendations for long-running tasks.

When to use it

  • Creating new egui views or reusable components for the app
  • Refactoring or extending existing layouts to match the theme
  • Applying consistent dark-mode styling across windows, panels, and cards
  • Improving UX details like hover feedback, spacing, and hierarchy
  • Ensuring UI code follows performance and threading best practices

Best practices

  • Keep UI components in src/interfaces/ and pass minimal data to render functions
  • Use egui layout helpers: horizontal, vertical, Grid, and allocate_ui for sizing
  • Implement a reusable Card pattern with egui::Frame for consistent surfaces
  • Do not block the UI thread; delegate heavy work to agents or channels
  • Avoid hardcoding colors everywhere—use style visuals or central constants
  • Use ui.add_enabled and ui.push_id to handle interactivity and ID collisions

Example use cases

  • Add a new strategy dashboard panel using the Card pattern and Grid for aligned metrics
  • Refactor the trading control toolbar to ui.horizontal with clear hover states
  • Create a responsive order entry form using allocate_ui and consistent margins
  • Theme all panels to the premium dark palette and verify contrast and readability
  • Replace a blocking calculation in update() with an async agent and channel

FAQ

Place them under src/interfaces/ as submodules and expose small render functions that accept only the data needed.

How do I keep the UI responsive during heavy work?

Avoid blocking update(); offload work to background agents and communicate results via channels to the UI thread.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational