🎨 Component Pattern Library
⚠️ This page is only visible in development mode
CalloutBox Variants
All available color variants for the CalloutBox component:
Default
Tip
Info
Info Variant
Light blue background with left border. Perfect for important information.
Warning
Warning Variant
Orange background with left border. Use for cautions and warnings.
Purple (AI Fluency Framework)
Mint
Mint Variant
Fresh mint green background. Great for success messages or eco-friendly content.
Peach
Peach Variant
Warm peach background. Perfect for friendly, approachable content.
Sand
Sand Variant
Soft sand beige background. Ideal for neutral, professional content.
Using Nicknames
Ocean Blue (using nickname)
You can use colorNickname='ocean' instead of variant='info'
Custom Color
Custom Color Example
You can use any custom color with the 'custom' variant.
Pre-configured Components
ResourceDownload
Flexible component for resources with images and multiple download links:
AI Research Paper
Download our comprehensive research on AI interpretability and safety.
VocabularyGuide (Legacy)
Pre-configured for vocabulary guides (kept for backward compatibility):
FrameworkCard
Pre-configured for framework and summary cards (matches AI Fluency design):
The AI Fluency Framework summary (16x9)
Quick visual reference for the four core competencies (the "4Ds") and key concepts. Can be used in delivering presentations.
Usage Examples
Basic Usage
<CalloutBox title="Title Here" description="Description text" variant="purple" />
ResourceDownload Component
<ResourceDownload title="Research Paper" description="Our latest findings on AI safety" imageUrl="/img/research-icon.svg" primaryLink={{ label: 'Read Online', url: '/docs/paper', icon: '📖' }} secondaryLink={{ label: 'Download PDF', url: 'https://example.com/paper.pdf', icon: '📥' }} additionalLinks={[ { label: 'Data', url: '#', icon: '📊' }, { label: 'Code', url: '#', icon: '💻' } ]} colorNickname="jade" />
With Image and Links
<CalloutBox title="Resource Title" description="Description of the resource" imageUrl="/img/icon.svg" links={[ { label: 'View', url: '/docs/resource', icon: '📖' }, { label: 'Download', url: 'https://example.com/file.pdf', icon: '📥', isExternal: true } ]} variant="mint" />
Custom Color
<CalloutBox title="Custom Colored Box" description="With any hex color" variant="custom" customColor="#e8f5e9" />
Using Color Nicknames
// Use friendly color names instead of variants <CalloutBox title="Ocean Blue Box" description="Using the 'ocean' nickname" colorNickname="ocean" // Same as variant="info" /> <CalloutBox title="Amethyst Purple Box" description="Using the 'amethyst' nickname" colorNickname="amethyst" // Same as variant="purple" />
Color Reference
Default
"Heather"
#f5f5fa
Tip
"Sky"
#e8f4fd
Info
"Ocean"
#e1f5fe
Warning
"Sunset"
#fff3e0
Purple
"Amethyst"
#e6e1f5
Mint
"Jade"
#c3e9d8
Peach
"Salmon"
#f5d5c8
Lavender
#e8e3f5
Sage
#d4e8dc
Coral
#ffd4cc
Sand
#e4dacc
Typography & Font Colors
The site uses CSS variables for consistent typography colors that adapt to light and dark modes:
Text Color Variables
Primary Text
var(--ifm-font-color-base)
Light Mode
Dark Mode
Secondary Text
var(--ifm-font-color-secondary)
Light Mode
Dark Mode
Headings
var(--ifm-heading-color)
Light Mode
Dark Mode
Typography Examples
Heading 1 Example
Heading 2 Example
Heading 3 Example
Heading 4 Example
This is primary body text using var(--ifm-font-color-base).
This is secondary text using var(--ifm-font-color-secondary).
UI Element Colors
These colors are used for UI elements like borders, backgrounds, and subtle text:
Secondary
Secondary Dark
Secondary Darker
Secondary Darkest
Usage in CSS
/* Use CSS variables for consistent colors */ .myComponent { color: var(--ifm-font-color-base); } .myComponent h2 { color: var(--ifm-heading-color); } .myComponent .subtitle { color: var(--ifm-font-color-secondary); } /* UI element colors */ .myComponent .border { border-color: var(--ifm-color-emphasis-300); } .myComponent .subtle-bg { background-color: var(--ifm-color-emphasis-100); }
Common Templates
Resource Download Box
Course Material Box
Important Notice
⚠️ Important Update
Please note that this content has been updated. Review the changes before proceeding.