Skip to content
New: Customize your theme with an AI assistant. Read the guide

File Structure

Files: the whole project · Skill level: Beginner

After unzipping the theme, you will find a structure like this. The folder name depends on your edition: stella for Astro, stella-tina for Tina, and stella-sanity for Sanity.

  • Directorythemes/
    • Directorystella/ (📌 Main theme folder)
      • …
  • changelog.html (🔗 Links to online changelog)
  • documentation.html (🔗 Links to online documentation)

Main Theme Directory Structure

This is the Astro edition. The table under this tree lists the changes in the other two.

  • Directorystella/
    • .cursor/rules/theme-architecture.mdc (Cursor rules)
    • .github/copilot-instructions.md (GitHub Copilot rules)
    • .windsurf/rules/theme-architecture.md (Windsurf rules)
    • Directorypublic/ (Files served as they are)
      • .htaccess
      • _headers
      • Directoryimages/ (Social sharing image and favicons)
        • …
      • Directoryplyr/
        • …
      • Directoryvideos/
        • …
      • umami.is.js
    • Directoryscripts/
      • generate-favicons.mjs
      • generate-multilingual-content.mjs
      • remove-draft-from-sitemap.mjs
      • remove-multilingual.mjs
      • toml-watcher.mjs
    • Directorysrc/
      • Directory__tests__/ (Unit tests)
        • …
      • Directoryassets/
        • Directoryimages/ (Theme images)
          • …
      • Directoryconfig/ (Site-wide settings)
        • config.toml (Global config)
        • fonts.json (Font definitions)
        • language.json (Language settings)
        • menu.en.json (English menu)
        • menu.fr.json (French menu)
        • menu.ar.json (Arabic menu)
        • social.json (Social links)
      • Directorycontent/ (Content management)
        • Directoryhomepage/ (Homepage title and meta)
          • Directoryenglish/
            • …
          • Directoryfrench/
            • …
          • Directoryarabic/
            • …
        • Directorysections/ (The content of each section)
          • Directoryenglish/
            • …
          • Directoryfrench/
            • …
          • Directoryarabic/
            • …
        • Directoryauthor/ (Blog authors)
          • …
        • Directoryblog/ (Blog posts)
          • …
        • Directorycareer/ (Job posts)
          • …
        • Directorychangelog/ (Changelog entries)
          • …
        • Directorycontact/ (Contact page)
          • …
        • Directoryfaq/ (FAQ entries)
          • …
        • Directoryintegration/ (Integration entries)
          • …
        • Directorypages/ (Static pages: components, terms, privacy)
          • …
        • Directorypricing/ (Pricing page)
          • …
        • Directorytestimonial/ (Testimonials)
          • …
        • _file_format.md (Frontmatter docs)
      • Directoryi18n/ (Translations)
        • en.json (English)
        • fr.json (French)
        • ar.json (Arabic)
      • Directorylayouts/ (Page layouts & UI components)
        • Directorycomponents/ (Reusable UI elements)
          • Directorycards/
            • …
          • Directoryglobal/
            • Directoryfooter/ (FooterAi, FooterCredit)
              • …
            • Directoryheader/ (Header, Navbar, NavStage, LanguageSwitcher)
              • …
            • Footer.astro
            • Head.astro
            • Logo.astro
          • Directorysections/
            • …
          • Directoryseo/
            • …
          • Directorysocial/
            • …
          • Directoryutilities/
            • …
          • Directorywidgets/
            • …
          • SinglePageLayout.astro
        • Directoryhelpers/
          • …
        • Directoryshortcodes/ (Custom MDX components)
          • …
        • Base.astro
      • Directorylib/ (Shared utilities)
        • …
      • Directorypages/ (Dynamic & static pages)
        • Directory[…lang]/ (Multi-language support)
          • index.astro (Homepage)
          • company.astro
          • features.astro
          • pricing.astro
          • contact.astro
          • changelog.astro
          • faq.astro
          • testimonial.astro
          • [page].astro (Static pages)
          • 404.astro
          • llms.txt.ts
          • llms-full.txt.ts
          • Directoryblog/
            • …
          • Directorycareer/
            • …
          • Directoryintegration/
            • …
        • […path].md.ts (Markdown copies of pages)
        • 404.astro
        • robots.txt.ts (Robots.txt generator)
      • Directoryplugins/
        • Directoryodometer/ (Number animations)
          • …
      • Directorystyles/
        • animation.css
        • base.css
        • buttons.css
        • components.css
        • global.css
        • navigation.css
        • rtl.css
        • safe.css
        • theme.css
        • utilities.css
      • Directorytypes/ (TypeScript definitions)
        • …
      • content.config.ts (Content settings)
      • env.d.ts (Env variable types)
      • sections.schema.ts (Section field rules)
    • AGENTS.md (Rules for AI assistants)
    • SKILLS.md (Step-by-step recipes for AI assistants)
    • CLAUDE.md (Claude Code)
    • GEMINI.md (Gemini CLI)
    • CHANGELOG.md
    • README.md
    • astro.config.mjs
    • netlify.toml
    • package-lock.json
    • package.json
    • vercel.json
    • vercel.sh
    • wrangler.toml

