The Blank Theme is a starter template for building modern websites using Astro, Tailwind CSS 4.0, and Keystatic CMS. It provides a flexible and scalable foundation for developers to create dynamic and visually appealing web applications.
- Astro Framework: Leverage the power of Astro for building fast and optimized websites.
- Tailwind CSS 4.0: Quickly scaffold styles and design tokens with the latest version of Tailwind CSS.
- Keystatic CMS: A highly customizable, Git-based CMS with pre-configured page builder functionality.
- Hybrid ITCSS Approach: Combines ITCSS principles with Tailwind CSS for organized and maintainable styling.
- Pre-configured Blocks: Includes a variety of reusable blocks for building pages dynamically.
The project follows a well-organized structure:
astro.config.mjs
src/
components/
blocks/
BlockQuote.astro
BlogList.astro
...
navigation/
Footer.astro
Header.astro
content/
pages/
home.yaml
about-us.yaml
posts/
first-post.mdoc
new-post.mdoc
layouts/
Layout.astro
pages/
index.astro
posts/
[slug].astro
styles/
1-settings/
colors.css
theme.css
...
public/
images/
fonts/
The Blank Theme uses Tailwind CSS 4.0 and adopts a hybrid ITCSS approach. Key layers include:
- Settings: Design tokens and global variables.
- Generic: Base styles and resets.
- Utilities: Tailwind utility classes for rapid styling.
This template integrates Keystatic CMS for content management. It supports local development and production configurations with GitHub or cloud-based authentication. For large projects, consider upgrading to the pro tier for additional features.
To add new blocks to the page builder:
- Create a new component in
src/components/blocks/
. - Add the block to
field.blocks
insrc/keystatic-collections/pages.ts
. - Update the
componentMap
insrc/components/TheComponent.astro
to include the new block.
Install dependencies using pnpm:
pnpm install
Start the development server:
pnpm dev
- Admin UI: http://127.0.0.1:4321/keystatic
- Homepage: http://localhost:4321
Build the project for production:
pnpm build
- Astro: Modern static site generator.
- Tailwind CSS 4.0: Utility-first CSS framework.
- Keystatic CMS: Git-based CMS for content management.
This project is licensed under the MIT License.