π 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 configurationmarkdown.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!