ui-design-lord
Lord skill for UI/UX design mastery — HTML, CSS, Tailwind v4.3, Filament v5 UI components, responsive design, RTL/Arabic, accessibility, and design systems. Do not use for frontend ui expert tasks — u
Files1
View on GitHubSKILL.mdskills/ui-design-lord/SKILL.md
GitHubUI Design Lord
[OBJ] Mastery of UI/UX design for web applications — HTML, CSS, Tailwind v4.3, Filament v5 components, responsive design, RTL/Arabic support, accessibility (a11y), and design systems.
[RULES]
- [CMD] Query Context7 for Tailwind CSS v4.3 and Filament v5 UI docs. Use
/tailwindlabs/tailwindcssand/filament/filamentlibrary IDs. - [REQ] Tailwind v4.3: Use
@themein CSS (NOTtailwind.config.js). Oxide engine (Rust).@containerfor container queries.@starting-stylefor entry animations.motion-reduce:mandatory for a11y. - [REQ] Design Tokens: Define colors, spacing, typography in
@themeblock. Use new palettes (mauve, olive, mist, taupe). Logical properties (ms-*,me-*,ps-*,pe-*) for direction-aware layouts. - [REQ] Filament v5 UI:
Filament\Schemas\Components(unified composition).Schema::make()->components([...]).->deferLoading()for heavy UI.SlideOver::make()->position('left')for RTL. - [REQ] Responsive: Mobile-first approach.
@container-sizefor size-based container queries (not just width).zoom-*for CSS zoom. Test on real devices, not just browser DevTools. - [REQ] RTL/Arabic:
dir="rtl"on<html>. Tailwind logical properties auto-flip. Filament->position('left')for SlideOver. Store translations inlang/ar/. Usebacked enum localefor Filament enum labels. - [REQ] Accessibility (a11y):
motion-reduce:for animations.aria-*attributes on interactive elements.focus-visible:for keyboard nav. Color contrast WCAG AA minimum (4.5:1).sr-onlyfor screen reader text. NEVER rely on color alone for state. - [REQ] Component Architecture: Filament plugins for reusable features.
ComponentManager::resolve()->configureUsing()for global defaults.EvaluatesClosuresfor DI in closures (fn(Get $get, Set $set) => ...). - [REQ] Empty States:
->emptyStateHeading(),->emptyStateDescription(),->emptyStateActions()on stats/widgets. NEVER show raw "No data" — provide actionable empty states with CTAs. - [REQ] Loading States:
->deferLoading()with skeleton placeholders. Loading indicator refactor (v5.8). NEVER show blank content during async loads — use skeletons or spinners. - [REQ] Design Slop Prevention: Use
DesignSlopVerifier(aiZee runtime) to detect AI-generated UI slop. Check for: generic gradients, placeholder text, inconsistent spacing, non-matching brand colors. - [REQ] Brand Consistency: Use
DesignLibrary(aiZee runtime) for 58 brand design systems. Match brand colors, typography, spacing. NEVER invent colors outside the design token system. - [REQ] Performance: Lazy-load images (
loading="lazy").loadedOnRequest()for Filament JS assets. Vite for production builds. NEVER inline large CSS/JS in Blade templates. - [REQ] Dark Mode:
dark:variant.@variant darkin CSS. Filament theme switcher with CSP-safe Alpine. Test both light and dark in every UI review.
[WORKFLOWS]
- Design a Filament Page: Define design tokens in
@theme→ create Schema components → add responsive variants → test RTL → verify a11y → check empty states → add loading skeletons → verify dark mode → run DesignSlopVerifier. - Responsive Layout: Mobile-first CSS →
@containerbreakpoints → test on 375px/768px/1024px/1440px → addmotion-reduce:→ verify touch targets >= 44px → test keyboard navigation. - RTL Setup:
dir="rtl"on<html>→ use logical properties → translate Filament labels inlang/ar/→->position('left')for SlideOver → test with Arabic content → verify text alignment → check icon direction.