# File Structure

## **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.

<FileTree>

- themes/
  - stella/ (📌 Main theme folder)
- changelog.html (🔗 Links to online changelog)
- documentation.html (🔗 Links to online documentation)

</FileTree>

---

### **Main Theme Directory Structure**
This is the Astro edition. The table under this tree lists the changes in the other two.

<FileTree>

- stella/
  - .cursor/rules/theme-architecture.mdc (Cursor rules)
  - .github/copilot-instructions.md (GitHub Copilot rules)
  - .windsurf/rules/theme-architecture.md (Windsurf rules)
  - public/ (Files served as they are)
    - .htaccess
    - \_headers
    - images/ (Social sharing image and favicons)
    - plyr/
    - videos/
    - umami.is.js
  - scripts/
    - generate-favicons.mjs
    - generate-multilingual-content.mjs
    - remove-draft-from-sitemap.mjs
    - remove-multilingual.mjs
    - toml-watcher.mjs
  - src/
    - \_\_tests\_\_/ (Unit tests)
    - assets/
      - images/ (Theme images)
    - config/ (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)
    - content/ (Content management)
      - homepage/ (Homepage title and meta)
        - english/
        - french/
        - arabic/
      - sections/ (The content of each section)
        - english/
        - french/
        - arabic/
      - author/ (Blog authors)
      - blog/ (Blog posts)
      - career/ (Job posts)
      - changelog/ (Changelog entries)
      - contact/ (Contact page)
      - faq/ (FAQ entries)
      - integration/ (Integration entries)
      - pages/ (Static pages: components, terms, privacy)
      - pricing/ (Pricing page)
      - testimonial/ (Testimonials)
      - \_file_format.md (Frontmatter docs)
    - i18n/ (Translations)
      - en.json (English)
      - fr.json (French)
      - ar.json (Arabic)
    - layouts/ (Page layouts & UI components)
      - components/ (Reusable UI elements)
        - cards/
        - global/
          - footer/ (FooterAi, FooterCredit)
          - header/ (Header, Navbar, NavStage, LanguageSwitcher)
          - Footer.astro
          - Head.astro
          - Logo.astro
        - sections/
        - seo/
        - social/
        - utilities/
        - widgets/
        - SinglePageLayout.astro
      - helpers/
      - shortcodes/ (Custom MDX components)
      - Base.astro
    - lib/ (Shared utilities)
    - pages/ (Dynamic & static pages)
      - [...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
        - blog/
        - career/
        - integration/
      - [...path].md.ts (Markdown copies of pages)
      - 404.astro
      - robots.txt.ts (Robots.txt generator)
    - plugins/
      - odometer/ (Number animations)
    - styles/
      - animation.css
      - base.css
      - buttons.css
      - components.css
      - global.css
      - navigation.css
      - rtl.css
      - safe.css
      - theme.css
      - utilities.css
    - types/ (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

</FileTree>

---

### What Differs By Edition
| Edition | Adds                                                                                                                | Takes away                                                          |
| ------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------- |
| Astro   | Nothing                                                                                                             | Nothing                                                             |
| Tina    | `tina/` (the editor's forms), `scripts/tina/`, `public/admin/`, `src/layouts/components/tina/`, `src/lib/tina/`, `.env.example` | Nothing. The blog and integration listing pages, the privacy policy, and the terms are `.mdx`, not `.md` |
| Sanity  | `sanity/` (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.example` | `src/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](../../features/ai-links-llms/).

<br />

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