{"version":3,"file":"ReadCodeFig08_1.ewFCEEff.mjs","names":["__esmMin","init_jsx_runtime","c","p","addPropertyControls","init_framer_BL70qLPA","ReadCodeFig08","props","sans","sansFont","mono","monoFont","style","spaceAbove","spaceBelow","FIG_CSS","CSS","number","BODY","__FramerMetadata__","init_ReadCodeFig08_1","ControlType","\"exports\"","\"default\"","\"type\"","\"name\"","\"slots\"","\"annotations\"","\"framerSupportedLayoutWidth\"","\"framerContractVersion\"","\"framerSupportedLayoutHeight\"","\"framerIntrinsicWidth\"","\"__FramerMetadata__\""],"sources":["https:/framerusercontent.com/modules/uaTGuY9hXMZEUIuWIgeQ/saVaovfaa2A3OttLTOTH/ReadCodeFig08_1.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * ReadCodeFig08: Fig. 03 of \"How to read code in the era of AI\" (rebuilt from the author's diagram in the blog's dark figure style).\n * Generated from the same source as the preview figure; static, no motion.\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 680\n */export default function ReadCodeFig08(props){const{number,sansFont,monoFont,spaceAbove,spaceBelow,style}=props;const sans=`\"${sansFont}\", Arial, sans-serif`;const mono=`\"${monoFont}\", ui-monospace, monospace`;return /*#__PURE__*/_jsx(\"div\",{style:{...style,boxSizing:\"border-box\",paddingTop:spaceAbove,paddingBottom:spaceBelow},children:/*#__PURE__*/_jsxs(\"figure\",{className:\"sfig dfx-r8\",style:{[\"--sans\"]:sans,[\"--mono\"]:mono},children:[/*#__PURE__*/_jsx(\"style\",{children:FIG_CSS+CSS}),/*#__PURE__*/_jsxs(\"div\",{className:\"sfig-head\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"sfig-kicker\",children:\"Agent skill\"}),/*#__PURE__*/_jsxs(\"span\",{className:\"sfig-num\",children:[\"Fig. \",String(number).padStart(2,\"0\")]})]}),/*#__PURE__*/_jsx(\"div\",{className:\"sfig-title\",children:\"mermaid-colors \\xb7 SKILL.md\"}),/*#__PURE__*/_jsx(\"div\",{dangerouslySetInnerHTML:{__html:BODY}})]})});}const FIG_CSS=`\n.sfig{box-sizing:border-box;width:100%;margin:0;padding:24px;border:1px solid rgba(255,255,255,.10);border-radius:4px;background:rgba(255,255,255,.025);font-family:var(--sans);font-size:15px;line-height:1.5;color:#C4CAD5 !important}\n.sfig *{box-sizing:border-box}\n.sfig-head{display:flex;justify-content:space-between;gap:16px}\n.sfig-kicker,.sfig-num{font:500 12px/1.2 var(--mono);letter-spacing:.1em;text-transform:uppercase;color:#8E97A8 !important}\n.sfig-num{color:#8FB3D9 !important}\n.sfig-title{margin:8px 0 20px;font:600 18px/1.4 var(--sans);letter-spacing:-.01em;color:#F3F5F9 !important}\n@media (max-width:640px){.sfig{padding:16px}}\n`;const CSS='\\n.dfx-r8-node{display:flex;flex-direction:column;justify-content:center;gap:4px;padding:12px 14px;border:1px solid rgba(255,255,255,0.12);border-radius:3px;background:rgba(255,255,255,0.035);font:500 15px/1.3 \"Aileron\",Arial,sans-serif;color:#F3F5F9 !important;text-align:center}\\n.dfx-r8-node small{display:block;font:400 12px/1.35 \"IBM Plex Mono\",ui-monospace,monospace;color:#8E97A8 !important}\\n.dfx-r8-blue{border-color:rgba(143,179,217,0.55);background:rgba(143,179,217,0.10)}\\n.dfx-r8-warm{border-color:rgba(235,223,214,0.55);background:rgba(235,223,214,0.08)}\\n.dfx-r8-arr{display:flex;align-items:center;justify-content:center;color:#8E97A8 !important;font:400 18px/1 \"IBM Plex Mono\",ui-monospace,monospace}\\n.dfx-r8-arr::before{content:\"→\"}\\n.dfx-r8-cap{margin:20px 0 0;padding-top:14px;border-top:1px solid rgba(255,255,255,0.10);font:400 12px/1.5 \"IBM Plex Mono\",ui-monospace,monospace;color:#8E97A8 !important}\\n.dfx-r8-mono{font:400 13px/1.5 \"IBM Plex Mono\",ui-monospace,monospace;color:#C4CAD5 !important}\\n\\n.dfx-r8-file{border:1px solid rgba(255,255,255,0.10);border-radius:3px;overflow:hidden;background:#0E131B}\\n.dfx-r8-bar{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 14px;padding:10px 16px;border-bottom:1px solid rgba(255,255,255,0.10);background:rgba(255,255,255,0.03)}\\n.dfx-r8-bar b{font:600 14px/1.3 \"IBM Plex Mono\",ui-monospace,monospace;color:#F3F5F9 !important}\\n.dfx-r8-bar span{font:400 12px/1.3 \"IBM Plex Mono\",ui-monospace,monospace;color:#8E97A8 !important}\\n.dfx-r8-pre{margin:0;padding:16px 18px;max-height:440px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font:400 12.5px/1.65 \"IBM Plex Mono\",ui-monospace,monospace;color:#C4CAD5 !important}';const BODY='<div class=\"dfx-r8-file\"><div class=\"dfx-r8-bar\"><b>mermaid-colors</b><span>Agent Skill \\xb7 SKILL.md \\xb7 the six passes above, as a file</span></div><pre class=\"dfx-r8-pre\" tabindex=\"0\" aria-label=\"SKILL.md contents\"><span style=\"color:#8FB3D9\">---</span>\\n<span style=\"color:#8FB3D9\">name: mermaid-colors</span>\\n<span style=\"color:#8FB3D9\">description: Apply a consistent semantic color palette when creating or updating Mermaid diagrams. Use for flows, states, and interactions where color helps distinguish inputs, processing, effects, failures, outcomes, and external systems.</span>\\n<span style=\"color:#8FB3D9\">---</span>\\n\\n<span style=\"color:#F3F5F9;font-weight:600\"># Mermaid colors</span>\\n\\nUse color to identify a node\\'s role in the story, not to decorate the diagram. Keep the mapping stable across diagrams. Labels and arrows must still make sense without color.\\n\\n<span style=\"color:#F3F5F9;font-weight:600\">## Palette</span>\\n\\n| Role | Fill | Stroke | Text | Use for |\\n|---|---|---|---|---|\\n| `userNode` | `#dbeafe` | `#2563eb` (1.5px) | `#1e3a8a` | Actor, user action, or incoming input |\\n| `parseNode` | `#e0e7ff` | `#6366f1` (1.5px) | `#312e81` | Processing, derivation, or decision |\\n| `effectNode` | `#fef3c7` | `#d97706` (1.5px) | `#78350f` | Side effect, state change, or escalation |\\n| `bugNode` | `#fee2e2` | `#dc2626` (2px) | `#7f1d1d` | Identified focal fault or failed invariant |\\n| `resultNode` | `#fee2e2` | `#dc2626` (1.5px) | `#7f1d1d` | Negative outcome or visible symptom |\\n| `legacyNode` | `#fee2e2` | `#dc2626` (1.5px, dashed) | `#7f1d1d` | Deprecated or retired path, when relevant |\\n| `okNode` | `#dcfce7` | `#16a34a` (1.5px) | `#14532d` | Confirmed success or desired outcome |\\n| `extNode` | `#f1f5f9` | `#64748b` (1.5px) | `#0f172a` | External system, service, or data store |\\n\\n<span style=\"color:#F3F5F9;font-weight:600\">## Apply the palette</span>\\n\\n- Assign roles by meaning, not shape or position. An error-handling *step* may be `parseNode`; use red only for an actual fault or negative outcome. Do not style every ordinary output as `resultNode`.\\n- Define only the classes the diagram uses. For flowcharts, use Mermaid\\'s `classDef` once per role and apply it with `class`. Use the same values for state diagrams where supported. For sequence diagrams, use supported `box` or `rect` coloring with these fills converted to `rgb(...)`; `classDef` does not style participant lifelines there.\\n- Reserve the 2px `bugNode` outline for the focal fault when one has been identified. Use `legacyNode` only when the path is actually deprecated; a dashed red border is a status cue, not an instruction to delete it.\\n- For call paths, bug traces, or architecture diagrams of an existing codebase, inspect the source first. Every node that maps to code should show its verified function name and repo-relative file on separate lines; do not replace it with a paraphrase. Use plain-language labels for people and external systems. If a symbol cannot be verified, label it as unknown or omit the node; never invent a name.\\n- Show the real direction of calls or data, with one idea per arrow. If information flows both ways, draw two directed arrows rather than one ambiguous bidirectional arrow. Keep edge labels short, split a crowded flow into focused diagrams when needed, and preserve branches or cycles that matter. Add a legend only when the color meaning would otherwise be unclear.</pre></div><div class=\"dfx-r8-cap\">Drop it in .claude/skills/mermaid-colors/SKILL.md and it loads when a review starts. It is written to be equally readable by a person — the passes are the same either way.</div>';ReadCodeFig08.defaultProps={number:3,sansFont:\"Aileron\",monoFont:\"IBM Plex Mono\",spaceAbove:40,spaceBelow:40};addPropertyControls(ReadCodeFig08,{number:{type:ControlType.Number,title:\"Fig. number\",min:1,max:20,step:1},spaceAbove:{type:ControlType.Number,title:\"Space above\",min:0,max:160,unit:\"px\"},spaceBelow:{type:ControlType.Number,title:\"Space below\",min:0,max:160,unit:\"px\"},sansFont:{type:ControlType.String,title:\"Sans font\"},monoFont:{type:ControlType.String,title:\"Mono font\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ReadCodeFig08\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerIntrinsicWidth\":\"680\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ReadCodeFig08_1.map"],"mappings":"A,8JAOG,SAAwBM,EAAc,EAAM,CAAC,GAAK,CAAC,SAAO,WAAS,WAAS,aAAW,aAAW,SAAOC,EAAYC,EAAK,IAAIC,EAAS,sBAA4BC,EAAK,IAAIC,EAAS,4BAA4B,MAAoB,gBAAK,MAAM,CAAC,MAAM,CAAC,GAAGC,EAAM,UAAU,aAAa,WAAWC,EAAW,cAAcC,CAAU,EAAE,SAAsB,gBAAM,SAAS,CAAC,UAAU,cAAc,MAAM,CAAE,SAAUN,EAAM,SAAUE,CAAI,EAAE,SAAS,CAAc,gBAAK,QAAQ,CAAC,SAASK,EAAQC,CAAG,CAAC,EAAe,gBAAM,MAAM,CAAC,UAAU,YAAY,SAAS,CAAc,gBAAK,OAAO,CAAC,UAAU,cAAc,SAAS,aAAa,CAAC,EAAe,gBAAM,OAAO,CAAC,UAAU,WAAW,SAAS,CAAC,QAAQ,OAAOC,CAAM,CAAC,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAe,gBAAK,MAAM,CAAC,UAAU,aAAa,SAAS,2BAA8B,CAAC,EAAe,gBAAK,MAAM,CAAC,wBAAwB,CAAC,OAAOC,CAAI,CAAC,CAAC,CAAC,CAAC,C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