Claude-code-best-practice presentation-styling
Knowledge about CSS classes, component patterns, and syntax highlighting in the presentation
install
source · Clone the upstream repo
git clone https://github.com/shanraisshan/claude-code-best-practice
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/shanraisshan/claude-code-best-practice "$T" && mkdir -p ~/.claude/skills && cp -r "$T/.claude/skills/presentation/presentation-styling" ~/.claude/skills/shanraisshan-claude-code-best-practice-presentation-styling && rm -rf "$T"
manifest:
.claude/skills/presentation/presentation-styling/SKILL.mdsource content
Presentation Styling Skill
CSS classes and HTML patterns used in
presentation/index.html.
CSS Component Classes
Layout
— 2-column grid layout with 24px gap.two-col
— 2-column grid for info cards.info-grid
— Card inside a column (add.col-card
for green border,.good
for red border).bad
— Card in an info grid.info-card
Content Blocks
— Gray box with dark left border (for key concepts, prerequisites).trigger-box
— Green box with green border (for "Try This" actions).how-to-trigger
— Orange box with warning border (for important warnings).warning-box
— Dark code display block with monospace font.code-block
Lists
— Container for icon+text list items.use-cases
— Individual item with icon and text.use-case-item
— Simple bordered list.feature-list
Tags & Badges
— Gray inline pill tag.matcher-tag
— Green pill badge (auto-injected by JS for weighted slides).weight-badge
Code Block Syntax Highlighting
Inside
.code-block, use these spans for syntax coloring:
<div class="code-block"> <span class="comment"># This is a comment</span> <span class="key">field_name</span>: <span class="string">value</span> <span class="cmd">></span> command to run </div>
— Green (#6a9955) for comments.comment
— Blue (#9cdcfe) for property names/keys.key
— Orange (#ce9178) for string values.string
— Yellow (#dcdcaa) for commands/prompts.cmd
Slide Type Patterns
Content Slide with Two Columns (Good vs Bad)
<div class="slide" data-slide="N" data-weight="5"> <h1>Title</h1> <div class="two-col"> <div class="col-card bad"> <h4>Before (Vibe Coding)</h4> <!-- bad example --> </div> <div class="col-card good"> <h4>After (Agentic)</h4> <!-- good example --> </div> </div> </div>
Do not hardcode
<span class="weight-badge"> in slide HTML. The presentation JavaScript injects and removes weight badges automatically.
Content Slide with Code Example
<div class="slide" data-slide="N"> <h1>Title</h1> <div class="trigger-box"> <h4>Key Concept</h4> <p>Description</p> </div> <div class="code-block"><span class="comment"># Example</span> <span class="key">field</span>: <span class="string">value</span></div> </div>
Icon List Pattern
<div class="use-cases"> <div class="use-case-item"> <span class="use-case-icon">EMOJI</span> <div class="use-case-text"> <strong>Title</strong> <span>Description text</span> </div> </div> </div>
Journey Bar Specific
— Fixed bar below progress bar.journey-bar
— Hidden on title slide.journey-bar.hidden- Journey bar color transitions from red (0%) to green (100%) via HSL interpolation
- Weight badges are auto-injected by JS into
elements of weighted slidesh1