3.4 KiB
3.4 KiB
MK Design System — Conformity Checklist
How to Use
Provide this file plus the code to review to Claude with this prompt: "Review the following code against the conformity checklist below. For each rule, output PASS or FAIL with a specific code callout. Then provide a conformity score."
Rules
Visual Token Conformity
- C-V1: Colors use semantic Tailwind classes (
bg-primary,text-success,border-danger) — no raw hex values in HTML class attributes or:classbindings - C-V2: No hardcoded hex in inline
:styleattributes or@layerCSS rules; usevar(--color-*)or Tailwind classes instead - C-V3: Spacing uses Tailwind scale classes (
mt-4,px-6,py-16) — no inlinestyle="margin: ..."orstyle="padding: ..." - C-V4: Shadows use
shadow-soft-*orshadow-{color}utilities — no custombox-shadowvalues in class attributes - C-V5: Border radius uses
rounded-*utilities (rounded-lg,rounded-2xl,rounded-full) — no inlineborder-radiusstyle values
Component Conformity
- C-C1: All buttons use
MkButtoncomponent or the manual gradient pattern (bg-gradient-{color} shadow-{color} text-white rounded-lg px-6 py-2.5); dark-section buttons usecolor="white"; icon-only buttons are square withp-2 - C-C2: Cards follow
rounded-2xl bg-white shadow-soft-mdbase; card image headers use-mt-6 mx-4 overflow-hidden rounded-xlfloating pattern; interactive cards usemove-on-hover - C-C3: Form inputs use
MkInputwithv-model; raw<input>elements (if used) must haverounded-lg border border-gray-200 px-3 py-2 focus:border-primary focus:ring-1 focus:ring-primary - C-C4: Navigation uses
MkNavbarwithnavItemsprop; custom navbars must replicate scroll-blur behavior (bg-white/90 backdrop-blur-sm) and responsive collapse - C-C5: Alerts use
MkAlertcomponent orrounded-lg px-4 py-3 text-sm bg-{color} text-white— no plain unstyled<div role="alert">
Layout Conformity
- C-L1: Marketing pages use
max-w-7xl mx-auto px-4as the page container — not full-bleed or custommax-widthvalues - C-L2: Responsive breakpoints use Tailwind prefixes (
sm:,md:,lg:,xl:) — no CSS media queries in<style>blocks unless unavoidable - C-L3: Content grids use
grid gap-6withgrid-cols-{n}and responsive column modifiers — notflex flex-wrapwith manual width percentages - C-L4: Flex layouts use Tailwind utilities (
flex,items-center,justify-between,gap-4) — nodisplay: flexin inline styles
Naming Conformity
- C-N1: CSS custom properties follow the
@themenaming convention:--color-*,--shadow-*,--radius-*,--font-*,--background-image-* - C-N2: No Bootstrap class names present (
.container,.row,.col-*,.btn,.badge,.card,.navbar,.form-control, etc.) - C-N3: Vue components use PascalCase with
Mkprefix (MkButton,MkNavbar,MkDefaultCounterCard); custom utility classes use kebab-case (move-on-hover,text-gradient)
Scoring Guide
- 15–17 rules pass → Fully conformant — ready for production
- 12–14 rules pass → Mostly conformant — minor cleanup needed
- 8–11 rules pass → Partially conformant — significant drift, review required
- Below 8 → Non-conformant — major rework needed before shipping