Skip to main content

Public reference

Design & section components

Reusable marketing sections extracted from the home page. Each component accepts content props (text, images, videos, links) so you can assemble new pages without duplicating markup. This page includes the design system doc (design-system/alpha-trait/DESIGN.md) and live previews.

Alpha Trait - Design Document

Source of truth for the marketing site UI. Page-specific overrides live in design-system/alpha-trait/pages/. Global baseline rules are in MASTER.md.

Stack: Astro 6 · Tailwind CSS 4 · Plus Jakarta Sans · zinc palette · blue accent


Hierarchy

  1. pages/[page].md - overrides for a specific page (e.g. marketing.md for home/marketing)
  2. MASTER.md - generated baseline (colors, spacing, anti-patterns)
  3. This file (DESIGN.md) - implementation tokens and patterns used in code (src/styles/global.css, section components)

When building UI, prefer tokens and classes documented here over raw values in MASTER.md where they differ (the site uses zinc + #3b82f6, not the older navy palette).


Typography


Color tokens

Defined in src/styles/global.css:

Token Light Dark
--background #ffffff #09090b
--foreground #18181b #fafafa
--muted #71717a #a1a1aa
--card #ffffff #18181b
--accent #3b82f6 #3b82f6
--accent-foreground #ffffff #ffffff
--border #e4e4e7 #27272a
--surface-alt #f4f4f5 #18181b
--ring #3b82f6 #3b82f6

Usage

Dark mode follows prefers-color-scheme: dark on :root.


Core classes

Class Purpose
.btn-primary Blue fill, white text, rounded-md, hover #2563eb
.btn-secondary Blue outline, fills on hover
.surface-card Card surface + border; hover accent tint
.accent-tint 12% accent wash (badges, chips)
.hero-grid Subtle accent grid behind hero, radial mask
.gradient-text Foreground → accent headline gradient

Layout & shape


Hero


Section components

Reusable blocks under src/components/sections/. Content lives in src/data/ (e.g. home.ts, per-page files).

Section Role
Hero Badge, headline, CTAs, media, trust strip
Detail Feature/service card grid
Stack Hub-and-spoke stack board + integrations marquee
Testimonials Four-column scrolling quotes
Industries Dual-row industry pill marquees
CTA Closing call-to-action with path cards
Footer Newsletter, link columns, contact, social

Compose in any Astro page:

---
import Hero from "../components/sections/Hero.astro";
import { hero } from "../data/home";
---
<Hero {...hero} />

Live previews: /design · full demo: /components


Navigation


Motion


Marketing page override

From pages/marketing.md:


Anti-patterns


Checklist

Compose sections in Astro

Define content in src/data/home.ts (or per-page data files), then import section components into any page under src/pages/.

---
import BaseLayout from "../layouts/BaseLayout.astro";
import Hero from "../components/sections/Hero.astro";
import Footer from "../components/sections/Footer.astro";
import { hero, footer } from "../data/home";
---

<BaseLayout>
  <Hero {...hero} />
  <Footer {...footer} slot="after-main" />
</BaseLayout>