Back to list
cloudposse

docs-styles

by cloudposse

Terraform Reference Architecture for AWS, Datadog and GitHub Actions

90🍴 32📅 Jan 23, 2026

SKILL.md


name: docs-styles description: CSS styles, color themes, and visual conventions for docs.cloudposse.com. Use when styling components, mermaid diagrams, or working with site theming.

Documentation Styles

CSS styles and color conventions for docs.cloudposse.com.

Color Palette

Site Primary Colors

Defined in src/css/custom.css:

VariableLightDarkUsage
--ifm-color-primary#3578e5#3578e5Primary blue, links, buttons
--ifm-color-primary-dark#306cce#306cceHover states
--ifm-color-primary-darkest#2554a0#2554a0Active states
--ifm-background-colordefault#030711Page background

Mermaid Diagram Colors

Defined in src/css/mermaid.css:

VariableHexUsage
--mermaid-primary#3578e5Primary elements, read-only access
--mermaid-primary-dark#2554a0Darker blue variant
--mermaid-secondary#6c757dGray, neutral elements
--mermaid-success#28a745Green, write/apply access
--mermaid-danger#dc3545Red, destructive/admin
--mermaid-warning#e67e22Orange, caution/IdP
--mermaid-info#17a2b8Teal, informational
--mermaid-user#9b59b6Purple, user/identity
--mermaid-account#2c3e50Dark 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

ColorMeaningExample Usage
Blue (#3578e5)Read-only, plan, infoTerraformPlanAccess
Green (#28a745)Write, apply, successTerraformApplyAccess
Orange (#e67e22)Identity, IdP, warningIdentity Center
Purple (#9b59b6)User, human identityUser nodes
Dark slate (#2c3e50)AWS accounts, infrastructureAccount nodes
Red (#dc3545)Destructive, admin, dangerRootAccess

CSS File Locations

FilePurpose
src/css/custom.cssGlobal styles, Infima overrides
src/css/mermaid.cssMermaid diagram styling
src/css/admonitions.cssAdmonition/callout styling
src/css/sidebar.cssNavigation sidebar
src/css/navbar.cssTop navigation
src/css/footer.cssFooter 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)} />

Score

Total Score

70/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

1ヶ月以内に更新

+10
フォーク

10回以上フォークされている

+5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

+5

Reviews

💬

Reviews coming soon