@litfamily/litclaude 1.0.37 → 1.0.39
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/CHANGELOG.md +71 -0
- package/README.md +11 -8
- package/README_ko-KR.md +11 -8
- package/bin/litclaude-ai.js +3 -3
- package/docs/assets/readme/badge-version.svg +1 -1
- package/docs/assets/skills/lit-adhd.webp +0 -0
- package/docs/assets/skills/lit-hijack.webp +0 -0
- package/docs/assets/skills/lit-schematic.webp +0 -0
- package/docs/hooks.md +117 -26
- package/docs/workflow-compatibility-audit.md +1 -1
- package/package.json +1 -1
- package/plugins/litclaude/.claude-plugin/plugin.json +1 -1
- package/plugins/litclaude/agents/lit-executor.md +4 -2
- package/plugins/litclaude/bin/litclaude-ai +1 -0
- package/plugins/litclaude/bin/litclaude-hook.js +373 -53
- package/plugins/litclaude/bin/litclaude-mcp.js +1 -1
- package/plugins/litclaude/commands/lit-adhd.md +107 -0
- package/plugins/litclaude/commands/lit-hijack.md +102 -0
- package/plugins/litclaude/commands/lit-loop.md +4 -2
- package/plugins/litclaude/commands/lit-plan.md +5 -4
- package/plugins/litclaude/commands/lit-rewind.md +107 -0
- package/plugins/litclaude/commands/litgoal.md +5 -4
- package/plugins/litclaude/commands/start-work.md +25 -10
- package/plugins/litclaude/hooks/lit-mod.mjs +51 -5
- package/plugins/litclaude/lib/canonical-skill-catalog.mjs +3 -0
- package/plugins/litclaude/lib/canonical-skill-resources.mjs +205 -101
- package/plugins/litclaude/lib/lit-activation.mjs +24 -10
- package/plugins/litclaude/lib/mod/frame.mjs +235 -49
- package/plugins/litclaude/lib/mod/motion.mjs +21 -0
- package/plugins/litclaude/lib/mod/settings.mjs +4 -0
- package/plugins/litclaude/lib/mod/skills.mjs +3 -0
- package/plugins/litclaude/lib/mod/state.mjs +100 -7
- package/plugins/litclaude/lib/mod/svg-card.mjs +167 -25
- package/plugins/litclaude/lib/mod/timeline.mjs +28 -5
- package/plugins/litclaude/lib/mod/toasts.mjs +5 -2
- package/plugins/litclaude/lib/mod/view.mjs +240 -6
- package/plugins/litclaude/lib/mod/workflow.mjs +36 -7
- package/plugins/litclaude/lib/motion-render-gate.mjs +25 -7
- package/plugins/litclaude/lib/render_pages.py +29 -1
- package/plugins/litclaude/lib/rewind/brief.mjs +370 -0
- package/plugins/litclaude/lib/rewind/collect.mjs +413 -0
- package/plugins/litclaude/lib/rewind/gauge.mjs +87 -0
- package/plugins/litclaude/lib/rewind/next-step.mjs +89 -0
- package/plugins/litclaude/lib/rewind/redact.mjs +36 -0
- package/plugins/litclaude/lib/rewind/suggest.mjs +51 -0
- package/plugins/litclaude/lib/rewind/transcripts.mjs +259 -0
- package/plugins/litclaude/lib/start-work-lifecycle.mjs +403 -18
- package/plugins/litclaude/lib/workflow-stack.mjs +243 -0
- package/plugins/litclaude/lib/workflow-stage.mjs +127 -103
- package/plugins/litclaude/scripts/scaffold-plan.mjs +1 -1
- package/plugins/litclaude/skills/frontend-ui-ux/SKILL.md +18 -3
- package/plugins/litclaude/skills/frontend-ui-ux/kit/components.css +414 -0
- package/plugins/litclaude/skills/frontend-ui-ux/kit/fonts.json +22 -0
- package/plugins/litclaude/skills/frontend-ui-ux/kit/layouts/landing.html +164 -0
- package/plugins/litclaude/skills/frontend-ui-ux/kit/layouts/settings.html +114 -0
- package/plugins/litclaude/skills/frontend-ui-ux/kit/layouts/workspace.html +115 -0
- package/plugins/litclaude/skills/frontend-ui-ux/kit/styles/computational-brutalism.json +227 -0
- package/plugins/litclaude/skills/frontend-ui-ux/kit/styles/field-notes.json +205 -0
- package/plugins/litclaude/skills/frontend-ui-ux/kit/styles/graphite.json +200 -0
- package/plugins/litclaude/skills/frontend-ui-ux/kit/styles/meadow.json +199 -0
- package/plugins/litclaude/skills/frontend-ui-ux/kit/styles/neo-brutalism.json +222 -0
- package/plugins/litclaude/skills/frontend-ui-ux/kit/ui.js +226 -0
- package/plugins/litclaude/skills/frontend-ui-ux/references/brand-and-imagery.md +1 -1
- package/plugins/litclaude/skills/frontend-ui-ux/references/complete-contract.md +1 -0
- package/plugins/litclaude/skills/frontend-ui-ux/references/craft-floor.md +9 -4
- package/plugins/litclaude/skills/frontend-ui-ux/references/default-editorial-pixel.json +6 -5
- package/plugins/litclaude/skills/frontend-ui-ux/references/house-styles.md +234 -0
- package/plugins/litclaude/skills/frontend-ui-ux/references/motion-guide.md +3 -3
- package/plugins/litclaude/skills/frontend-ui-ux/references/production-interview.md +1 -1
- package/plugins/litclaude/skills/frontend-ui-ux/references/slop-register.md +7 -7
- package/plugins/litclaude/skills/frontend-ui-ux/scripts/design-lock.mjs +400 -0
- package/plugins/litclaude/skills/frontend-ui-ux/scripts/interface-probe-lock.mjs +196 -0
- package/plugins/litclaude/skills/frontend-ui-ux/scripts/interface-probe-page.mjs +30 -9
- package/plugins/litclaude/skills/frontend-ui-ux/scripts/interface-probe-rules.mjs +19 -7
- package/plugins/litclaude/skills/frontend-ui-ux/scripts/interface-probe-static.mjs +12 -2
- package/plugins/litclaude/skills/frontend-ui-ux/scripts/interface-probe.mjs +53 -6
- package/plugins/litclaude/skills/frontend-ui-ux/scripts/pixel-art.mjs +60 -0
- package/plugins/litclaude/skills/lit-adhd/SKILL.md +168 -0
- package/plugins/litclaude/skills/lit-adhd/references/card-examples.md +125 -0
- package/plugins/litclaude/skills/lit-adhd/references/status-taxonomy.md +43 -0
- package/plugins/litclaude/skills/lit-adhd/scripts/rewind.mjs +11 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/SKILL.md +17 -5
- package/plugins/litclaude/skills/lit-diagram-drawer/references/style-guide.md +20 -11
- package/plugins/litclaude/skills/lit-diagram-drawer/references/type-architecture.md +3 -3
- package/plugins/litclaude/skills/lit-diagram-drawer/references/type-dependency.md +1 -1
- package/plugins/litclaude/skills/lit-diagram-drawer/references/type-tree.md +3 -3
- package/plugins/litclaude/skills/lit-diagram-drawer/references/type-wardley.md +1 -1
- package/plugins/litclaude/skills/lit-diagram-drawer/references/verifier-guide.md +1 -1
- package/plugins/litclaude/skills/lit-diagram-drawer/scripts/visual-quality.mjs +3 -3
- package/plugins/litclaude/skills/lit-docx/SKILL.md +6 -1
- package/plugins/litclaude/skills/lit-docx/references/direction-step.md +8 -4
- package/plugins/litclaude/skills/lit-handoff/SKILL.md +2 -1
- package/plugins/litclaude/skills/lit-hijack/SKILL.md +551 -0
- package/plugins/litclaude/skills/lit-hijack/references/capture-and-provenance.md +124 -0
- package/plugins/litclaude/skills/lit-hijack/references/clean-room-build.md +133 -0
- package/plugins/litclaude/skills/lit-hijack/references/distil-and-licence.md +128 -0
- package/plugins/litclaude/skills/lit-hijack/references/gap-and-port-design.md +152 -0
- package/plugins/litclaude/skills/lit-hijack/references/parity-and-report.md +131 -0
- package/plugins/litclaude/skills/lit-hijack/scripts/hijack.mjs +854 -0
- package/plugins/litclaude/skills/lit-loop/SKILL.md +4 -3
- package/plugins/litclaude/skills/lit-plan/SKILL.md +16 -10
- package/plugins/litclaude/skills/lit-pptx/SKILL.md +35 -15
- package/plugins/litclaude/skills/lit-pptx/fonts/jetbrains-mono/JetBrainsMono-Bold.ttf +0 -0
- package/plugins/litclaude/skills/lit-pptx/fonts/jetbrains-mono/JetBrainsMono-Regular.ttf +0 -0
- package/plugins/litclaude/skills/lit-pptx/fonts/jetbrains-mono/OFL.txt +93 -0
- package/plugins/litclaude/skills/lit-pptx/fonts/provenance.json +32 -1
- package/plugins/litclaude/skills/lit-pptx/references/agents/architect.md +1 -1
- package/plugins/litclaude/skills/lit-pptx/references/anti-slop-checklist.md +32 -11
- package/plugins/litclaude/skills/lit-pptx/references/authoring-guide.md +2 -2
- package/plugins/litclaude/skills/lit-pptx/references/data-display-cookbook.md +1 -1
- package/plugins/litclaude/skills/lit-pptx/references/density-and-fill.md +3 -4
- package/plugins/litclaude/skills/lit-pptx/references/direction-step.md +23 -4
- package/plugins/litclaude/skills/lit-pptx/references/examples/13-engineering-review-computational-brutalism-ko.md +173 -0
- package/plugins/litclaude/skills/lit-pptx/references/examples/14-launch-pitch-neo-brutalism-ko.md +154 -0
- package/plugins/litclaude/skills/lit-pptx/references/examples/15-design-lecture-bauhaus-ko.md +139 -0
- package/plugins/litclaude/skills/lit-pptx/references/examples/16-community-programme-riso-ko.md +158 -0
- package/plugins/litclaude/skills/lit-pptx/references/examples/17-public-data-briefing-newsroom-ko.md +179 -0
- package/plugins/litclaude/skills/lit-pptx/references/layout-families.md +22 -26
- package/plugins/litclaude/skills/lit-pptx/references/title-treatments.md +30 -26
- package/plugins/litclaude/skills/lit-pptx/references/tonalities/atlas.md +4 -4
- package/plugins/litclaude/skills/lit-pptx/references/tonalities/bauhaus.md +140 -0
- package/plugins/litclaude/skills/lit-pptx/references/tonalities/chalk.md +3 -3
- package/plugins/litclaude/skills/lit-pptx/references/tonalities/computational-brutalism.md +150 -0
- package/plugins/litclaude/skills/lit-pptx/references/tonalities/gazette.md +1 -1
- package/plugins/litclaude/skills/lit-pptx/references/tonalities/ledger.md +1 -1
- package/plugins/litclaude/skills/lit-pptx/references/tonalities/neo-brutalism.md +161 -0
- package/plugins/litclaude/skills/lit-pptx/references/tonalities/newsroom.md +144 -0
- package/plugins/litclaude/skills/lit-pptx/references/tonalities/night.md +1 -1
- package/plugins/litclaude/skills/lit-pptx/references/tonalities/paper.md +3 -3
- package/plugins/litclaude/skills/lit-pptx/references/tonalities/riso.md +137 -0
- package/plugins/litclaude/skills/lit-pptx/references/tonalities/signal.md +2 -2
- package/plugins/litclaude/skills/lit-pptx/references/tonalities/studio.md +6 -7
- package/plugins/litclaude/skills/lit-pptx/scripts/compile-deck.js +1 -1
- package/plugins/litclaude/skills/lit-pptx/scripts/craft_extras.py +135 -91
- package/plugins/litclaude/skills/lit-pptx/scripts/embed_fonts.py +13 -1
- package/plugins/litclaude/skills/lit-pptx/scripts/lib/grid-resolver.js +101 -110
- package/plugins/litclaude/skills/lit-pptx/scripts/lib/layout-resolver.js +9 -15
- package/plugins/litclaude/skills/lit-pptx/scripts/lib/render-pack.js +370 -563
- package/plugins/litclaude/skills/lit-pptx/scripts/lib/slide-grid.js +104 -0
- package/plugins/litclaude/skills/lit-pptx/scripts/lib/template-registry.js +57 -6
- package/plugins/litclaude/skills/lit-pptx/scripts/qa_deck.py +5 -5
- package/plugins/litclaude/skills/lit-pptx/templates/tonalities/atlas/pack.yaml +1 -1
- package/plugins/litclaude/skills/lit-pptx/templates/tonalities/bauhaus/pack.yaml +98 -0
- package/plugins/litclaude/skills/lit-pptx/templates/tonalities/chalk/pack.yaml +1 -1
- package/plugins/litclaude/skills/lit-pptx/templates/tonalities/computational-brutalism/pack.yaml +99 -0
- package/plugins/litclaude/skills/lit-pptx/templates/tonalities/gazette/pack.yaml +1 -1
- package/plugins/litclaude/skills/lit-pptx/templates/tonalities/ledger/pack.yaml +1 -1
- package/plugins/litclaude/skills/lit-pptx/templates/tonalities/neo-brutalism/pack.yaml +107 -0
- package/plugins/litclaude/skills/lit-pptx/templates/tonalities/newsroom/pack.yaml +99 -0
- package/plugins/litclaude/skills/lit-pptx/templates/tonalities/night/pack.yaml +1 -1
- package/plugins/litclaude/skills/lit-pptx/templates/tonalities/paper/pack.yaml +1 -1
- package/plugins/litclaude/skills/lit-pptx/templates/tonalities/riso/pack.yaml +99 -0
- package/plugins/litclaude/skills/lit-pptx/templates/tonalities/signal/pack.yaml +2 -2
- package/plugins/litclaude/skills/lit-pptx/templates/tonalities/studio/pack.yaml +1 -1
- package/plugins/litclaude/skills/lit-recap/SKILL.md +4 -0
- package/plugins/litclaude/skills/lit-schematic/SKILL.md +123 -0
- package/plugins/litclaude/skills/lit-schematic/examples/iso-heat-exchanger/build.mjs +38 -0
- package/plugins/litclaude/skills/lit-schematic/examples/iso-heat-exchanger/scene.mjs +133 -0
- package/plugins/litclaude/skills/lit-schematic/examples/journal-adsorption-rig/build.mjs +87 -0
- package/plugins/litclaude/skills/lit-schematic/examples/pid-dosing-skid/build.mjs +85 -0
- package/plugins/litclaude/skills/lit-schematic/references/cutaway-outputs.md +70 -0
- package/plugins/litclaude/skills/lit-schematic/references/isometric-craft.md +101 -0
- package/plugins/litclaude/skills/lit-schematic/references/journal-figures.md +72 -0
- package/plugins/litclaude/skills/lit-schematic/references/kit-api.md +134 -0
- package/plugins/litclaude/skills/lit-schematic/references/pfd-and-layout.md +53 -0
- package/plugins/litclaude/skills/lit-schematic/references/pid-drafting.md +103 -0
- package/plugins/litclaude/skills/lit-schematic/references/pid-symbols.md +163 -0
- package/plugins/litclaude/skills/lit-schematic/references/verification.md +100 -0
- package/plugins/litclaude/skills/lit-schematic/scripts/doctor.mjs +57 -0
- package/plugins/litclaude/skills/lit-schematic/scripts/lib/figure.mjs +81 -0
- package/plugins/litclaude/skills/lit-schematic/scripts/lib/fonts.mjs +27 -0
- package/plugins/litclaude/skills/lit-schematic/scripts/lib/geom.mjs +113 -0
- package/plugins/litclaude/skills/lit-schematic/scripts/lib/interactive.mjs +292 -0
- package/plugins/litclaude/skills/lit-schematic/scripts/lib/isa.mjs +115 -0
- package/plugins/litclaude/skills/lit-schematic/scripts/lib/iso.mjs +719 -0
- package/plugins/litclaude/skills/lit-schematic/scripts/lib/legend-sheet.mjs +162 -0
- package/plugins/litclaude/skills/lit-schematic/scripts/lib/pid.mjs +937 -0
- package/plugins/litclaude/skills/lit-schematic/scripts/lib/png.mjs +132 -0
- package/plugins/litclaude/skills/lit-schematic/scripts/lib/qa-core.mjs +658 -0
- package/plugins/litclaude/skills/lit-schematic/scripts/lib/route.mjs +218 -0
- package/plugins/litclaude/skills/lit-schematic/scripts/lib/sheet.mjs +890 -0
- package/plugins/litclaude/skills/lit-schematic/scripts/lib/svg.mjs +82 -0
- package/plugins/litclaude/skills/lit-schematic/scripts/lib/theme.mjs +115 -0
- package/plugins/litclaude/skills/lit-schematic/scripts/motion.mjs +129 -0
- package/plugins/litclaude/skills/lit-schematic/scripts/qa.mjs +92 -0
- package/plugins/litclaude/skills/lit-schematic/scripts/render.mjs +233 -0
- package/plugins/litclaude/skills/lit-schematic/scripts/scaffold.mjs +60 -0
- package/plugins/litclaude/skills/lit-scientific-visualization/SKILL.md +14 -4
- package/plugins/litclaude/skills/lit-typographic-motion/SKILL.md +54 -45
- package/plugins/litclaude/skills/lit-typographic-motion/engine/THIRD_PARTY_NOTICES +11 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/blender/runner.py +218 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/core/presets.mjs +1 -1
- package/plugins/litclaude/skills/lit-typographic-motion/engine/node/analysis.mjs +65 -1
- package/plugins/litclaude/skills/lit-typographic-motion/engine/node/assets.mjs +208 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/node/blender.mjs +143 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/node/board.mjs +136 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/node/brief.mjs +7 -1
- package/plugins/litclaude/skills/lit-typographic-motion/engine/node/chrome.mjs +6 -4
- package/plugins/litclaude/skills/lit-typographic-motion/engine/node/cover-assets.mjs +5 -3
- package/plugins/litclaude/skills/lit-typographic-motion/engine/node/cover-capture.mjs +4 -4
- package/plugins/litclaude/skills/lit-typographic-motion/engine/node/cover-treatment.mjs +37 -4
- package/plugins/litclaude/skills/lit-typographic-motion/engine/node/cover.mjs +17 -5
- package/plugins/litclaude/skills/lit-typographic-motion/engine/node/done.mjs +42 -3
- package/plugins/litclaude/skills/lit-typographic-motion/engine/node/frame-worker.mjs +7 -5
- package/plugins/litclaude/skills/lit-typographic-motion/engine/node/gallery.mjs +121 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/node/house.mjs +44 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/node/look.mjs +33 -19
- package/plugins/litclaude/skills/lit-typographic-motion/engine/node/pipeline.mjs +18 -7
- package/plugins/litclaude/skills/lit-typographic-motion/engine/node/scaffold.mjs +210 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/node/score.mjs +639 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/node/sound-cli.mjs +21 -4
- package/plugins/litclaude/skills/lit-typographic-motion/engine/node/sound.mjs +126 -27
- package/plugins/litclaude/skills/lit-typographic-motion/engine/node/stage-capture.mjs +7 -6
- package/plugins/litclaude/skills/lit-typographic-motion/engine/node/stage-gate.mjs +59 -5
- package/plugins/litclaude/skills/lit-typographic-motion/engine/node/stage-qa.mjs +141 -9
- package/plugins/litclaude/skills/lit-typographic-motion/engine/node/stage-serve.mjs +28 -5
- package/plugins/litclaude/skills/lit-typographic-motion/engine/node/stage.mjs +82 -14
- package/plugins/litclaude/skills/lit-typographic-motion/engine/node/styles.mjs +213 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/node/treatment.mjs +311 -10
- package/plugins/litclaude/skills/lit-typographic-motion/engine/stage/cover-init.js +14 -2
- package/plugins/litclaude/skills/lit-typographic-motion/engine/stage/init.js +11 -1
- package/plugins/litclaude/skills/lit-typographic-motion/engine/stage/qa.js +6 -1
- package/plugins/litclaude/skills/lit-typographic-motion/engine/stage/stage-kit.js +83 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/vendor/three/LICENSE +21 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/vendor/three/addons/environments/RoomEnvironment.js +144 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/vendor/three/addons/geometries/RoundedBoxGeometry.js +155 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/vendor/three/three.module.js +54571 -0
- package/plugins/litclaude/skills/lit-typographic-motion/recipes/hero-3d/expected.json +69 -0
- package/plugins/litclaude/skills/lit-typographic-motion/recipes/hero-3d/index.html +139 -0
- package/plugins/litclaude/skills/lit-typographic-motion/recipes/orbit-loop/expected.json +2 -0
- package/plugins/litclaude/skills/lit-typographic-motion/recipes/painted-light/expected.json +2 -0
- package/plugins/litclaude/skills/lit-typographic-motion/recipes/weight-tide/expected.json +2 -0
- package/plugins/litclaude/skills/lit-typographic-motion/references/cover.md +67 -15
- package/plugins/litclaude/skills/lit-typographic-motion/references/craft-loop.md +3 -2
- package/plugins/litclaude/skills/lit-typographic-motion/references/depth.md +122 -0
- package/plugins/litclaude/skills/lit-typographic-motion/references/look.md +28 -13
- package/plugins/litclaude/skills/lit-typographic-motion/references/runtime.md +4 -3
- package/plugins/litclaude/skills/lit-typographic-motion/references/sound.md +92 -23
- package/plugins/litclaude/skills/lit-typographic-motion/references/stage.md +43 -22
- package/plugins/litclaude/skills/lit-typographic-motion/references/studio.md +245 -0
- package/plugins/litclaude/skills/lit-typographic-motion/references/style-bibles.md +30 -6
- package/plugins/litclaude/skills/lit-typographic-motion/references/treatment.md +108 -14
- package/plugins/litclaude/skills/lit-typographic-motion/scripts/motion-doctor.mjs +16 -3
- package/plugins/litclaude/skills/lit-typographic-motion/scripts/motion.mjs +47 -7
- package/plugins/litclaude/skills/lit-typographic-motion/styles/paper.json +41 -0
- package/plugins/litclaude/skills/lit-typographic-motion/styles/swiss-signal.json +41 -0
- package/plugins/litclaude/skills/lit-typographic-motion/styles/terminalcore.json +42 -0
- package/plugins/litclaude/skills/lit-typographic-motion/styles/tidal.json +41 -0
- package/plugins/litclaude/skills/litgoal/SKILL.md +3 -2
- package/plugins/litclaude/skills/litresearch/SKILL.md +5 -0
- package/plugins/litclaude/skills/readme-studio/SKILL.md +10 -0
- package/plugins/litclaude/skills/readme-studio/references/production-interview.md +2 -0
- package/plugins/litclaude/skills/readme-studio/templates/hyperframes-cover/package-lock.json +3 -3
- package/plugins/litclaude/skills/readme-studio/templates/remotion-cover/package-lock.json +3 -3
- package/plugins/litclaude/skills/start-work/SKILL.md +24 -11
- package/scripts/qa-cover-recipes.mjs +3 -3
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema_id": "litfamily.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,226 @@
|
|
|
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
|
+
const text = svg("text", { class: "ui-marker-label", x: x + 4, y: f.pad.top + 6 });
|
|
108
|
+
text.textContent = opts.marker.label;
|
|
109
|
+
f.root.append(text);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
const drawn = new Map();
|
|
113
|
+
let resizeTimer = 0;
|
|
114
|
+
addEventListener("resize", () => {
|
|
115
|
+
clearTimeout(resizeTimer);
|
|
116
|
+
resizeTimer = setTimeout(() => { for (const [el, draw] of drawn) draw(); }, 150);
|
|
117
|
+
});
|
|
118
|
+
const remember = (el, draw) => { drawn.set(el, draw); draw(); };
|
|
119
|
+
|
|
120
|
+
function bars(el, opts) { remember(el, () => drawBars(el, opts)); }
|
|
121
|
+
function lines(el, opts) { remember(el, () => drawLines(el, opts)); }
|
|
122
|
+
|
|
123
|
+
function drawBars(el, opts) {
|
|
124
|
+
const stacked = Boolean(opts.stacked);
|
|
125
|
+
const totals = opts.labels.map((_, i) => opts.series.reduce((sum, s) => sum + (stacked ? s.values[i] : 0), 0));
|
|
126
|
+
const max = stacked ? Math.max(...totals) : Math.max(...opts.series.flatMap((s) => s.values));
|
|
127
|
+
const f = frame(el, { ...opts, integer: opts.series.every((s) => s.values.every(Number.isInteger)) }, max);
|
|
128
|
+
f.bandCenter = true;
|
|
129
|
+
const step = f.plotW / opts.labels.length;
|
|
130
|
+
const groupW = step * 0.64;
|
|
131
|
+
const barW = stacked ? groupW : groupW / opts.series.length;
|
|
132
|
+
opts.labels.forEach((label, i) => {
|
|
133
|
+
let base = 0;
|
|
134
|
+
opts.series.forEach((series, s) => {
|
|
135
|
+
const value = series.values[i];
|
|
136
|
+
const h = (value / f.top) * f.plotH;
|
|
137
|
+
const x = f.pad.left + step * i + (step - groupW) / 2 + (stacked ? 0 : barW * s);
|
|
138
|
+
const y = f.pad.top + f.plotH - h - (stacked ? (base / f.top) * f.plotH : 0);
|
|
139
|
+
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)}` });
|
|
140
|
+
const title = svg("title");
|
|
141
|
+
title.textContent = `${label}: ${series.name} ${fmt(value, opts.unit)}`;
|
|
142
|
+
rect.append(title);
|
|
143
|
+
f.root.append(rect);
|
|
144
|
+
base += stacked ? value : 0;
|
|
145
|
+
});
|
|
146
|
+
});
|
|
147
|
+
xLabels(f, opts.labels, step);
|
|
148
|
+
if (opts.marker) marker(f, opts, f.pad.left + step * opts.marker.index + step / 2);
|
|
149
|
+
el.append(f.root);
|
|
150
|
+
legendAndTable(el, opts);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
function drawLines(el, opts) {
|
|
154
|
+
const max = Math.max(...opts.series.flatMap((s) => s.values));
|
|
155
|
+
const f = frame(el, { ...opts, integer: opts.series.every((s) => s.values.every(Number.isInteger)) }, max);
|
|
156
|
+
const step = f.plotW / Math.max(1, opts.labels.length - 1);
|
|
157
|
+
opts.series.forEach((series, s) => {
|
|
158
|
+
const points = series.values.map((value, i) => `${f.pad.left + step * i},${f.pad.top + f.plotH - (value / f.top) * f.plotH}`);
|
|
159
|
+
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" }));
|
|
160
|
+
});
|
|
161
|
+
f.bandCenter = false;
|
|
162
|
+
xLabels(f, opts.labels, step);
|
|
163
|
+
if (opts.marker) marker(f, opts, f.pad.left + step * opts.marker.index);
|
|
164
|
+
el.append(f.root);
|
|
165
|
+
legendAndTable(el, opts);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
function sortable(table) {
|
|
169
|
+
const tbody = table.tBodies[0];
|
|
170
|
+
table.querySelectorAll("thead th .ui-sort").forEach((button) => {
|
|
171
|
+
button.type = "button";
|
|
172
|
+
button.addEventListener("click", () => {
|
|
173
|
+
const th = button.closest("th");
|
|
174
|
+
const index = [...th.parentElement.children].indexOf(th);
|
|
175
|
+
const next = th.getAttribute("aria-sort") === "ascending" ? "descending" : "ascending";
|
|
176
|
+
table.querySelectorAll("thead th[aria-sort]").forEach((cell) => cell.removeAttribute("aria-sort"));
|
|
177
|
+
th.setAttribute("aria-sort", next);
|
|
178
|
+
const key = (row) => {
|
|
179
|
+
const cell = row.children[index];
|
|
180
|
+
const raw = cell?.dataset.value ?? cell?.textContent.trim() ?? "";
|
|
181
|
+
const number = Number(raw);
|
|
182
|
+
return raw !== "" && !Number.isNaN(number) ? number : raw.toLocaleLowerCase();
|
|
183
|
+
};
|
|
184
|
+
const rows = [...tbody.rows].sort((a, b) => {
|
|
185
|
+
const x = key(a);
|
|
186
|
+
const y = key(b);
|
|
187
|
+
const order = typeof x === "number" && typeof y === "number" ? x - y : String(x).localeCompare(String(y));
|
|
188
|
+
return next === "ascending" ? order : -order;
|
|
189
|
+
});
|
|
190
|
+
tbody.append(...rows);
|
|
191
|
+
table.dispatchEvent(new CustomEvent("ui:sorted", { detail: { index, order: next } }));
|
|
192
|
+
});
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
function tabs(list) {
|
|
197
|
+
const items = [...list.querySelectorAll('[role="tab"]')];
|
|
198
|
+
const select = (tab) => {
|
|
199
|
+
for (const item of items) {
|
|
200
|
+
const on = item === tab;
|
|
201
|
+
item.setAttribute("aria-selected", String(on));
|
|
202
|
+
item.tabIndex = on ? 0 : -1;
|
|
203
|
+
const panel = document.getElementById(item.getAttribute("aria-controls"));
|
|
204
|
+
if (panel) panel.hidden = !on;
|
|
205
|
+
}
|
|
206
|
+
};
|
|
207
|
+
items.forEach((tab, index) => {
|
|
208
|
+
tab.addEventListener("click", () => select(tab));
|
|
209
|
+
tab.addEventListener("keydown", (event) => {
|
|
210
|
+
const move = { ArrowRight: 1, ArrowLeft: -1, Home: -index, End: items.length - 1 - index }[event.key];
|
|
211
|
+
if (move === undefined) return;
|
|
212
|
+
event.preventDefault();
|
|
213
|
+
const next = items[(index + move + items.length) % items.length];
|
|
214
|
+
next.focus();
|
|
215
|
+
select(next);
|
|
216
|
+
});
|
|
217
|
+
});
|
|
218
|
+
select(items.find((tab) => tab.getAttribute("aria-selected") === "true") ?? items[0]);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
document.addEventListener("DOMContentLoaded", () => {
|
|
222
|
+
document.querySelectorAll("table[data-ui-sortable]").forEach(sortable);
|
|
223
|
+
document.querySelectorAll("[data-ui-tabs]").forEach(tabs);
|
|
224
|
+
});
|
|
225
|
+
window.UI = { bars, lines, sortable, tabs };
|
|
226
|
+
})();
|
|
@@ -17,7 +17,7 @@ an approval you do not have.
|
|
|
17
17
|
|
|
18
18
|
Do not invent an identity. Build a neutral system a real brand can replace at one seam.
|
|
19
19
|
|
|
20
|
-
- a
|
|
20
|
+
- an accent role and a second accent role, each defined once as a token and referenced everywhere
|
|
21
21
|
- a neutral ramp derived from one hue with fixed contrast steps
|
|
22
22
|
- a system font stack with an explicit per-script fallback
|
|
23
23
|
- geometric placeholder marks, never a wordmark that reads as a company name
|
|
@@ -244,6 +244,7 @@ the lane". `all` means the row applies in every lane.
|
|
|
244
244
|
| `references/evidence-review.md` | all | What belongs in the review package, and who is allowed to assign the verdict? |
|
|
245
245
|
| `references/craft-floor.md` | all | How do I run the interface probe loop, which mode applies, and which numbered craft and responsive rules does a finding cite? |
|
|
246
246
|
| `references/slop-register.md` | all | Which reflex-default tells does the probe flag, and what is the cheapest fix for each? |
|
|
247
|
+
| `references/house-styles.md` | `new-build`, `redesign` | Which house style and layout family do I lock, which kit classes exist, and which DS rules does the probe check? |
|
|
247
248
|
|
|
248
249
|
Read-only agents (`Read`, `Grep`, `Glob`) are the right way to consult this pack when the main
|
|
249
250
|
context is under pressure: the reference text is data, so it needs no write capability.
|
|
@@ -34,6 +34,10 @@ What it does, in order:
|
|
|
34
34
|
counted under Not verified instead of being opened.
|
|
35
35
|
4. Writes `<evidence dir>/findings.json` (`{ manifest, findings }`, each finding naming exactly
|
|
36
36
|
one rule id) and prints the review table below.
|
|
37
|
+
5. When a `design.lock.json` sits beside the page (or `--lock` names one), runs the DS-* lock rules
|
|
38
|
+
from `references/house-styles.md` in the same pass and records the lock in
|
|
39
|
+
`manifest.design_lock`; without one, DS-001 is listed under Not verified. A rendered run ends with
|
|
40
|
+
the screenshot paths and the six LOOK questions that section 2's loop answers.
|
|
37
41
|
|
|
38
42
|
Exit codes are the contract: **0** all seven matrix rows ran and no measured or derived HIGH
|
|
39
43
|
finding remains; **1** at least one measured or derived HIGH finding remains (this wins over a
|
|
@@ -80,7 +84,8 @@ build (or baseline) -> probe -> fix -> probe -> fix -> probe -> fix -> final pro
|
|
|
80
84
|
below). Never phrase an inferred value as measured. A derived value built on a missing or stale
|
|
81
85
|
measurement drops to inferred. *Not verified* is its own state: the check did not run.
|
|
82
86
|
- **Look at the screenshots** for 320, 390 and 1440 before claiming the page works; the probe
|
|
83
|
-
measures rules, it does not see a composition.
|
|
87
|
+
measures rules, it does not see a composition. Answer its LOOK-1 to LOOK-6 questions in one line
|
|
88
|
+
each, fix the two worst, and stop after two look rounds.
|
|
84
89
|
|
|
85
90
|
## 3. Modes
|
|
86
91
|
|
|
@@ -196,7 +201,7 @@ Every DOM rule samples only what a person can see: `checkVisibility`, no accessi
|
|
|
196
201
|
| CF-202 | Focus indicator | in-page focus confirmed as `:focus-visible`, then focused and resting styles compared: outline, shadow, border or background must change; the browser's own `auto` ring passes; a custom ring needs ≥ 2 px and ≥ 3:1 against the colour just outside it | HIGH when focus changes nothing; MEDIUM for a weak custom ring | measured |
|
|
197
202
|
| CF-203 | APCA | advisory Lc figure beside every CF-201 finding (body 75, non-body 60, large 45, components 30) | information | in the note |
|
|
198
203
|
| CF-204 | Text over image or gradient | on a CSS gradient the text clears CF-201's floor against its worst colour stop; text over an image is not verified | HIGH | derived |
|
|
199
|
-
| CF-205 |
|
|
204
|
+
| CF-205 | Accent families per view | ≤ 4 saturated hue clusters (±15°) among filled surfaces ≥ 24 × 24 px in the default rich register, ≤ 1 when the lock records `density: calm`; status roles, live regions, `aria-invalid`, success/warning/error/danger/info-style class tokens and pills ≤ 32 px tall excluded | MEDIUM | measured |
|
|
200
205
|
| CF-206 | Hue tolerance | hues within 15° count as one meaning | LOW | inside CF-205 |
|
|
201
206
|
| CF-207 | Not colour alone | state carries text, an icon or a pattern too | HIGH | checklist (Inferred) |
|
|
202
207
|
|
|
@@ -212,8 +217,8 @@ Every DOM rule samples only what a person can see: `checkVisibility`, no accessi
|
|
|
212
217
|
| CF-306 | Container `gap` | rhythm from the parent's `gap`, not child margins | LOW | checklist |
|
|
213
218
|
| CF-401 | Concentric radius | inner = outer − padding, ±2 px, compared per corner where the child reaches that corner, radii capped at half the short side, padding ≤ 24 px | LOW | measured |
|
|
214
219
|
| CF-402 | Elevation once | no hard ≤ 2 px shadow retracing a border | LOW | checklist |
|
|
215
|
-
| CF-403 | Hard offset shadow | a zero-blur shadow offset past a hairline, unless the direction records a neo-brutalist register (the probe's proxy
|
|
216
|
-
| CF-404 | No glow on the primary action | no ≤ 2 px offset, ≥ 16 px blur, saturation > 0.4 shadow on the primary action or a heading; the same glow on ≥
|
|
220
|
+
| CF-403 | Hard offset shadow | a zero-blur shadow offset past a hairline, unless the direction records a neo-brutalist register (a `design.lock.json` with `offset` elevation, the `neo-brutalism` house style, records one; without a lock the probe's proxy is the same shadow on ≥ 3 elements that each carry a ≥ 2 px solid border) | MEDIUM | measured |
|
|
221
|
+
| CF-404 | No glow on the primary action | no ≤ 2 px offset, ≥ 16 px blur, saturation > 0.4 shadow on the primary action or a heading; the same glow on ≥ 3 unrelated elements is reported once, as SLOP-010; a glow on a section, panel or the moment (the kit's `ui-glow`) is not a control halo and is never reported | LOW | measured |
|
|
217
222
|
| CF-405 | Neutral image outline | ~1 px, low opacity, saturation < 15 % | LOW | checklist |
|
|
218
223
|
| CF-406 | Solid scrim | no `backdrop-filter: blur` on a full-viewport overlay | LOW | measured |
|
|
219
224
|
| CF-407 | Decorative patterns | grids, halos, marquees and stripes need a real referent (see the slop register) | LOW to MEDIUM | via SLOP rows |
|
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
"schema_id": "litfamily.frontend-default-profile/v1",
|
|
3
3
|
"name": "Field notes / pixel signal",
|
|
4
4
|
"authorship": "Original LitClaude profile outside the immutable library",
|
|
5
|
-
"hierarchy": ["large editorial title with intentional breaks", "small terminal labels", "
|
|
6
|
-
"spacing": {"unit_px": 8, "detail_px": 4, "section_desktop_px": [
|
|
5
|
+
"hierarchy": ["large editorial title with intentional breaks", "small terminal labels", "a tight editorial rhythm with thin rules, notebook-dot paper and a second accent", "layered surfaces: a colour band, a two-accent wash and one atmosphere glow", "asymmetric atmospheric field", "original task-specific pixel-art illustration as the primary visual anchor when the brief gives no visual direction"],
|
|
6
|
+
"spacing": {"unit_px": 8, "detail_px": 4, "section_desktop_px": [72, 96], "section_mobile_px": [40, 56]},
|
|
7
|
+
"density": {"default": "rich", "calm_only_when": "the request asks for a minimal, calm, quiet or restrained page (미니멀, 차분, 절제), or design-lock.mjs init --density calm; calm restores 64 to 128 px sections, a flat canvas and no glow"},
|
|
7
8
|
"type": {"display_desktop_px": [56, 104], "display_mobile_px": [36, 56], "latin_leading": [0.95, 1.05], "korean_leading": [1.12, 1.25], "body_leading": [1.5, 1.7]},
|
|
8
|
-
"palette": {"paper": "#f5f3eb", "ink": "#18272b", "accent": "#c64d2e", "mist": "#b7d8c7"},
|
|
9
|
+
"palette": {"paper": "#f5f3eb", "ink": "#18272b", "accent": "#c64d2e", "accent_2": "#1d6b68", "mist": "#b7d8c7"},
|
|
9
10
|
"pixel_art": {
|
|
10
11
|
"default_when_unspecified": true,
|
|
11
12
|
"primary_visual_anchor": true,
|
|
@@ -19,9 +20,9 @@
|
|
|
19
20
|
"applies_to": "screens people work in repeatedly, such as admin consoles, analytics views and internal tools, as opposed to pages people read once",
|
|
20
21
|
"first_viewport": "the working content and primary controls; no hero headline, tagline or illustration block above them",
|
|
21
22
|
"pixel_art": "a small accent at most, never the primary visual anchor",
|
|
22
|
-
"keeps": "
|
|
23
|
+
"keeps": "nothing of this palette: work surfaces lock the graphite house style (scripts/design-lock.mjs family default); the pixel art stays a small accent at most"
|
|
23
24
|
},
|
|
24
25
|
"responsive": {"minimum_css_width": 320, "rule": "reflow content and line breaks, never crop the title"},
|
|
25
|
-
"motion": "state changes remain understandable with nonessential motion disabled",
|
|
26
|
+
"motion": "layered motion is welcome where it explains or delights (see references/motion-guide.md); state changes remain understandable with nonessential motion disabled",
|
|
26
27
|
"precedence": "explicit user direction and existing brand tokens override this default; if the brief names competing visual directions without choosing or delegating one, ask before applying it"
|
|
27
28
|
}
|