Skip to content
Styling & exports

Styling & exports

Overriding styles

The theme is a single stylesheet of CSS custom properties. Override the tokens after the theme loads:

:root {
  --accent: #c0392b;
  --content-width: 48rem;
}

Package exports

ImportWhat
astro-blog-themethe integration (default export)
astro-blog-theme/contentblogSchema
astro-blog-theme/layouts/BaseLayout.astropage shell (head, header, footer)
astro-blog-theme/layouts/PostLayout.astrosingle-post layout
astro-blog-theme/components/*.astroHeader, Footer, PostCard, Figure, Gallery, …
astro-blog-theme/postsgetPosts, getAllPosts, getRelated, …
astro-blog-theme/tagsgetTags, tagUrl, tagSlug
astro-blog-theme/seriesgetSeriesList, getSeriesContexts, …
astro-blog-theme/gallerygetGalleryItems, getAllGalleryItems, getGalleryFacets
astro-blog-theme/i18nt, locales, defaultLocale, blogPostHref, …
astro-blog-theme/styles.cssthe stylesheet (already loaded by the layouts)
virtual:astro-blog-theme/configthe resolved options object

Everything is distributed as source (.astro/.ts), the way a Hugo theme is consumed as source — no separate build step between the theme repository and your project.