What Differs By Edition

EditionAddsTakes away
AstroNothingNothing
Tinatina/ (the editor’s forms), scripts/tina/, public/admin/, src/layouts/components/tina/, src/lib/tina/, .env.exampleNothing. The blog and integration listing pages, the privacy policy, and the terms are .mdx, not .md
Sanitysanity/ (the Studio’s schema and demo content), sanity.config.ts, sanity.cli.ts, scripts/sanity/, src/lib/sanity/, src/sanity-routes/, src/middleware.ts, .env.examplesrc/content/, src/i18n/, and the menu.<lang>.json files. That content is in your Sanity project

Key Directories & Their Purpose

/public⟶ Static Assets
  • Stores files served exactly as they are, such as the social sharing image, favicons, and videos.
  • Files inside this folder are accessible via direct URLs (e.g., /images/og-image.jpg).
/src/assets/images⟶ Theme Images
  • Holds the theme’s images, and the theme optimizes them when it builds.
  • A path such as /images/logo.svg in a content file means src/assets/images/logo.svg.
/src⟶ Main Codebase
  • Contains all Astro components, pages, content, and styles.
  • A new entry in src/content/ with only a title won’t break the site, and it builds. Its card or page shows what you filled in, and images and other fields stay empty until you add them, so fill them in before you publish.
  • Customize layouts, pages, and components here.
/scripts⟶ Automation Scripts
  • Optimizes workflows with utilities like:
    • generate-favicons.mjs → Generates favicons for all devices.
    • generate-multilingual-content.mjs → Adds a language.
    • remove-draft-from-sitemap.mjs → Removes pages with draft: true or excludeFromSitemap: true.
    • remove-multilingual.mjs → Removes every language except your default one.
    • toml-watcher.mjs → Turns config.toml into the settings the site reads.

⚙️ Key Configuration Files

astro.config.mjs- Astro Configuration
  • Manages integrations, build settings, and markdown processing.
  • For general site settings, modify config.toml instead.
config.toml- Global Settings
  • Primary configuration file for theme settings.
  • Controls SEO, multilingual options, header navigation button, branding, and content structure.
  • In the Tina edition, this is Site settings at /admin/. In the Sanity edition, most of it is Site settings in the Studio, and a value there wins over this file.
🔍 SEO & OpenGraph
  • title, description, and keywords for metadata.
  • seo.robotsTxt and seo.sitemap settings for search engines.
  • seo.ai for the llms.txt files and the Markdown copies of your pages.
  • opengraph.image for social media previews.
🎨 Theme & Content Settings
  • Content folder keys:
    • blogFolder
    • integrationFolder
    • careerFolder
  • stickyHeader, brandName, and pagination settings.
  • settings.smoothScroll for smooth scrolling, and settings.animation for the other motion.
  • settings.pageActions for the Ask AI links.
  • settings.themeCredit for the theme credit in the footer.
🌎 Multilingual Settings
  • settings.multilingual.enable → Enables/disables multilingual support.
  • settings.multilingual.defaultLanguage → Defines the primary language.
  • settings.multilingual.disableLanguages → Lists languages to disable.
  • settings.multilingual.showDefaultLangInUrl → Shows default language in URL when true.
Styling & Fonts
  • Colors and type scale live in src/styles/theme.css.
  • Fonts are defined in src/config/fonts.json and loaded automatically.

Other Important Files

  • package.json → Manages dependencies & npm scripts (npm run dev).
  • vercel.json / netlify.toml / wrangler.toml → Configuration for deployments.
  • AGENTS.md, SKILLS.md, CLAUDE.md, GEMINI.md, .github/copilot-instructions.md, .cursor/rules/theme-architecture.mdc, .windsurf/rules/theme-architecture.md → Instructions for AI coding assistants. See AI Links & llms.

Now that you understand the project structure, it’s time to customize the site’s identity and logo.

Type something to search...