Repository navigation
Add Decorator Kit Developer Guide (user-guide/) - #4
Merged
Merged
Conversation
A visual guide for developers building on Decorator 5 with an AI agent. Each example is live Decorator markup paired with a copyable prompt. - index.html: layout templates, brand basics, on-brand Bootstrap 3.3.7 components, modules with image sizes, widgets, app recipes, guardrails. - app-patterns.html: in-app navigation, action bars, lists, dialogs, helpers, dashboard building blocks, 7 app shells, and 8 starter dashboards for campus areas, plus a four-prompt build workflow. - css/app-patterns.css: brand layer that re-colors stock-blue Bootstrap components to the Decorator palette. It is canvas-scoped, and active states are keyed on ARIA attributes, never on chrome classes. - js/status-board.js: a working, progressively enhanced status board. Both pages start from dist/templates/two-column.html (ucsd-decorator-v5 5.0.4). The chrome is copied verbatim, only the nav-link lists were changed, and all assets load from cdn.ucsd.edu. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this adds
A visual guide for developers who build on Decorator 5 with an AI agent, in
user-guide/. Every example is live Decorator markup with a prompt you can copy. It's modeled on the v5 kitchen sink, with a prompt added to each example.index.html: Developer Guide.msgalerts, breadcrumbs, forms, input groups,table.styled-dark, drawers, grid and Glyphiconsapp-patterns.html: App Patterns (under Components in the nav)verifySupporting files
css/app-patterns.css: a brand layer that moves stock-blue (#337ab7) Bootstrap components onto the Decorator palette and gives controls 44px touch targets. Every rule is scoped tomain#main-contentplus anapp-*class. Active states key onaria-current,aria-expanded, or:checked, never on.active,.nav,.dropdown-menu, or other chrome classes.css/guide.css: styles for the guide itself, also canvas-scopedjs/guide.js: copy-to-clipboard with a screen-reader announcementjs/status-board.js: a working, progressively enhanced example with filter, search, and a live countHow it was built
dist/templates/two-column.htmlinucsd-decorator-v5@5.0.4, a template chosen explicitly during the session.<ul>in the drawer and in the navbar were changed. Both search blocks are shipped verbatim.cdn.ucsd.edu. The CDN serves Bootstrap 3.3.7, and the guide refers to that version.twbs/bootstrap@v3.3.7/docs/_includes/), and each card says so.base.min.css. No-success,-info,-warning, or-dangerclasses, no<style>blocks, and no inlinestyleattributes.user-guide/isn't inpackage.jsonfiles, so it won't go out with the npm package.Verification
node ../checks/chrome-contract.mjs --check, run fromuser-guide/: no structural or styling findings. The only findings are 6 ×chrome/golden/*, "no golden recorded yet". Nobody has run--accept; recording the baseline is a reviewer's call.npm testpasses.aria-*reference, anddata-copy-targetresolves.For reviewers
http://URLs in the shipped chrome: the template ships two, the white logoimgand the desktop searchform action. They were copied verbatim because they're in the chrome. Upgrading them to HTTPS needs a human-reviewed chrome change.app-patterns.htmlis long (about 2,200 lines). The dashboards could move to their own page later without any prompt changes.🤖 Generated with Claude Code