@litfamily/litcodex 1.0.30 → 1.0.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README-Ko-KR.md +13 -12
- package/README.md +13 -12
- package/TRADEMARK.md +12 -0
- package/dist/install/generated-skill-payload-hashes.d.ts +188 -82
- package/dist/install/generated-skill-payload-hashes.js +188 -82
- package/dist/install/skill-catalog.d.ts +1 -1
- package/dist/install/skill-catalog.js +12 -1
- package/dist/install/skill-resource-hashes.d.ts +1 -1
- package/dist/install/skill-resource-hashes.js +1 -1
- package/marketplace/plugins/litcodex/.codex-plugin/plugin.json +1 -1
- package/marketplace/plugins/litcodex/components/auto-update/package.json +1 -1
- package/marketplace/plugins/litcodex/components/comment-checker/package.json +1 -1
- package/marketplace/plugins/litcodex/components/git-bash/package.json +1 -1
- package/marketplace/plugins/litcodex/components/lit-loop/directive.md +10 -4
- package/marketplace/plugins/litcodex/components/lit-loop/directives/lit-adhd.md +194 -0
- package/marketplace/plugins/litcodex/components/lit-loop/directives/lit-handoff.md +2 -0
- package/marketplace/plugins/litcodex/components/lit-loop/directives/lit-hijack.md +219 -0
- package/marketplace/plugins/litcodex/components/lit-loop/directives/lit-plan.md +2 -1
- package/marketplace/plugins/litcodex/components/lit-loop/directives/lit-recap.md +2 -0
- package/marketplace/plugins/litcodex/components/lit-loop/directives/lit-schematic.md +199 -0
- package/marketplace/plugins/litcodex/components/lit-loop/directives/litwork.md +2 -1
- package/marketplace/plugins/litcodex/components/lit-loop/dist/adhd-suggest.d.ts +10 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/adhd-suggest.js +67 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/card-html.d.ts +1 -1
- package/marketplace/plugins/litcodex/components/lit-loop/dist/card-html.js +128 -8
- package/marketplace/plugins/litcodex/components/lit-loop/dist/card-looks.d.ts +19 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/card-looks.js +58 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/card-status.d.ts +30 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/card-status.js +97 -7
- package/marketplace/plugins/litcodex/components/lit-loop/dist/cli.js +13 -3
- package/marketplace/plugins/litcodex/components/lit-loop/dist/codex-hook.d.ts +2 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/codex-hook.js +8 -9
- package/marketplace/plugins/litcodex/components/lit-loop/dist/control-chars.d.ts +5 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/control-chars.js +23 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/hook-cli.d.ts +8 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/hook-cli.js +126 -13
- package/marketplace/plugins/litcodex/components/lit-loop/dist/hud.d.ts +1 -1
- package/marketplace/plugins/litcodex/components/lit-loop/dist/hud.js +29 -13
- package/marketplace/plugins/litcodex/components/lit-loop/dist/lane-events.d.ts +13 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/lane-events.js +85 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/lane-state.d.ts +55 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/lane-state.js +227 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/live-step.d.ts +5 -1
- package/marketplace/plugins/litcodex/components/lit-loop/dist/live-step.js +17 -1
- package/marketplace/plugins/litcodex/components/lit-loop/dist/markers.d.ts +6 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/markers.js +6 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/modes.d.ts +1 -1
- package/marketplace/plugins/litcodex/components/lit-loop/dist/modes.js +25 -1
- package/marketplace/plugins/litcodex/components/lit-loop/dist/motion-gate.d.ts +79 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/motion-gate.js +310 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/motion-route.js +5 -1
- package/marketplace/plugins/litcodex/components/lit-loop/dist/plan-persistence.d.ts +1 -1
- package/marketplace/plugins/litcodex/components/lit-loop/dist/plan-persistence.js +38 -2
- package/marketplace/plugins/litcodex/components/lit-loop/dist/plan-scope-roots.d.ts +7 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/plan-scope-roots.js +76 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/redaction.js +18 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/reentry.d.ts +15 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/reentry.js +46 -9
- package/marketplace/plugins/litcodex/components/lit-loop/dist/restart-chip.d.ts +6 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/restart-chip.js +59 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/rewind-cli.d.ts +10 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/rewind-cli.js +88 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/rewind-go.d.ts +20 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/rewind-go.js +94 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/rewind-look.d.ts +6 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/rewind-look.js +41 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/rewind-redact.d.ts +3 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/rewind-redact.js +40 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/rewind-rollout.d.ts +48 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/rewind-rollout.js +292 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/rewind.d.ts +168 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/rewind.js +867 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/route-heads.js +45 -3
- package/marketplace/plugins/litcodex/components/lit-loop/dist/run-panel.js +1 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/schematic-route.d.ts +6 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/schematic-route.js +35 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/screen-card.d.ts +3 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/screen-card.js +15 -5
- package/marketplace/plugins/litcodex/components/lit-loop/dist/session-liveness.d.ts +16 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/session-liveness.js +90 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/skill-mention-scope.js +6 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/stack-hook.d.ts +8 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/stack-hook.js +57 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/statusline.js +8 -3
- package/marketplace/plugins/litcodex/components/lit-loop/dist/threads.d.ts +50 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/threads.js +183 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/trigger.d.ts +1 -1
- package/marketplace/plugins/litcodex/components/lit-loop/dist/trigger.js +29 -5
- package/marketplace/plugins/litcodex/components/lit-loop/dist/workflow-map.d.ts +10 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/workflow-map.js +11 -1
- package/marketplace/plugins/litcodex/components/lit-loop/dist/workflow-stack.d.ts +139 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/workflow-stack.js +518 -0
- package/marketplace/plugins/litcodex/components/lit-loop/package.json +1 -1
- package/marketplace/plugins/litcodex/components/lsp/package.json +1 -1
- package/marketplace/plugins/litcodex/components/rules/package.json +1 -1
- package/marketplace/plugins/litcodex/components/start-work-continuation/dist/codex-hook.d.ts +6 -0
- package/marketplace/plugins/litcodex/components/start-work-continuation/dist/codex-hook.js +65 -0
- package/marketplace/plugins/litcodex/components/start-work-continuation/package.json +1 -1
- package/marketplace/plugins/litcodex/components/telemetry/package.json +1 -1
- package/marketplace/plugins/litcodex/components/wikify-knowledge/package.json +1 -1
- package/marketplace/plugins/litcodex/hooks/hooks.json +24 -0
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/SKILL.md +6 -0
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/kit/components.css +414 -0
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/kit/fonts.json +22 -0
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/kit/layouts/landing.html +164 -0
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/kit/layouts/settings.html +114 -0
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/kit/layouts/workspace.html +115 -0
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/kit/styles/computational-brutalism.json +227 -0
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/kit/styles/field-notes.json +205 -0
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/kit/styles/graphite.json +200 -0
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/kit/styles/meadow.json +199 -0
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/kit/styles/neo-brutalism.json +222 -0
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/kit/ui.js +228 -0
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/brand-and-imagery.md +1 -1
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/complete-contract.md +1 -0
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/craft-floor.md +2 -2
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/default-editorial-pixel.json +15 -8
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/design-choice.md +19 -0
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/house-styles.md +235 -0
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/motion-guide.md +2 -2
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/probe-and-review.md +6 -0
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/production-interview.md +2 -0
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/slop-register.md +4 -4
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/scripts/design-lock.mjs +400 -0
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/scripts/lock-probe.mjs +196 -0
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/scripts/page-probe.mjs +22 -4
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/scripts/pixel-art.mjs +60 -0
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/scripts/probe.mjs +59 -13
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/scripts/rule-data.mjs +38 -4
- package/marketplace/plugins/litcodex/skills/lit-adhd/SKILL.md +185 -0
- package/marketplace/plugins/litcodex/skills/lit-adhd/agents/openai.yaml +6 -0
- package/marketplace/plugins/litcodex/skills/lit-adhd/references/card-examples.md +163 -0
- package/marketplace/plugins/litcodex/skills/lit-adhd/references/status-taxonomy.md +45 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/SKILL.md +18 -7
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/style-guide.md +20 -11
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-architecture.md +3 -3
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-dependency.md +1 -1
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-swimlane.md +1 -1
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-tree-block-decomposition.md +1 -1
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-tree.md +3 -3
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-wardley.md +1 -1
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/verifier-guide.md +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/diagram-craft-rules.mjs +1 -2
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/visual-quality.mjs +1 -2
- package/marketplace/plugins/litcodex/skills/lit-docx/SKILL.md +12 -3
- package/marketplace/plugins/litcodex/skills/lit-docx/references/direction-step.md +6 -3
- package/marketplace/plugins/litcodex/skills/lit-hijack/SKILL.md +449 -0
- package/marketplace/plugins/litcodex/skills/lit-hijack/agents/openai.yaml +6 -0
- package/marketplace/plugins/litcodex/skills/lit-hijack/references/capture-and-provenance.md +100 -0
- package/marketplace/plugins/litcodex/skills/lit-hijack/references/clean-room-build.md +111 -0
- package/marketplace/plugins/litcodex/skills/lit-hijack/references/distil-and-licence.md +102 -0
- package/marketplace/plugins/litcodex/skills/lit-hijack/references/gap-and-port-design.md +125 -0
- package/marketplace/plugins/litcodex/skills/lit-hijack/references/parity-and-report.md +108 -0
- package/marketplace/plugins/litcodex/skills/lit-hijack/scripts/hijack.mjs +1050 -0
- package/marketplace/plugins/litcodex/skills/lit-loop/SKILL.md +13 -4
- package/marketplace/plugins/litcodex/skills/lit-plan/SKILL.md +9 -2
- package/marketplace/plugins/litcodex/skills/lit-plan/references/full-workflow.md +2 -1
- package/marketplace/plugins/litcodex/skills/lit-pptx/NOTICE +1 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/SKILL.md +35 -8
- package/marketplace/plugins/litcodex/skills/lit-pptx/fonts/jetbrains-mono/JetBrainsMono-Bold.ttf +0 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/fonts/jetbrains-mono/JetBrainsMono-Regular.ttf +0 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/fonts/jetbrains-mono/OFL.txt +93 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/fonts/jetbrains-mono/SOURCE.md +21 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/references/anti-slop-checklist.md +5 -2
- package/marketplace/plugins/litcodex/skills/lit-pptx/references/authoring-guide.md +3 -4
- package/marketplace/plugins/litcodex/skills/lit-pptx/references/density-and-fill.md +20 -6
- package/marketplace/plugins/litcodex/skills/lit-pptx/references/direction-step.md +26 -8
- package/marketplace/plugins/litcodex/skills/lit-pptx/references/examples/14-engineering-review-computational-brutalism-ko.md +173 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/references/examples/15-launch-pitch-neo-brutalism-ko.md +154 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/references/examples/16-design-lecture-bauhaus-ko.md +139 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/references/examples/17-community-programme-riso-ko.md +158 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/references/examples/18-public-data-briefing-newsroom-ko.md +179 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/references/layout-families.md +42 -27
- package/marketplace/plugins/litcodex/skills/lit-pptx/references/title-treatments.md +31 -27
- package/marketplace/plugins/litcodex/skills/lit-pptx/references/tonalities/bauhaus.md +136 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/references/tonalities/chalk.md +1 -1
- package/marketplace/plugins/litcodex/skills/lit-pptx/references/tonalities/computational-brutalism.md +145 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/references/tonalities/neo-brutalism.md +155 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/references/tonalities/newsroom.md +141 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/references/tonalities/riso.md +133 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/references/tonalities/signal.md +1 -1
- package/marketplace/plugins/litcodex/skills/lit-pptx/references/tonalities/studio.md +1 -1
- package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/compile-deck.js +1 -1
- package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/craft_extras.py +136 -94
- package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/embed_fonts.py +13 -1
- package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/grid-resolver.js +101 -110
- package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/layout-resolver.js +9 -15
- package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/render-pack.js +386 -579
- package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/slide-grid.js +104 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/template-registry.js +57 -6
- package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/office-run.mjs +2 -1
- package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/qa_deck.py +7 -13
- package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/render_pages.py +124 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/templates/tonalities/atlas/pack.yaml +1 -1
- package/marketplace/plugins/litcodex/skills/lit-pptx/templates/tonalities/bauhaus/pack.yaml +98 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/templates/tonalities/chalk/pack.yaml +1 -1
- package/marketplace/plugins/litcodex/skills/lit-pptx/templates/tonalities/computational-brutalism/pack.yaml +100 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/templates/tonalities/gazette/pack.yaml +1 -1
- package/marketplace/plugins/litcodex/skills/lit-pptx/templates/tonalities/ledger/pack.yaml +1 -1
- package/marketplace/plugins/litcodex/skills/lit-pptx/templates/tonalities/neo-brutalism/pack.yaml +107 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/templates/tonalities/newsroom/pack.yaml +99 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/templates/tonalities/night/pack.yaml +1 -1
- package/marketplace/plugins/litcodex/skills/lit-pptx/templates/tonalities/paper/pack.yaml +1 -1
- package/marketplace/plugins/litcodex/skills/lit-pptx/templates/tonalities/riso/pack.yaml +99 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/templates/tonalities/signal/pack.yaml +2 -2
- package/marketplace/plugins/litcodex/skills/lit-pptx/templates/tonalities/studio/pack.yaml +1 -1
- package/marketplace/plugins/litcodex/skills/lit-recap/SKILL.md +2 -0
- package/marketplace/plugins/litcodex/skills/lit-schematic/SKILL.md +198 -0
- package/marketplace/plugins/litcodex/skills/lit-schematic/agents/openai.yaml +6 -0
- package/marketplace/plugins/litcodex/skills/lit-schematic/examples/iso-heat-exchanger/build.mjs +38 -0
- package/marketplace/plugins/litcodex/skills/lit-schematic/examples/iso-heat-exchanger/scene.mjs +133 -0
- package/marketplace/plugins/litcodex/skills/lit-schematic/examples/journal-adsorption-rig/build.mjs +87 -0
- package/marketplace/plugins/litcodex/skills/lit-schematic/examples/pid-dosing-skid/build.mjs +85 -0
- package/marketplace/plugins/litcodex/skills/lit-schematic/references/cutaway-outputs.md +70 -0
- package/marketplace/plugins/litcodex/skills/lit-schematic/references/isometric-craft.md +101 -0
- package/marketplace/plugins/litcodex/skills/lit-schematic/references/journal-figures.md +72 -0
- package/marketplace/plugins/litcodex/skills/lit-schematic/references/kit-api.md +134 -0
- package/marketplace/plugins/litcodex/skills/lit-schematic/references/pfd-and-layout.md +53 -0
- package/marketplace/plugins/litcodex/skills/lit-schematic/references/pid-drafting.md +103 -0
- package/marketplace/plugins/litcodex/skills/lit-schematic/references/pid-symbols.md +163 -0
- package/marketplace/plugins/litcodex/skills/lit-schematic/references/verification.md +100 -0
- package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/doctor.mjs +57 -0
- package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/lib/figure.mjs +81 -0
- package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/lib/fonts.mjs +28 -0
- package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/lib/geom.mjs +113 -0
- package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/lib/interactive.mjs +292 -0
- package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/lib/isa.mjs +115 -0
- package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/lib/iso.mjs +719 -0
- package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/lib/legend-sheet.mjs +162 -0
- package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/lib/pid.mjs +937 -0
- package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/lib/png.mjs +132 -0
- package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/lib/qa-core.mjs +658 -0
- package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/lib/route.mjs +218 -0
- package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/lib/sheet.mjs +890 -0
- package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/lib/svg.mjs +82 -0
- package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/lib/theme.mjs +115 -0
- package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/motion.mjs +129 -0
- package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/qa.mjs +92 -0
- package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/render.mjs +233 -0
- package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/scaffold.mjs +60 -0
- package/marketplace/plugins/litcodex/skills/lit-scientific-visualization/SKILL.md +34 -8
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/SKILL.md +18 -14
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/THIRD_PARTY_NOTICES +12 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/assets.mjs +388 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/blender/runner.py +221 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/blender.mjs +132 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/board.mjs +142 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/constants.mjs +6 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/cover-assets.mjs +7 -4
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/cover-capture.mjs +8 -7
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/cover-init.js +14 -2
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/cover-treatment.mjs +38 -3
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/cover.mjs +19 -4
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/driver.mjs +8 -8
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/gallery.mjs +147 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/house.mjs +45 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/image.mjs +89 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/look.mjs +58 -25
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/runtime.mjs +59 -14
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/safe-read.mjs +32 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/scaffold.mjs +208 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/score.mjs +668 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/sound.mjs +174 -31
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/stage-gate.mjs +45 -3
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/stage-kit.js +99 -1
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/stage-qa.js +8 -1
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/stage-qa.mjs +180 -11
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/stage-render.mjs +42 -12
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/stage-worker.mjs +7 -4
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/stage.mjs +96 -10
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/styles.mjs +233 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/treatment.mjs +291 -14
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/vendor/three/LICENSE +21 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/vendor/three/addons/environments/RoomEnvironment.js +144 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/vendor/three/addons/geometries/RoundedBoxGeometry.js +155 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/vendor/three/three.module.js +54571 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/recipes/hero-3d/expected.json +33 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/recipes/hero-3d/index.html +139 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/cover.md +44 -7
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/depth.md +156 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/design-choice.md +22 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/quality-gate.md +29 -7
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/runtime.md +1 -1
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/sound.md +87 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/stage.md +19 -7
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/studio.md +246 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/style-bibles.md +2 -2
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/treatment.md +41 -21
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/scripts/render.mjs +51 -4
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/styles/paper.json +185 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/styles/swiss-signal.json +188 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/styles/terminalcore.json +182 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/styles/tidal.json +187 -0
- package/marketplace/plugins/litcodex/skills/litresearch/SKILL.md +7 -0
- package/marketplace/plugins/litcodex/skills/litwork/SKILL.md +2 -1
- package/marketplace/plugins/litcodex/skills/readme-studio/SKILL.md +10 -0
- package/marketplace/plugins/litcodex/skills/review-work/SKILL.md +7 -1
- package/marketplace/plugins/litcodex/skills/start-work/SKILL.md +11 -1
- package/node_modules/@litcodex/lit-loop/directive.md +10 -4
- package/node_modules/@litcodex/lit-loop/directives/lit-adhd.md +194 -0
- package/node_modules/@litcodex/lit-loop/directives/lit-handoff.md +2 -0
- package/node_modules/@litcodex/lit-loop/directives/lit-hijack.md +219 -0
- package/node_modules/@litcodex/lit-loop/directives/lit-plan.md +2 -1
- package/node_modules/@litcodex/lit-loop/directives/lit-recap.md +2 -0
- package/node_modules/@litcodex/lit-loop/directives/lit-schematic.md +199 -0
- package/node_modules/@litcodex/lit-loop/directives/litwork.md +2 -1
- package/node_modules/@litcodex/lit-loop/dist/adhd-suggest.d.ts +10 -0
- package/node_modules/@litcodex/lit-loop/dist/adhd-suggest.js +67 -0
- package/node_modules/@litcodex/lit-loop/dist/card-html.d.ts +1 -1
- package/node_modules/@litcodex/lit-loop/dist/card-html.js +128 -8
- package/node_modules/@litcodex/lit-loop/dist/card-looks.d.ts +19 -0
- package/node_modules/@litcodex/lit-loop/dist/card-looks.js +58 -0
- package/node_modules/@litcodex/lit-loop/dist/card-status.d.ts +30 -0
- package/node_modules/@litcodex/lit-loop/dist/card-status.js +97 -7
- package/node_modules/@litcodex/lit-loop/dist/cli.js +13 -3
- package/node_modules/@litcodex/lit-loop/dist/codex-hook.d.ts +2 -0
- package/node_modules/@litcodex/lit-loop/dist/codex-hook.js +8 -9
- package/node_modules/@litcodex/lit-loop/dist/control-chars.d.ts +5 -0
- package/node_modules/@litcodex/lit-loop/dist/control-chars.js +23 -0
- package/node_modules/@litcodex/lit-loop/dist/hook-cli.d.ts +8 -0
- package/node_modules/@litcodex/lit-loop/dist/hook-cli.js +126 -13
- package/node_modules/@litcodex/lit-loop/dist/hud.d.ts +1 -1
- package/node_modules/@litcodex/lit-loop/dist/hud.js +29 -13
- package/node_modules/@litcodex/lit-loop/dist/lane-events.d.ts +13 -0
- package/node_modules/@litcodex/lit-loop/dist/lane-events.js +85 -0
- package/node_modules/@litcodex/lit-loop/dist/lane-state.d.ts +55 -0
- package/node_modules/@litcodex/lit-loop/dist/lane-state.js +227 -0
- package/node_modules/@litcodex/lit-loop/dist/live-step.d.ts +5 -1
- package/node_modules/@litcodex/lit-loop/dist/live-step.js +17 -1
- package/node_modules/@litcodex/lit-loop/dist/markers.d.ts +6 -0
- package/node_modules/@litcodex/lit-loop/dist/markers.js +6 -0
- package/node_modules/@litcodex/lit-loop/dist/modes.d.ts +1 -1
- package/node_modules/@litcodex/lit-loop/dist/modes.js +25 -1
- package/node_modules/@litcodex/lit-loop/dist/motion-gate.d.ts +79 -0
- package/node_modules/@litcodex/lit-loop/dist/motion-gate.js +310 -0
- package/node_modules/@litcodex/lit-loop/dist/motion-route.js +5 -1
- package/node_modules/@litcodex/lit-loop/dist/plan-persistence.d.ts +1 -1
- package/node_modules/@litcodex/lit-loop/dist/plan-persistence.js +38 -2
- package/node_modules/@litcodex/lit-loop/dist/plan-scope-roots.d.ts +7 -0
- package/node_modules/@litcodex/lit-loop/dist/plan-scope-roots.js +76 -0
- package/node_modules/@litcodex/lit-loop/dist/redaction.js +18 -0
- package/node_modules/@litcodex/lit-loop/dist/reentry.d.ts +15 -0
- package/node_modules/@litcodex/lit-loop/dist/reentry.js +46 -9
- package/node_modules/@litcodex/lit-loop/dist/restart-chip.d.ts +6 -0
- package/node_modules/@litcodex/lit-loop/dist/restart-chip.js +59 -0
- package/node_modules/@litcodex/lit-loop/dist/rewind-cli.d.ts +10 -0
- package/node_modules/@litcodex/lit-loop/dist/rewind-cli.js +88 -0
- package/node_modules/@litcodex/lit-loop/dist/rewind-go.d.ts +20 -0
- package/node_modules/@litcodex/lit-loop/dist/rewind-go.js +94 -0
- package/node_modules/@litcodex/lit-loop/dist/rewind-look.d.ts +6 -0
- package/node_modules/@litcodex/lit-loop/dist/rewind-look.js +41 -0
- package/node_modules/@litcodex/lit-loop/dist/rewind-redact.d.ts +3 -0
- package/node_modules/@litcodex/lit-loop/dist/rewind-redact.js +40 -0
- package/node_modules/@litcodex/lit-loop/dist/rewind-rollout.d.ts +48 -0
- package/node_modules/@litcodex/lit-loop/dist/rewind-rollout.js +292 -0
- package/node_modules/@litcodex/lit-loop/dist/rewind.d.ts +168 -0
- package/node_modules/@litcodex/lit-loop/dist/rewind.js +867 -0
- package/node_modules/@litcodex/lit-loop/dist/route-heads.js +45 -3
- package/node_modules/@litcodex/lit-loop/dist/run-panel.js +1 -0
- package/node_modules/@litcodex/lit-loop/dist/schematic-route.d.ts +6 -0
- package/node_modules/@litcodex/lit-loop/dist/schematic-route.js +35 -0
- package/node_modules/@litcodex/lit-loop/dist/screen-card.d.ts +3 -0
- package/node_modules/@litcodex/lit-loop/dist/screen-card.js +15 -5
- package/node_modules/@litcodex/lit-loop/dist/session-liveness.d.ts +16 -0
- package/node_modules/@litcodex/lit-loop/dist/session-liveness.js +90 -0
- package/node_modules/@litcodex/lit-loop/dist/skill-mention-scope.js +6 -0
- package/node_modules/@litcodex/lit-loop/dist/stack-hook.d.ts +8 -0
- package/node_modules/@litcodex/lit-loop/dist/stack-hook.js +57 -0
- package/node_modules/@litcodex/lit-loop/dist/statusline.js +8 -3
- package/node_modules/@litcodex/lit-loop/dist/threads.d.ts +50 -0
- package/node_modules/@litcodex/lit-loop/dist/threads.js +183 -0
- package/node_modules/@litcodex/lit-loop/dist/trigger.d.ts +1 -1
- package/node_modules/@litcodex/lit-loop/dist/trigger.js +29 -5
- package/node_modules/@litcodex/lit-loop/dist/workflow-map.d.ts +10 -0
- package/node_modules/@litcodex/lit-loop/dist/workflow-map.js +11 -1
- package/node_modules/@litcodex/lit-loop/dist/workflow-stack.d.ts +139 -0
- package/node_modules/@litcodex/lit-loop/dist/workflow-stack.js +518 -0
- package/node_modules/@litcodex/lit-loop/package.json +1 -1
- package/node_modules/@litcodex/lit-loop/skills/lit-adhd/SKILL.md +185 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-hijack/SKILL.md +449 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-loop/SKILL.md +13 -4
- package/node_modules/@litcodex/lit-loop/skills/lit-plan/SKILL.md +9 -2
- package/node_modules/@litcodex/lit-loop/skills/lit-recap/SKILL.md +2 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-schematic/SKILL.md +198 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-scientific-visualization/SKILL.md +34 -8
- package/node_modules/@litcodex/lit-loop/skills/litresearch/SKILL.md +7 -0
- package/node_modules/@litcodex/lit-loop/skills/litwork/SKILL.md +2 -1
- package/node_modules/@litcodex/lit-loop/skills/review-work/SKILL.md +7 -1
- package/node_modules/@litcodex/lit-loop/skills/start-work/SKILL.md +11 -1
- package/package.json +3 -2
- package/readme-assets/badge-version.svg +1 -1
- package/readme-assets/skills/lit-adhd.webp +0 -0
- package/readme-assets/skills/lit-hijack.webp +0 -0
- package/readme-assets/skills/lit-schematic.webp +0 -0
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema_id": "litcodex.frontend-style/v1",
|
|
3
|
+
"id": "neo-brutalism",
|
|
4
|
+
"name": "Neo-brutalism",
|
|
5
|
+
"summary": "A loud, friendly register: flat saturated colour blocks on a lavender canvas, 3 px ink outlines on every surface, hard zero-blur offset shadows in ink, sunflower-yellow panel heads and accent with ink text, chunky 900-weight display type and buttons that press down into their shadow. Playful, legible, never soft.",
|
|
6
|
+
"use_when": [
|
|
7
|
+
"opt-in only: the brief names neo-brutalism, neo-brutalist, neubrutalism or the Korean 네오브루탈리즘",
|
|
8
|
+
"consumer, creator, community or education products that want energy and personality",
|
|
9
|
+
"launch pages, pricing pages and onboarding that should feel bold and hand-made rather than corporate"
|
|
10
|
+
],
|
|
11
|
+
"avoid_when": [
|
|
12
|
+
"regulated, clinical, financial or enterprise tones",
|
|
13
|
+
"very dense data screens where outlines on every cell would turn into noise (keep tables quiet inside one outlined wrap)",
|
|
14
|
+
"the brief asks for brutalism without neo (that is computational-brutalism)"
|
|
15
|
+
],
|
|
16
|
+
"keywords": [
|
|
17
|
+
"neo-brutalism",
|
|
18
|
+
"neo-brutalist",
|
|
19
|
+
"neobrutalism",
|
|
20
|
+
"neobrutalist",
|
|
21
|
+
"neo brutalism",
|
|
22
|
+
"neo brutalist",
|
|
23
|
+
"neubrutalism",
|
|
24
|
+
"neu-brutalism",
|
|
25
|
+
"neo-brutal",
|
|
26
|
+
"네오브루탈리즘",
|
|
27
|
+
"네오 브루탈리즘",
|
|
28
|
+
"네오브루탈",
|
|
29
|
+
"네오 브루탈",
|
|
30
|
+
"뉴브루탈리즘",
|
|
31
|
+
"네오브루탈리스트"
|
|
32
|
+
],
|
|
33
|
+
"signature": [
|
|
34
|
+
"thick ink outlines: 3 px on surfaces, 2 px on controls, the same ink in light and dark",
|
|
35
|
+
"hard offset shadows with zero blur (6 px on surfaces, 3 px on controls) in ink; this is the recorded neo-brutalist register CF-403 accepts",
|
|
36
|
+
"buttons press into their shadow on :active (translate 3 px, shadow to 0)",
|
|
37
|
+
"flat saturated fills: panel heads are solid yellow bars with ink text; ui-panel--accent, ui-panel--accent-2 (electric blue) and ui-panel--support colour the featured blocks",
|
|
38
|
+
"chunky type: 900-weight display with tight leading, 800-weight headings and figures, sentence case",
|
|
39
|
+
"tilted ui-sticker labels as the accent art, never over body text",
|
|
40
|
+
"bouncy but short motion (overshoot ease, 100–280 ms)"
|
|
41
|
+
],
|
|
42
|
+
"forbid": [
|
|
43
|
+
"blurred, soft or coloured drop shadows (DS-007: the lock declares offset elevation)",
|
|
44
|
+
"gradients, glass, glow and translucency",
|
|
45
|
+
"thin grey borders on surfaces (outlines are ink)",
|
|
46
|
+
"more than four accent hue families in one view",
|
|
47
|
+
"rotated body text, or a sticker covering text",
|
|
48
|
+
"outlines and shadows on every table cell or list row"
|
|
49
|
+
],
|
|
50
|
+
"fonts": {
|
|
51
|
+
"text": "Pretendard",
|
|
52
|
+
"display": "Pretendard",
|
|
53
|
+
"mono": "JetBrains Mono"
|
|
54
|
+
},
|
|
55
|
+
"type": {
|
|
56
|
+
"scale_px": {
|
|
57
|
+
"xs": 12,
|
|
58
|
+
"sm": 13,
|
|
59
|
+
"md": 14,
|
|
60
|
+
"base": 16,
|
|
61
|
+
"lg": 18,
|
|
62
|
+
"xl": 20,
|
|
63
|
+
"2xl": 24,
|
|
64
|
+
"3xl": 30,
|
|
65
|
+
"4xl": 38,
|
|
66
|
+
"5xl": 48
|
|
67
|
+
},
|
|
68
|
+
"display_px": {
|
|
69
|
+
"min": 40,
|
|
70
|
+
"max": 88
|
|
71
|
+
},
|
|
72
|
+
"moment_px": {
|
|
73
|
+
"max": 152
|
|
74
|
+
},
|
|
75
|
+
"weights": {
|
|
76
|
+
"text": 400,
|
|
77
|
+
"medium": 600,
|
|
78
|
+
"strong": 800,
|
|
79
|
+
"display": 900
|
|
80
|
+
},
|
|
81
|
+
"tracking_em": {
|
|
82
|
+
"display": -0.03,
|
|
83
|
+
"label": 0
|
|
84
|
+
},
|
|
85
|
+
"leading": {
|
|
86
|
+
"body": 1.55,
|
|
87
|
+
"tight": 1.25,
|
|
88
|
+
"display_latin": 1,
|
|
89
|
+
"display_korean": 1.15
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"space_px": [
|
|
93
|
+
4,
|
|
94
|
+
8,
|
|
95
|
+
12,
|
|
96
|
+
16,
|
|
97
|
+
20,
|
|
98
|
+
24,
|
|
99
|
+
32,
|
|
100
|
+
40,
|
|
101
|
+
48,
|
|
102
|
+
64,
|
|
103
|
+
80,
|
|
104
|
+
96,
|
|
105
|
+
128
|
|
106
|
+
],
|
|
107
|
+
"radius_px": {
|
|
108
|
+
"xs": 4,
|
|
109
|
+
"sm": 8,
|
|
110
|
+
"md": 12,
|
|
111
|
+
"lg": 16,
|
|
112
|
+
"pill": 999
|
|
113
|
+
},
|
|
114
|
+
"shadow": {
|
|
115
|
+
"raised": "6px 6px 0 0 var(--c-ink)",
|
|
116
|
+
"overlay": "8px 8px 0 0 var(--c-ink)"
|
|
117
|
+
},
|
|
118
|
+
"motion": {
|
|
119
|
+
"fast_ms": 100,
|
|
120
|
+
"ui_ms": 160,
|
|
121
|
+
"enter_ms": 280,
|
|
122
|
+
"exit_ms": 120,
|
|
123
|
+
"ease": "cubic-bezier(0.3, 1.4, 0.5, 1)"
|
|
124
|
+
},
|
|
125
|
+
"shape": {
|
|
126
|
+
"border_px": {
|
|
127
|
+
"rule": 3,
|
|
128
|
+
"surface": 3,
|
|
129
|
+
"control": 2
|
|
130
|
+
},
|
|
131
|
+
"surface_line": "ink",
|
|
132
|
+
"control_edge": "ink",
|
|
133
|
+
"elevation": "offset",
|
|
134
|
+
"offset_px": {
|
|
135
|
+
"surface": 6,
|
|
136
|
+
"control": 3
|
|
137
|
+
},
|
|
138
|
+
"press": "shift",
|
|
139
|
+
"meta_font": "text",
|
|
140
|
+
"meta_case": "none",
|
|
141
|
+
"display_case": "none",
|
|
142
|
+
"canvas_pattern": "none",
|
|
143
|
+
"heading_font": "display",
|
|
144
|
+
"panel_head": "accent",
|
|
145
|
+
"section_marks": "none"
|
|
146
|
+
},
|
|
147
|
+
"color": {
|
|
148
|
+
"light": {
|
|
149
|
+
"canvas": "#efecff",
|
|
150
|
+
"surface": "#ffffff",
|
|
151
|
+
"sunken": "#e2ddff",
|
|
152
|
+
"ink": "#111111",
|
|
153
|
+
"ink-2": "#2b2b33",
|
|
154
|
+
"ink-3": "#4a4a57",
|
|
155
|
+
"line": "#c9c3ec",
|
|
156
|
+
"line-strong": "#111111",
|
|
157
|
+
"control": "#5c5a70",
|
|
158
|
+
"accent": "#ffd23f",
|
|
159
|
+
"accent-hover": "#ffc400",
|
|
160
|
+
"on-accent": "#111111",
|
|
161
|
+
"accent-wash": "#fff1b8",
|
|
162
|
+
"accent-ink": "#5a32d6",
|
|
163
|
+
"accent-2": "#1f6feb",
|
|
164
|
+
"accent-2-ink": "#1a56b8",
|
|
165
|
+
"accent-2-wash": "#dce8fd",
|
|
166
|
+
"on-accent-2": "#ffffff",
|
|
167
|
+
"support": "#ffb3d1",
|
|
168
|
+
"support-ink": "#111111",
|
|
169
|
+
"focus": "#5a32d6",
|
|
170
|
+
"positive": "#12733a",
|
|
171
|
+
"positive-wash": "#c9f2d6",
|
|
172
|
+
"warning": "#7a4f00",
|
|
173
|
+
"warning-wash": "#ffe7a8",
|
|
174
|
+
"negative": "#c2121c",
|
|
175
|
+
"negative-wash": "#ffd3d3",
|
|
176
|
+
"info": "#1d4fd6",
|
|
177
|
+
"info-wash": "#d6e2ff",
|
|
178
|
+
"chart-1": "#5a32d6",
|
|
179
|
+
"chart-2": "#ffd23f",
|
|
180
|
+
"chart-3": "#ff6b9d",
|
|
181
|
+
"chart-4": "#111111",
|
|
182
|
+
"chart-5": "#2bb673"
|
|
183
|
+
},
|
|
184
|
+
"dark": {
|
|
185
|
+
"canvas": "#17161f",
|
|
186
|
+
"surface": "#211f2b",
|
|
187
|
+
"sunken": "#100f16",
|
|
188
|
+
"ink": "#f7f5ff",
|
|
189
|
+
"ink-2": "#d2cfe3",
|
|
190
|
+
"ink-3": "#a9a5c0",
|
|
191
|
+
"line": "#3a3750",
|
|
192
|
+
"line-strong": "#f7f5ff",
|
|
193
|
+
"control": "#8a86a6",
|
|
194
|
+
"accent": "#ffd23f",
|
|
195
|
+
"accent-hover": "#ffdf6b",
|
|
196
|
+
"on-accent": "#111111",
|
|
197
|
+
"accent-wash": "#3a3110",
|
|
198
|
+
"accent-ink": "#b9a3ff",
|
|
199
|
+
"accent-2": "#5b9bff",
|
|
200
|
+
"accent-2-ink": "#82b3ff",
|
|
201
|
+
"accent-2-wash": "#132544",
|
|
202
|
+
"on-accent-2": "#07142a",
|
|
203
|
+
"support": "#5c2a44",
|
|
204
|
+
"support-ink": "#ffd6e7",
|
|
205
|
+
"focus": "#ffd23f",
|
|
206
|
+
"positive": "#5fe08f",
|
|
207
|
+
"positive-wash": "#11301d",
|
|
208
|
+
"warning": "#ffcf5a",
|
|
209
|
+
"warning-wash": "#33270a",
|
|
210
|
+
"negative": "#ff8080",
|
|
211
|
+
"negative-wash": "#3a1414",
|
|
212
|
+
"info": "#8fb0ff",
|
|
213
|
+
"info-wash": "#15213d",
|
|
214
|
+
"chart-1": "#b9a3ff",
|
|
215
|
+
"chart-2": "#ffd23f",
|
|
216
|
+
"chart-3": "#ff8fbd",
|
|
217
|
+
"chart-4": "#f7f5ff",
|
|
218
|
+
"chart-5": "#5fe08f"
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
"accent_art": "sticker"
|
|
222
|
+
}
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
// frontend-ui-ux kit: behaviour that every build otherwise re-invents. No dependencies, no
|
|
2
|
+
// network. Colours come from the locked tokens (CSS custom properties), never from literals.
|
|
3
|
+
// UI.bars(el, { labels, series: [{ name, values, role }], marker, unit, caption })
|
|
4
|
+
// UI.lines(el, { labels, series: [{ name, values, role }], marker, unit, caption })
|
|
5
|
+
// <table data-ui-sortable> header <button class="ui-sort"> cells sort by data-value or text
|
|
6
|
+
// <div role="tablist" data-ui-tabs> arrow keys, Home and End move between tabs
|
|
7
|
+
(function () {
|
|
8
|
+
"use strict";
|
|
9
|
+
const NS = "http://www.w3.org/2000/svg";
|
|
10
|
+
const svg = (tag, attrs = {}) => {
|
|
11
|
+
const node = document.createElementNS(NS, tag);
|
|
12
|
+
for (const [key, value] of Object.entries(attrs)) node.setAttribute(key, String(value));
|
|
13
|
+
return node;
|
|
14
|
+
};
|
|
15
|
+
const roleColor = (role, index) => `var(--c-${role || `chart-${(index % 5) + 1}`})`;
|
|
16
|
+
const niceMax = (value) => {
|
|
17
|
+
if (value <= 0) return 1;
|
|
18
|
+
const power = 10 ** Math.floor(Math.log10(value));
|
|
19
|
+
const step = [1, 2, 2.5, 5, 10].find((n) => n * power >= value / 4) * power;
|
|
20
|
+
return Math.ceil(value / step) * step;
|
|
21
|
+
};
|
|
22
|
+
const fmt = (value, unit) => `${Number(value).toLocaleString()}${unit ?? ""}`;
|
|
23
|
+
|
|
24
|
+
function frame(el, opts, maxValue) {
|
|
25
|
+
el.classList.add("ui-chart");
|
|
26
|
+
el.replaceChildren();
|
|
27
|
+
const width = Math.max(280, Math.round(el.getBoundingClientRect().width) || 640);
|
|
28
|
+
const height = opts.height ?? (width < 480 ? 200 : 240);
|
|
29
|
+
const pad = { top: 16, right: 8, bottom: 28, left: 36 };
|
|
30
|
+
const plotW = width - pad.left - pad.right;
|
|
31
|
+
const plotH = height - pad.top - pad.bottom;
|
|
32
|
+
const root = svg("svg", { viewBox: `0 0 ${width} ${height}`, width, height, role: "img", "aria-label": opts.caption ?? "Chart" });
|
|
33
|
+
// Whole-number data keeps whole-number ticks: round the top up to a multiple of the four steps.
|
|
34
|
+
const top = opts.integer ? Math.max(4, Math.ceil(niceMax(maxValue) / 4) * 4) : niceMax(maxValue);
|
|
35
|
+
const axis = svg("g", { class: "ui-axis" });
|
|
36
|
+
for (let i = 0; i <= 4; i += 1) {
|
|
37
|
+
const y = pad.top + plotH - (plotH * i) / 4;
|
|
38
|
+
root.append(svg("line", { class: i === 0 ? "ui-baseline" : "ui-grid-line", x1: pad.left, x2: width - pad.right, y1: y, y2: y }));
|
|
39
|
+
const label = svg("text", { x: pad.left - 8, y: y + 4, "text-anchor": "end" });
|
|
40
|
+
label.textContent = fmt((top * i) / 4, "");
|
|
41
|
+
axis.append(label);
|
|
42
|
+
}
|
|
43
|
+
root.append(axis);
|
|
44
|
+
return { root, axis, width, height, pad, plotW, plotH, top };
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
function legendAndTable(el, opts) {
|
|
48
|
+
if (opts.series.length > 1) {
|
|
49
|
+
const legend = document.createElement("div");
|
|
50
|
+
legend.className = "ui-legend";
|
|
51
|
+
opts.series.forEach((series, index) => {
|
|
52
|
+
const item = document.createElement("span");
|
|
53
|
+
const swatch = document.createElement("i");
|
|
54
|
+
swatch.style.setProperty("--swatch", roleColor(series.role, index));
|
|
55
|
+
item.append(swatch, document.createTextNode(series.name));
|
|
56
|
+
legend.append(item);
|
|
57
|
+
});
|
|
58
|
+
el.prepend(legend);
|
|
59
|
+
}
|
|
60
|
+
const details = document.createElement("details");
|
|
61
|
+
const summary = document.createElement("summary");
|
|
62
|
+
summary.className = "ui-meta";
|
|
63
|
+
summary.textContent = opts.tableLabel ?? "Show as table";
|
|
64
|
+
const table = document.createElement("table");
|
|
65
|
+
table.className = "ui-table ui-table--compact";
|
|
66
|
+
const head = document.createElement("tr");
|
|
67
|
+
for (const text of [opts.indexLabel ?? "", ...opts.series.map((s) => s.name)]) {
|
|
68
|
+
const th = document.createElement("th");
|
|
69
|
+
th.textContent = text;
|
|
70
|
+
head.append(th);
|
|
71
|
+
}
|
|
72
|
+
const thead = document.createElement("thead");
|
|
73
|
+
thead.append(head);
|
|
74
|
+
const tbody = document.createElement("tbody");
|
|
75
|
+
opts.labels.forEach((label, row) => {
|
|
76
|
+
const tr = document.createElement("tr");
|
|
77
|
+
const th = document.createElement("th");
|
|
78
|
+
th.scope = "row";
|
|
79
|
+
th.textContent = label;
|
|
80
|
+
tr.append(th);
|
|
81
|
+
for (const series of opts.series) {
|
|
82
|
+
const td = document.createElement("td");
|
|
83
|
+
td.className = "is-num";
|
|
84
|
+
td.textContent = fmt(series.values[row], opts.unit);
|
|
85
|
+
tr.append(td);
|
|
86
|
+
}
|
|
87
|
+
tbody.append(tr);
|
|
88
|
+
});
|
|
89
|
+
table.append(thead, tbody);
|
|
90
|
+
details.append(summary, table);
|
|
91
|
+
el.append(details);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
function xLabels(f, labels, step) {
|
|
95
|
+
const every = Math.max(1, Math.ceil(labels.length / (f.plotW / 44)));
|
|
96
|
+
labels.forEach((label, index) => {
|
|
97
|
+
if (index % every) return;
|
|
98
|
+
const text = svg("text", { x: f.pad.left + step * index + (step / 2) * (f.bandCenter ? 1 : 0), y: f.height - 8, "text-anchor": "middle" });
|
|
99
|
+
text.textContent = label;
|
|
100
|
+
f.axis.append(text);
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
function marker(f, opts, x) {
|
|
105
|
+
if (!opts.marker) return;
|
|
106
|
+
f.root.append(svg("line", { class: "ui-marker", x1: x, x2: x, y1: f.pad.top - 4, y2: f.pad.top + f.plotH }));
|
|
107
|
+
// The label sits above the plot so it never covers a bar, and flips to the line's left side near the right edge.
|
|
108
|
+
const flip = x > f.pad.left + f.plotW * 0.55;
|
|
109
|
+
const text = svg("text", { class: "ui-marker-label", x: flip ? x - 4 : x + 4, y: f.pad.top - 6, "text-anchor": flip ? "end" : "start" });
|
|
110
|
+
text.textContent = opts.marker.label;
|
|
111
|
+
f.root.append(text);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
const drawn = new Map();
|
|
115
|
+
let resizeTimer = 0;
|
|
116
|
+
addEventListener("resize", () => {
|
|
117
|
+
clearTimeout(resizeTimer);
|
|
118
|
+
resizeTimer = setTimeout(() => { for (const [el, draw] of drawn) draw(); }, 150);
|
|
119
|
+
});
|
|
120
|
+
const remember = (el, draw) => { drawn.set(el, draw); draw(); };
|
|
121
|
+
|
|
122
|
+
function bars(el, opts) { remember(el, () => drawBars(el, opts)); }
|
|
123
|
+
function lines(el, opts) { remember(el, () => drawLines(el, opts)); }
|
|
124
|
+
|
|
125
|
+
function drawBars(el, opts) {
|
|
126
|
+
const stacked = Boolean(opts.stacked);
|
|
127
|
+
const totals = opts.labels.map((_, i) => opts.series.reduce((sum, s) => sum + (stacked ? s.values[i] : 0), 0));
|
|
128
|
+
const max = stacked ? Math.max(...totals) : Math.max(...opts.series.flatMap((s) => s.values));
|
|
129
|
+
const f = frame(el, { ...opts, integer: opts.series.every((s) => s.values.every(Number.isInteger)) }, max);
|
|
130
|
+
f.bandCenter = true;
|
|
131
|
+
const step = f.plotW / opts.labels.length;
|
|
132
|
+
const groupW = step * 0.64;
|
|
133
|
+
const barW = stacked ? groupW : groupW / opts.series.length;
|
|
134
|
+
opts.labels.forEach((label, i) => {
|
|
135
|
+
let base = 0;
|
|
136
|
+
opts.series.forEach((series, s) => {
|
|
137
|
+
const value = series.values[i];
|
|
138
|
+
const h = (value / f.top) * f.plotH;
|
|
139
|
+
const x = f.pad.left + step * i + (step - groupW) / 2 + (stacked ? 0 : barW * s);
|
|
140
|
+
const y = f.pad.top + f.plotH - h - (stacked ? (base / f.top) * f.plotH : 0);
|
|
141
|
+
const rect = svg("rect", { x, y, width: Math.max(1, barW - (stacked ? 0 : 2)), height: Math.max(0, h), rx: 2, style: `fill: ${roleColor(series.role, s)}` });
|
|
142
|
+
const title = svg("title");
|
|
143
|
+
title.textContent = `${label}: ${series.name} ${fmt(value, opts.unit)}`;
|
|
144
|
+
rect.append(title);
|
|
145
|
+
f.root.append(rect);
|
|
146
|
+
base += stacked ? value : 0;
|
|
147
|
+
});
|
|
148
|
+
});
|
|
149
|
+
xLabels(f, opts.labels, step);
|
|
150
|
+
if (opts.marker) marker(f, opts, f.pad.left + step * opts.marker.index + step / 2);
|
|
151
|
+
el.append(f.root);
|
|
152
|
+
legendAndTable(el, opts);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
function drawLines(el, opts) {
|
|
156
|
+
const max = Math.max(...opts.series.flatMap((s) => s.values));
|
|
157
|
+
const f = frame(el, { ...opts, integer: opts.series.every((s) => s.values.every(Number.isInteger)) }, max);
|
|
158
|
+
const step = f.plotW / Math.max(1, opts.labels.length - 1);
|
|
159
|
+
opts.series.forEach((series, s) => {
|
|
160
|
+
const points = series.values.map((value, i) => `${f.pad.left + step * i},${f.pad.top + f.plotH - (value / f.top) * f.plotH}`);
|
|
161
|
+
f.root.append(svg("polyline", { points: points.join(" "), style: `fill: none; stroke: ${roleColor(series.role, s)}`, "stroke-width": 2, "stroke-linejoin": "round", "stroke-linecap": "round" }));
|
|
162
|
+
});
|
|
163
|
+
f.bandCenter = false;
|
|
164
|
+
xLabels(f, opts.labels, step);
|
|
165
|
+
if (opts.marker) marker(f, opts, f.pad.left + step * opts.marker.index);
|
|
166
|
+
el.append(f.root);
|
|
167
|
+
legendAndTable(el, opts);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
function sortable(table) {
|
|
171
|
+
const tbody = table.tBodies[0];
|
|
172
|
+
table.querySelectorAll("thead th .ui-sort").forEach((button) => {
|
|
173
|
+
button.type = "button";
|
|
174
|
+
button.addEventListener("click", () => {
|
|
175
|
+
const th = button.closest("th");
|
|
176
|
+
const index = [...th.parentElement.children].indexOf(th);
|
|
177
|
+
const next = th.getAttribute("aria-sort") === "ascending" ? "descending" : "ascending";
|
|
178
|
+
table.querySelectorAll("thead th[aria-sort]").forEach((cell) => cell.removeAttribute("aria-sort"));
|
|
179
|
+
th.setAttribute("aria-sort", next);
|
|
180
|
+
const key = (row) => {
|
|
181
|
+
const cell = row.children[index];
|
|
182
|
+
const raw = cell?.dataset.value ?? cell?.textContent.trim() ?? "";
|
|
183
|
+
const number = Number(raw);
|
|
184
|
+
return raw !== "" && !Number.isNaN(number) ? number : raw.toLocaleLowerCase();
|
|
185
|
+
};
|
|
186
|
+
const rows = [...tbody.rows].sort((a, b) => {
|
|
187
|
+
const x = key(a);
|
|
188
|
+
const y = key(b);
|
|
189
|
+
const order = typeof x === "number" && typeof y === "number" ? x - y : String(x).localeCompare(String(y));
|
|
190
|
+
return next === "ascending" ? order : -order;
|
|
191
|
+
});
|
|
192
|
+
tbody.append(...rows);
|
|
193
|
+
table.dispatchEvent(new CustomEvent("ui:sorted", { detail: { index, order: next } }));
|
|
194
|
+
});
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
function tabs(list) {
|
|
199
|
+
const items = [...list.querySelectorAll('[role="tab"]')];
|
|
200
|
+
const select = (tab) => {
|
|
201
|
+
for (const item of items) {
|
|
202
|
+
const on = item === tab;
|
|
203
|
+
item.setAttribute("aria-selected", String(on));
|
|
204
|
+
item.tabIndex = on ? 0 : -1;
|
|
205
|
+
const panel = document.getElementById(item.getAttribute("aria-controls"));
|
|
206
|
+
if (panel) panel.hidden = !on;
|
|
207
|
+
}
|
|
208
|
+
};
|
|
209
|
+
items.forEach((tab, index) => {
|
|
210
|
+
tab.addEventListener("click", () => select(tab));
|
|
211
|
+
tab.addEventListener("keydown", (event) => {
|
|
212
|
+
const move = { ArrowRight: 1, ArrowLeft: -1, Home: -index, End: items.length - 1 - index }[event.key];
|
|
213
|
+
if (move === undefined) return;
|
|
214
|
+
event.preventDefault();
|
|
215
|
+
const next = items[(index + move + items.length) % items.length];
|
|
216
|
+
next.focus();
|
|
217
|
+
select(next);
|
|
218
|
+
});
|
|
219
|
+
});
|
|
220
|
+
select(items.find((tab) => tab.getAttribute("aria-selected") === "true") ?? items[0]);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
document.addEventListener("DOMContentLoaded", () => {
|
|
224
|
+
document.querySelectorAll("table[data-ui-sortable]").forEach(sortable);
|
|
225
|
+
document.querySelectorAll("[data-ui-tabs]").forEach(tabs);
|
|
226
|
+
});
|
|
227
|
+
window.UI = { bars, lines, sortable, tabs };
|
|
228
|
+
})();
|
|
@@ -8,7 +8,7 @@ Use authorized purpose and audience, marks and clear-space rules, licensed color
|
|
|
8
8
|
|
|
9
9
|
| Quality | Interface expression |
|
|
10
10
|
| --- | --- |
|
|
11
|
-
| Precise | aligned layout, explicit labels, restrained transitions |
|
|
11
|
+
| Precise | aligned layout, explicit labels, restrained transitions (a calm brief) |
|
|
12
12
|
| Energetic | clear contrast, dynamic crops, quick feedback |
|
|
13
13
|
| Humane | readable type, forgiving recovery, warm content |
|
|
14
14
|
| Premium | restrained materials, deliberate pace, strong imagery |
|
|
@@ -140,6 +140,7 @@ Load only the smallest complete set:
|
|
|
140
140
|
| --- | --- |
|
|
141
141
|
| Every frontend mode: numbered craft and responsive rules | `references/craft-floor.md` |
|
|
142
142
|
| Every frontend mode: generic-pattern and functional register | `references/slop-register.md` |
|
|
143
|
+
| Building a new page or screen: the design lock, five house styles, density, signature moment, starters | `references/house-styles.md` |
|
|
143
144
|
| Probe execution, mode routing, fix loop, and findings table | `references/probe-and-review.md` |
|
|
144
145
|
| Product framing, research, inclusive scenarios, decision quality | `references/product-direction.md` |
|
|
145
146
|
| Tokens, themes, components, governance | `references/system-foundations.md` |
|
|
@@ -24,7 +24,7 @@ Read this in every frontend mode. These checks describe what to inspect and how
|
|
|
24
24
|
| CF-202 | Compare a sampled control before and after `focus()` and `:focus-visible`; a browser `outline-style:auto` passes. A custom ring needs ≥2px and ≥3:1 against its neighbors. HIGH only when focus changes nothing; a weaker visible ring is MEDIUM. |
|
|
25
25
|
| CF-203 | APCA is an annotation, never a separate blocker: body Lc 75/90, other text 60/75, ≥36px display 45/60, UI floor 30. Keep the WCAG result primary. |
|
|
26
26
|
| CF-204 | For text over images or gradients, sample the worst color behind the glyph area. If a cross-origin surface prevents reading it, mark the rule not verified. |
|
|
27
|
-
| CF-205 | Count saturated filled emphasis surfaces ≥24×24px and group nearby hues. Exclude semantic status fills (including small status pills ≤32px) before clustering.
|
|
27
|
+
| CF-205 | Count saturated filled emphasis surfaces ≥24×24px and group nearby hues. Exclude semantic status fills (including small status pills ≤32px) before clustering. A rich view may use up to four hue families when each carries a role (primary, accent-2, status, data); a calm lock allows one. More than that, or an unowned hue, is the finding. |
|
|
28
28
|
| CF-206 | Treat hue angles within 15° as one semantic family. Keep meaning consistent across controls and status. |
|
|
29
29
|
| CF-207 | A status needs words, a meaningful icon, or a pattern in addition to color. Confirm intent manually; color-only state is HIGH. |
|
|
30
30
|
|
|
@@ -40,7 +40,7 @@ Read this in every frontend mode. These checks describe what to inspect and how
|
|
|
40
40
|
| CF-306 | Review repeated groups for parent `gap` instead of margins on every child; change the owner of spacing when the pattern is real. |
|
|
41
41
|
| CF-401 | A nested rounded frame expects inner radius approximately outer radius minus inset, within 1px. Exclude offset icon chips that are not concentric. |
|
|
42
42
|
| CF-402 | A border and a ≤2px hard shadow tracing the same edge duplicate elevation. Delete one; a soft ambient shadow is a different case. |
|
|
43
|
-
| CF-403 | A hard-offset shadow together with a ≥2px border on at least three elements signals repeated pseudo-brutalist decoration. Review its content role before softening. |
|
|
43
|
+
| CF-403 | A hard-offset shadow together with a ≥2px border on at least three elements signals repeated pseudo-brutalist decoration. Review its content role before softening. A lock whose style declares `offset` elevation is that register on purpose and passes this row. |
|
|
44
44
|
| CF-404 | On primary controls, inspect chromatic near-zero-offset blooms whose blur is ≥1.5× the shorter side; reduce or remove the halo. |
|
|
45
45
|
| CF-405 | A photographic image may need a restrained neutral ~1px outline against the ground; test the actual edge before adding one. |
|
|
46
46
|
| CF-406 | A modal scrim uses a solid or near-solid veil; avoid blur as a default backdrop treatment. |
|
package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/default-editorial-pixel.json
CHANGED
|
@@ -31,22 +31,29 @@
|
|
|
31
31
|
"spacing": {
|
|
32
32
|
"base_px": 8,
|
|
33
33
|
"microstep_px": 4,
|
|
34
|
-
"desktop_section_gap_px": [
|
|
35
|
-
"mobile_section_gap_px": [40,
|
|
34
|
+
"desktop_section_gap_px": [72, 96],
|
|
35
|
+
"mobile_section_gap_px": [40, 56]
|
|
36
36
|
},
|
|
37
37
|
"typography": {
|
|
38
|
-
"display_px": { "desktop": [56,
|
|
38
|
+
"display_px": { "desktop": [56, 96], "mobile": [36, 56] },
|
|
39
39
|
"latin_leading": [0.95, 1.05],
|
|
40
40
|
"korean_leading": [1.12, 1.25],
|
|
41
41
|
"body_leading": [1.5, 1.7]
|
|
42
42
|
},
|
|
43
43
|
"color_roles": {
|
|
44
|
-
"paper": "#
|
|
45
|
-
"ink": "#
|
|
46
|
-
"signal": "#
|
|
47
|
-
"
|
|
48
|
-
"
|
|
44
|
+
"paper": "#F5F3EB",
|
|
45
|
+
"ink": "#18272B",
|
|
46
|
+
"signal": "#C64D2E",
|
|
47
|
+
"signal_2": "#1D6B68",
|
|
48
|
+
"quiet_signal": "#B7D8C7",
|
|
49
|
+
"boundary": "#18272B"
|
|
49
50
|
},
|
|
51
|
+
"density": {
|
|
52
|
+
"default": "rich",
|
|
53
|
+
"rich": "section padding 48/72/96px, notebook-dot canvas and one warm glow on the atmosphere surface, up to four hue families that each own a role",
|
|
54
|
+
"calm": "only when the user asks for minimal, calm, quiet or restrained: padding 64/96/128px, flat canvas, no glow, one hue family"
|
|
55
|
+
},
|
|
56
|
+
"work_surfaces": "Dashboards, settings and tools keep these palette and type roles but take the graphite house style by default and a small accent in place of the pixel illustration. See references/house-styles.md.",
|
|
50
57
|
"surface_rules": [
|
|
51
58
|
"Use typography, spacing, and one deliberate contrast shift to establish hierarchy.",
|
|
52
59
|
"Keep pixel edges crisp and original; do not blur or upscale low-resolution art with smoothing.",
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Choose the design first
|
|
2
|
+
|
|
3
|
+
For a new page or screen the user picks the look and has the right to choose. Before `design-lock.mjs` runs or any markup is written, ask up to three questions and pass the answers to `init` as `--style`, `--family` and `--density`:
|
|
4
|
+
|
|
5
|
+
1. `Style` ("Which house style?"): the style the brief's register points to as `<style> (Recommended)` (`field-notes` for a read-once page, `graphite` for a screen worked in), then up to three of `meadow` (warm, consumer), `computational-brutalism` (instrument, terminal), `neo-brutalism` (loud, outlined), `graphite` or `field-notes`, picked by their `use_when` lines in `references/house-styles.md`.
|
|
6
|
+
2. `Family` ("What is being built?"): `landing`, `workspace` or `settings`, the one the brief implies first with `(Recommended)`.
|
|
7
|
+
3. `Density` ("How full should it be?"): `Rich (Recommended)` (the lock default: section rhythm, texture, second accent, bands) or `Calm` (broad flat page, one accent).
|
|
8
|
+
|
|
9
|
+
## How to ask
|
|
10
|
+
|
|
11
|
+
Ask with `request_user_input` when this turn offers it (Plan mode): 2–4 options per question, the recommended one first and labelled `(Recommended)`, a one-line description each; the tool takes a free-text answer on its own, so no Other option is written.
|
|
12
|
+
|
|
13
|
+
When it is not offered (Default mode), put the same questions in the reply as a short numbered list with the recommended option first as `1. … (Recommended)`, and end the turn to wait for the pick; build nothing before it arrives.
|
|
14
|
+
|
|
15
|
+
In a non-interactive `codex exec` run nobody can answer: take the recommended option, say so in one line ("Non-interactive run: building with graphite, the recommended option") and continue.
|
|
16
|
+
|
|
17
|
+
## When to skip
|
|
18
|
+
|
|
19
|
+
Skip a question only when the prompt already names its answer (a style keyword, a family, an existing brand or token file, a brownfield or redesign lane that keeps the product's identity) or hands the choice over ("you choose", "just make it good", "알아서", "네가 골라"), or under a bare `lit`, which asks no questions; then apply the family defaults and say which style was used. A typed style id from `design-lock.mjs list` or brand tokens go to `--style` or `--from`. Review, plan and keyword-only requests stay read-only and ask nothing.
|