Loading...
Loading...
Quy định spacing, màu sắc, typography, elevation cố định cho toàn bộ app Flutter, để agent không tự "sáng tạo" giao diện mỗi lần. Dùng skill này bất cứ khi nào sinh hoặc sửa UI/widget, hoặc khi user mô tả cảm tính như "đẹp như Grab", "sang trọng hơn", "trẻ trung hơn".
npx skill4agent add hoangsoft90/ai_skills design-systemopenspec/config.yamlcontextcolors:
primary: "#..." # brand color - lấy từ config.yaml nếu user đã cung cấp, nếu chưa dùng Material 3 seed mặc định
surface: "#FFFFFF"
error: "#B3261E"
spacing:
xs: 4
sm: 8
md: 16
lg: 24
xl: 32
radius:
sm: 8
md: 12
lg: 16
typography:
base: Material 3 default (Roboto) trừ khi user chỉ định font khác
elevation:
card: 1
dialog: 3padding: 13Theme.of(context)app/theme/openspec/config.yamlcontextradius.mdmdlgconfig.yamlmcp-loopshared/widgets/