From swiftui
Establishes a shared design system with standardized constants for fonts, colors, spacing, and animations. Enforces accessibility rules and system-styling best practices for SwiftUI apps.
How this command is triggered — by the user, by Claude, or both
Slash command
/swiftui:designswiftui-review/references/The summary Claude sees in its command listing — used to decide when to auto-load this command
# Design ## Creating a uniform design in this app Prefer to place standard fonts, sizes, colors, stack spacing, padding, rounding, animation timings, and more into a shared enum of constants, so they can be used by all views. This allows the app’s design to feel uniform and consistent, and be adjusted easily. ## Requirements for flexible, accessible design - Never use `UIScreen.main.bounds` to read available space; prefer alternatives such as `containerRelativeFrame()`, or `visualEffect()` as appropriate, or (if there is no alternative) `GeometryReader`. - Prefer to avoid fixed frames ...
Prefer to place standard fonts, sizes, colors, stack spacing, padding, rounding, animation timings, and more into a shared enum of constants, so they can be used by all views. This allows the app’s design to feel uniform and consistent, and be adjusted easily.
UIScreen.main.bounds to read available space; prefer alternatives such as containerRelativeFrame(), or visualEffect() as appropriate, or (if there is no alternative) GeometryReader.ContentUnavailableView when data is missing or empty, rather than designing something custom.searchable(), you can show empty results using ContentUnavailableView.search and it will include the search term they used automatically – there’s no need to use ContentUnavailableView.search(text: searchText) or similar.Label over HStack.Form, wrap controls such as Slider in LabeledContent so the title and control are laid out correctly.RoundedRectangle, the default rounding style is .continuous – there is no need to specify it explicitly.bold() instead of fontWeight(.bold), because using bold() allows the system to choose the correct weight for the current context.fontWeight() for weights other than bold when there's an important reason - scattering around fontWeight(.medium) or fontWeight(.semibold) is counterproductive.UIColor) in SwiftUI code; use SwiftUI Color or asset catalog colors..caption2 is extremely small, and is generally best avoided. Even the font size .caption is on the small side, and should be used carefully.5plugins reuse this command
First indexed Mar 13, 2026
npx claudepluginhub fradser/dotclaude --plugin swiftui/create-viewGenerates a SwiftUI view with proper MVVM architecture, state management, accessibility, dark mode, and preview configurations.
/improve-aestheticsImproves UI component visual quality by applying 2025 design principles for hierarchy, spacing, color theory, and typography. Produces WCAG-compliant, aesthetically refined CSS.
/add-accessibilityBu komut SwiftUI dosyalarini tarayarak eksik accessibility identifier'lari otomatik ekler ve Dynamic Type uyumsuzluklarini raporlar.
/convertConverts a Claude-generated HTML design into a SwiftUI View file in the active Xcode workspace, with visual diff iteration.
/designDesigns system architecture, APIs, component interfaces, and database schemas. Produces comprehensive specifications, diagrams, and code with industry best practices and scalability considerations.
/designGuides users through a complete frontend design process including discovery, trend research, moodboard creation, color/font selection, and production-ready code generation.