Spectra v0.1

Components / shell

Priority 1

Shell & navigation

Back to docs

Spectra shell pieces stay intentionally small: brand, nav, header, hero, and footer. Compose them into a frame instead of treating them like one giant layout component.

Shell API

ClassUsed forNotes
.sp-brandBrand lockupInline-flex row for logo, text, and optional badge.
.sp-brand__logoBrand markSizes the logo with token-driven dimensions.
.sp-brand__textBrand nameUses the type scale and semibold weight.
.sp-navPrimary navigation rowWraps nav links with consistent gaps.
.sp-nav__linkNav itemRounded link with hover, active, and focus-visible behavior.
.sp-headerTop shell barSurface background with bottom border.
.sp-header__innerHeader layoutFlex row that spaces brand, nav, and optional actions.
.sp-header__actionsHeader actions slotInline action row on the right side.
.sp-heroPage hero sectionLarge top spacing using the hero token rhythm.
.sp-hero__innerHero width wrapperCenters hero content inside container max width.
.sp-hero__titleHero headlineDisplay-sized title using the typography tokens.
.sp-hero__subHero supporting copyReadable line length inside the hero.
.sp-hero__actionsHero action rowWrap-friendly action row for primary controls.
.sp-hero--surfaceSurface hero variantAdds a surface background and bottom border.
.sp-footerFooter regionOuter footer wrapper with top margin rhythm.
.sp-footer__brandFooter brand rowAligns mark + text in the footer block.
.sp-footer__titleFooter titleSemibold footer heading.
.sp-footer__descFooter supporting copyMuted text with readable max width.
.sp-footer__ctaFooter action groupFlexible row for CTA links or buttons.
.sp-footer__linksFooter link listGrid list for grouped footer links.
.sp-footer__linkFooter text linkMuted by default, brightens on hover.
.sp-footer__legalLinksLegal/meta linksInline row for bottom legal links.

Preview

Header

Hero

Build the frame, then fill it.

Brand, navigation, hero, and footer should feel related because they all pull from the same token system.