Jess Gaspar

Web Designer & Developer

πŸ“œ Astro Themes Documentation

Back To Themes

πŸš€ Structure

// Directories

All themes follow a consistent directory structure and organizational philosophy to ensure clarity and ease of use.

The src directory is structured as follows:

  • Assets - All static resources used throughout the theme, such as images and icons
  • Components - Reusable code components available across the theme
  • Content - Content collection data, organized as markdown file directories or JSON/YAML files
  • Layouts - Files that define the structural templates for website pages
  • Pages - Files that generate routes for the website
  • Styles - All stylesheet files required by the theme

// File Tree

Each theme has its own completed file tree structure in the README.md file.

/
β”œβ”€β”€ public/
β”‚   └── favicon.svg
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ assets/ 
β”‚   β”‚   β”œβ”€β”€ section-name/
β”‚   β”‚   β”œβ”€β”€ images/
β”‚   β”‚   └── icons/
β”‚   β”œβ”€β”€ components/
β”‚   β”‚   β”œβ”€β”€ elements/ 
β”‚   β”‚   β”œβ”€β”€ global/ 
β”‚   β”‚   └── sections/ 
β”‚   β”‚       β”œβ”€β”€ section-name/
β”‚   β”‚       β”œβ”€β”€ section-name/
β”‚   β”‚       β”œβ”€β”€ home/
β”‚   β”œβ”€β”€ content/ 
β”‚   β”œβ”€β”€ layouts/ 
β”‚   β”‚   └── Layout.astro
β”‚   β”œβ”€β”€ pages/ 
β”‚   β”‚   β”œβ”€β”€ blog/
β”‚   β”‚   β”‚   β”œβ”€β”€ [...page].astro
β”‚   β”‚   β”‚   └── [slug].astro
β”‚   β”‚   β”œβ”€β”€ index.astro
β”‚   β”‚   β”œβ”€β”€ 404.astro
β”‚   β”‚   β”œβ”€β”€ privacy-policy.astro
β”‚   β”œβ”€β”€ styles/
β”‚   β”‚   β”œβ”€β”€ global.css 
β”‚   β”‚   └── markdown.css 
β”‚   └── content.config.ts
β”œβ”€β”€ .gitignore
β”œβ”€β”€ astro.config.ts
β”œβ”€β”€ LICENSE
β”œβ”€β”€ package-lock.json
β”œβ”€β”€ README.md
└── tsconfig.json

// Assets

This directory contains all static resources used throughout the theme, typically organized into subdirectories such as images and icons. In themes with a large number of images, assets are further subdivided by the page section in which they are used.


// Components

Components are reusable code blocks that can be composed across the website. They are organized into three categories:

  • Global β€” Components rendered on every page as part of the layout structure (e.g., Header, Footer, NavBar)
  • Elements β€” Foundational building blocks used to compose larger components (e.g., Link, Text, Container, Heading)
  • Sections β€” Section blocks that make up a page and can be reused in other pages if needed

// Content

The content directory holds all files containing data for content collections, as well as content for pages with substantial text. Files in this directory are typically written in Markdown, JSON, or YAML format.


// Layouts

This directory contains the Astro template files that define the structural layout of each page. Every theme includes at least one primary layout. Certain themes may include additional layout files to accommodate pages with distinct structural requirements.


// Pages

All website pages are defined in this directory. Each file corresponds to a route within the website. Pages associated with content collections make use of dynamic routing.


// Styles

All themes are styled using Tailwind CSS. This directory contains the following files:

  • global.css β€” Handles necessary imports and customization of the theme’s Tailwind configuration
  • markdown.css β€” Defines styles for the rendered body content of content collection Markdown files

❔ Frequently Asked Questions

01. Who are these astro themes for?

These Astro themes are primarily built for freelance web developers who want to speed up their process when delivering a website to clients without compromising design and code quality.

02. Can each theme be used on multiple projects?

Yes, when purchasing a theme, it can be used for multiple projects. For more info, see the license page.

03. Do you offer technical support?

Yes, I provide support for paying customers, which includes answering questions on how the themes work, fixing bugs, solving issues, and more. Technical support does not include helping with knowledge on HTML, CSS and JavaScript.

04. Do I need to know HTML, CSS, and JavaScript?

Yes, basic knowledge in these languages is required to work with these themes. And of course, you also need basic knowledge working with Astro and Tailwind.

05. What JavaScript frameworks are used?

All themes are built without any JavaScript frameworks! I only use vanilla JavaScript sparingly for interactive components such as navbars, slideshows, etc. Most of the code will be HTML and Tailwind CSS.

06. Are design files included?

No. I focus on production-ready code, not static design files.

βœ‰οΈ Contact

  • Interested in working with me?
  • Do you need a website?
  • Are you having an issue with an Astro theme you bought from me?

I'd be happy to chat with you!

βœ‰οΈ Send an email

jessgaspardev@gmail.com

🌐 Socials

Bluesky Github