Standard blue variation, often used for important announcements or next steps.
Component Showcase
Overview of the most used components in the CorrelAid website.
Buttons
Usage Guidelines
| Variant | When to use | Examples |
|---|---|---|
primary | Main page CTAs. One per visible area max. | "Support", "Donate", "Apply now" |
secondary | Card actions and secondary CTAs. | "Read more", "Join event", "View project" |
utility | Functional/tool buttons. Not a CTA. | "Subscribe to calendar", "Newsletter" |
ghost | Subtle inline links, e.g. in footer. | Footer navigation items |
light | On dark or colored backgrounds. | Hero overlays |
aid / lab | Brand-specific links with logo. Astro-only. | "CorrelAid", "CorrelLab" |
icon-only | Icon buttons without text label. | Header calendar/mail icons |
Variants
Sizes
With Icons
Tag Pills
Tag Pills
src/lib/components/cards/BaseCard.svelte Pill-shaped labels used on cards to display primary (type/category) and secondary (technology/topic) metadata. Can be static or clickable to trigger filters.
Cards
Base Card
src/lib/components/cards/BaseCard.svelte Foundation for most specialised cards. Composes visual, bookmark, metadata and action slots.
Standard Project Card with Bookmark
Project Under Way: Open Data Infrastructure
Vertical Base Card
src/lib/components/cards/VerticalBaseCard.svelte Vertical card layout for blog post previews.
Data Ethics Workshop: Recap
Info Boxes
Info Box
src/lib/compositions/InfoBox.astro Highlighted block for metadata, CTAs, or key information. Two colour variants.
Blue Info Box
Green Info Box
Green variation for additional context or highlights.
Further Links
Further Links
src/lib/compositions/FurtherLinks.astro Grid of highlighted link cards with icons and labels. Fixed-width cards that wrap naturally.
Carousel
Carousel
src/lib/compositions/Carousel.astro Auto-scrolling image strip with fade edges. Duplicates slides for seamless looping. Pauses on hover or keyboard focus.
Honeycomb Grid
Honeycomb Grid
src/lib/compositions/HoneycombGrid.svelte Hexagonal grid layout for showcasing items like courses or projects. Supports hover effects and responsive layout.

