cmd-check-flutter-duskmoon-design
Original:🇺🇸 English
Translated
Run the /check-flutter-duskmoon-design Claude command workflow in Codex.
13installs
Sourcegsmlg-dev/code-agent
Added on
NPX Install
npx skill4agent add gsmlg-dev/code-agent cmd-check-flutter-duskmoon-designTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →/check-flutter-duskmoon-design
Agent skill wrapper for the Claude command .
/check-flutter-duskmoon-designWhen the original command text references , , or named arguments, map them from the user's current request.
{{INPUT}}$1Command Instructions
Read skill first to understand all design rules, then audit this project for compliance. Report every violation with file path, line number, the offending code, and the correct fix.
phoenix-duskmoon-designChecks
1. Hardcoded Colors (Critical)
Search , , , , files for:
.ex.exs.heex.css.js- Hex colors:
#[0-9a-fA-F]{3,8} - Color functions: ,
rgb(,rgba(,hsl((skip if insidehsla()var(-- - Named CSS colors in properties: ,
color: white, etc.background: black - Tailwind palette classes: ,
bg-blue-500,text-red-600, etc.border-gray-300
Exclude: comments, test files, skill reference files, version strings, SVG / using .
.claude/mix.exsfillstrokecurrentColor2. Theme Setup
- CSS entry has and
@plugin "@duskmoon-dev/core/plugin"@import "phoenix_duskmoon/components" - Root layout has on
data-theme=element<html> - has
<body>or equivalentbg-surface text-on-surface
3. Appbar Uses Primary
Find all and raw appbar HTML. Verify primary color convention:
<.dm_appbar- Phoenix component should render with class
appbar-primary - Raw HTML appbar should have
appbar appbar-primary appbar-sticky
Flag if appbar uses default surface or any other color.
4. Sidebar & Drawer Use Secondary
Find all , , , and sidebar containers. Verify they use secondary color:
<aside><.dm_left_menu><.dm_drawer>- Should have
bg-secondary text-secondary-content - Flag if sidebar uses or any surface token instead of secondary
bg-surface-container
5. Background-Text Pairing
Search for background color classes without their paired text color:
- without
bg-primarytext-primary-content - without
bg-secondarytext-secondary-content - without
bg-tertiarytext-tertiary-content - without
bg-errortext-error-content - without
bg-inverse-surfacetext-inverse-on-surface - without
bg-primary-containertext-on-primary-container
Flag as warnings (text may inherit from parent).
6. Surface Elevation Order
Check for nesting violations — higher-elevation surface containing lower:
- wrapping
surface-container-highestsurface-container-low - wrapping plain
surface-container-highsurface
7. Semantic Color Misuse
Flag or on — buttons use /////, not semantic state colors.
variant="success"variant="info"dm_btnprimarysecondarytertiaryerrorghostoutline8. Multiple Primary Buttons Per View
In each template, count on . Flag if more than one appears outside conditional blocks.
.heexvariant="primary"dm_btn9. Raw HTML Over Components
Flag , , , in files where a equivalent exists. Exclude (component definitions) and .
<button><input><select><table>.heexdm_*lib/phoenix_duskmoon/type="hidden"10. Icon Color Override
Flag or with explicit set to anything other than .
dm_mdidm_bsicolor="currentcolor"11. Tailwind Color Scale
Flag any Tailwind default color scale usage: , , , etc.
bg-blue-*text-slate-*border-zinc-*12. Typography
- Check if project defines custom font variables (,
--font-display,--font-body) in CSS--font-mono - Flag if uses
<body>orfont-family: system-uiorInterwithout a project-specific overrideRoboto - Check headings use a display font class or variable, not the same as body text
13. Layout Depth
- Check or primary content area uses
<main>bg-surface - Check sidebar/aside uses
bg-secondary text-secondary-content - Check drawer uses
bg-secondary text-secondary-content - Flag pages that are entirely flat (only one surface level used across the whole template)
14. Spacing Consistency
In each template, check gap/padding classes. Flag if a single template mixes more than 2 gap scales (e.g., , , in the same view suggests inconsistency).
.heexgap-2gap-4gap-815. Reduced Motion
Check project CSS for rule. Flag as warning if absent and animations/transitions are used.
@media (prefers-reduced-motion: reduce)Output
Phoenix DuskMoon Design Compliance
====================================
[✓|✗] Hardcoded colors: N violations
[✓|✗] Theme setup: OK | missing X
[✓|✗] Appbar color: primary | wrong default
[✓|✗] Sidebar/drawer color: secondary | wrong default
[✓|⚠] BG-text pairing: N warnings
[✓|✗] Surface elevation: OK | N violations
[✓|✗] Semantic color misuse: N violations
[✓|⚠] Multiple primary btns: N warnings
[✓|✗] Raw HTML over components: N instances
[✓|⚠] Icon color override: N warnings
[✓|✗] Tailwind color scale: N violations
[✓|⚠] Typography: OK | N warnings
[✓|⚠] Layout depth: OK | N warnings
[✓|⚠] Spacing consistency: OK | N warnings
[✓|⚠] Reduced motion: OK | missing
Total: N errors, N warningsList each violation grouped by check with file:line, code snippet, and suggested fix.