From db2ddadff3146cee927f15526abac00d4a88e2d3 Mon Sep 17 00:00:00 2001 From: Brian Rogers Date: Mon, 1 Jun 2026 17:32:42 -0600 Subject: [PATCH] finished up the components, added showcase view, and documentation --- conformity.md | 38 +++ design-system.md | 212 +++++++++++++++ src/layouts/DashboardLayout.vue | 1 + src/router/index.js | 1 + src/views/ShowcaseView.vue | 460 ++++++++++++++++++++++++++++++++ tokens.json | 121 +++++++++ 6 files changed, 833 insertions(+) create mode 100644 conformity.md create mode 100644 design-system.md create mode 100644 src/views/ShowcaseView.vue create mode 100644 tokens.json diff --git a/conformity.md b/conformity.md new file mode 100644 index 0000000..bc1e120 --- /dev/null +++ b/conformity.md @@ -0,0 +1,38 @@ +# 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 `:class` bindings +- [ ] **C-V2**: No hardcoded hex in inline `:style` attributes or `@layer` CSS rules; use `var(--color-*)` or Tailwind classes instead +- [ ] **C-V3**: Spacing uses Tailwind scale classes (`mt-4`, `px-6`, `py-16`) — no inline `style="margin: ..."` or `style="padding: ..."` +- [ ] **C-V4**: Shadows use `shadow-soft-*` or `shadow-{color}` utilities — no custom `box-shadow` values in class attributes +- [ ] **C-V5**: Border radius uses `rounded-*` utilities (`rounded-lg`, `rounded-2xl`, `rounded-full`) — no inline `border-radius` style values + +### Component Conformity +- [ ] **C-C1**: All buttons use `MkButton` component or the manual gradient pattern (`bg-gradient-{color} shadow-{color} text-white rounded-lg px-6 py-2.5`); dark-section buttons use `color="white"`; icon-only buttons are square with `p-2` +- [ ] **C-C2**: Cards follow `rounded-2xl bg-white shadow-soft-md` base; card image headers use `-mt-6 mx-4 overflow-hidden rounded-xl` floating pattern; interactive cards use `move-on-hover` +- [ ] **C-C3**: Form inputs use `MkInput` with `v-model`; raw `` elements (if used) must have `rounded-lg border border-gray-200 px-3 py-2 focus:border-primary focus:ring-1 focus:ring-primary` +- [ ] **C-C4**: Navigation uses `MkNavbar` with `navItems` prop; custom navbars must replicate scroll-blur behavior (`bg-white/90 backdrop-blur-sm`) and responsive collapse +- [ ] **C-C5**: Alerts use `MkAlert` component or `rounded-lg px-4 py-3 text-sm bg-{color} text-white` — no plain unstyled `
` + +### Layout Conformity +- [ ] **C-L1**: Marketing pages use `max-w-7xl mx-auto px-4` as the page container — not full-bleed or custom `max-width` values +- [ ] **C-L2**: Responsive breakpoints use Tailwind prefixes (`sm:`, `md:`, `lg:`, `xl:`) — no CSS media queries in `