Claude-skill-registry docs-styles
CSS styles, color themes, and visual conventions for docs.cloudposse.com. Use when styling components, mermaid diagrams, or working with site theming.
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/docs-styles" ~/.claude/skills/majiayu000-claude-skill-registry-docs-styles && rm -rf "$T"
manifest:
skills/data/docs-styles/SKILL.mdsource content
Documentation Styles
CSS styles and color conventions for docs.cloudposse.com.
Color Palette
Site Primary Colors
Defined in
src/css/custom.css:
| Variable | Light | Dark | Usage |
|---|---|---|---|
| | | Primary blue, links, buttons |
| | | Hover states |
| | | Active states |
| default | | Page background |
Mermaid Diagram Colors
Defined in
src/css/mermaid.css:
| Variable | Hex | Usage |
|---|---|---|
| | Primary elements, read-only access |
| | Darker blue variant |
| | Gray, neutral elements |
| | Green, write/apply access |
| | Red, destructive/admin |
| | Orange, caution/IdP |
| | Teal, informational |
| | Purple, user/identity |
| | Dark slate, AWS accounts |
Using Colors in Mermaid Diagrams
Mermaid doesn't support CSS variables directly. Use hex values with
style:
flowchart LR user["User"] --> service["Service"] style user fill:#9b59b6,color:#fff style service fill:#3578e5,color:#fff
Semantic Color Meanings
| Color | Meaning | Example Usage |
|---|---|---|
Blue () | Read-only, plan, info | TerraformPlanAccess |
Green () | Write, apply, success | TerraformApplyAccess |
Orange () | Identity, IdP, warning | Identity Center |
Purple () | User, human identity | User nodes |
Dark slate () | AWS accounts, infrastructure | Account nodes |
Red () | Destructive, admin, danger | RootAccess |
CSS File Locations
| File | Purpose |
|---|---|
| Global styles, Infima overrides |
| Mermaid diagram styling |
| Admonition/callout styling |
| Navigation sidebar |
| Top navigation |
| Footer styling |
Dark Mode
Use
[data-theme='dark'] or html[data-theme='dark'] selectors:
[data-theme='dark'] .my-element { background: #21262d; color: #fff; }
Component Styling
React components have co-located CSS modules:
src/components/ ├── Steps/ │ ├── index.js │ └── index.module.css ├── ActionCard/ │ ├── index.js │ └── index.module.css
Use
clsx for conditional class names:
import clsx from 'clsx'; import styles from './index.module.css'; <div className={clsx(styles.container, isActive && styles.active)} />