Beautiful, styled components ready to use in your markdown files!
-
Enable Marko tags in
markopress.config.js:markdown: { markoTags: { enabled: true, tagsDir: 'tags/' } }
-
Use components in markdown:
<alert-box type="warning">Important message!</alert-box>
6 types with gradient backgrounds, icons, and hover effects:
<alert-box type="note">Default info alert</alert-box>
<alert-box type="tip">Pro tip!</alert-box>
<alert-box type="warning">Warning message</alert-box>
<alert-box type="danger">Critical error</alert-box>
<alert-box type="info">Additional info</alert-box>
<alert-box type="caution">Be careful!</alert-box>Features:
- ✨ Gradient backgrounds
- 🎨 Auto icons (💡
⚠️ 🚫ℹ️⚡) - 🖱️ Hover lift effect
- 🌙 Dark mode support
Primary & Secondary with smooth animations:
<button-primary href="/docs">Docs</button-primary>
<button-primary href="#" arrow>Get Started →</button-primary>
<button-secondary href="#" icon="📚">Learn More</button-secondary>
<button-primary href="#" disabled>Disabled</button-primary>Features:
- 🎨 Gradient backgrounds
- ➡️ Animated arrow on hover
- 🚫 Disabled state
- 🌙 Dark mode support
Nested structure with full markdown support:
<card>
<card-header><h3>Card Title</h3></card-header>
<card-body>
**Bold**, *italic*, lists, code...
</card-body>
<card-footer>Footer info</card-footer>
</card>Features:
- 📦 Header, body, footer sections
- 📝 Full markdown inside
- 🎭 Hover lift effect
- 🌙 Dark mode support
18+ SVG icons with customization:
<icon name="check" size="24" color="success" />
<icon name="warning" size="20" color="warning" />
<icon name="settings" size="24" spin />Available icons:
user,settings,check,check-circlehome,menu,close,searcharrow,arrow-leftstar,heartinfo,warningdownload,upload,external-link
Features:
- 📏 Customizable size
- 🎨 Color themes (primary, success, warning, danger, light)
- 🔄 Spin animation option
- 🌙 Dark mode support
- CSS Variables - Easy theming
- Responsive Design - Mobile-friendly
- Dark Mode - Automatic support
- Smooth Animations - Professional feel
- Hover Effects - Interactive feedback
| Component | Gradient | Hover | Icon | Dark Mode |
|---|---|---|---|---|
| Alert Box | ✅ | ✅ | ✅ | ✅ |
| Button Primary | ✅ | ✅ | - | ✅ |
| Button Secondary | ✅ | ✅ | - | ✅ |
| Card | - | ✅ | - | ✅ |
| Icon | - | - | N/A | ✅ |
<card>
<card-header><h3>🚀 Get Started Today</h3></card-header>
<card-body>
<alert-box type="tip">
Start with our quick start guide!
</alert-box>
</card-body>
<card-footer>
<button-primary href="/docs" arrow>Read Docs →</button-primary>
</card-footer>
</card><card>
<card-header><h3><icon name="check" size="20" color="success" /> Features</h3></card-header>
<card-body>
- Fast performance
- Beautiful themes
- Easy to use
</card-body>
</card><alert-box type="success">
<icon name="check-circle" size="20" /> Success! Your changes were saved.
</alert-box>
<alert-box type="danger">
<icon name="warning" size="20" /> Error! Please try again.
</alert-box>Visit these URLs to see components in action:
/component-showcase- Complete component showcase/marko-tags-basic- Basic component usage/marko-tags-attributes- Components with attributes/marko-tags-nested- Nested components
-
Use appropriate alert types
note- General informationtip- Helpful suggestionswarning- Important warningsdanger- Critical errorsinfo- Additional contextcaution- Warnings with lower severity
-
Button hierarchy
- Primary - Main CTA
- Secondary - Alternative actions
-
Card organization
- Keep related content together
- Use headers for clear structure
- Add footers for metadata
-
Icon usage
- Match icon to context
- Use consistent sizes
- Leverage colors for meaning
Edit public/components.css to customize:
- Colors (CSS variables)
- Spacing
- Border radius
- Shadows
- Transitions
- Responsive breakpoints
- Component source:
tags/*.marko - Styles:
public/components.css - Demo:
my-content/pages/component-showcase.md
Made with ❤️ using MarkoPress