# File Structure

## **File Structure**

After unzipping the theme, you will find a structure like this:

<FileTree>

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

</FileTree>

In the Tina edition, the main theme folder is `lumio-tina`. In the Sanity edition, it is `lumio-sanity`.

---

### **Main Theme Directory Structure**
This is the Astro edition. The Tina and Sanity editions have the same layout, with the differences listed below.

<FileTree>

- lumio/
  - .cursor/
    - rules/
      - theme-architecture.mdc (AI: Cursor)
  - .github/
    - copilot-instructions.md (AI: GitHub Copilot)
  - .windsurf/
    - rules/
      - theme-architecture.md (AI: Windsurf)
  - AGENTS.md (AI: the main instructions)
  - CLAUDE.md (AI: Claude Code)
  - GEMINI.md (AI: Gemini CLI)
  - SKILLS.md (AI: step-by-step recipes)
  - CHANGELOG.md
  - README.md
  - astro.config.mjs
  - netlify.toml
  - package.json
  - package-lock.json
  - vercel.json
  - vercel.sh
  - wrangler.toml
  - ... (editor, formatter, and test settings)
  - public/
    - .htaccess
    - \_headers
    - images/
      - favicons/
      - og-image.jpg
    - plyr/
    - umami.is.js
    - videos/
  - scripts/
    - dev.mjs
    - generate-favicons.mjs
    - generate-multilingual-content.mjs
    - remove-draft-from-sitemap.mjs
    - remove-multilingual.mjs
    - toml-watcher.mjs
  - src/
    - \_\_tests\_\_/ (Unit tests)
    - assets/
      - images/
    - config/ (Site-wide settings)
      - config.toml
      - fonts.json
      - language.json
      - menu.ar.json
      - menu.en.json
      - menu.fr.json
      - social.json
    - content/ (Content, with a folder per language in each)
      - about/
        - arabic/
        - english/
        - french/
      - author/
      - blog/
      - case-studies/
      - contact/
      - faq/
      - features/
      - homepage/
      - pages/ (Components page, privacy policy, terms)
      - pricing/
      - sections/ (The content of each section)
      - services/
      - team/
      - testimonial/
      - \_file_format.md (Frontmatter docs)
    - i18n/ (Interface labels)
      - ar.json
      - en.json
      - fr.json
    - layouts/
      - Base.astro
      - components/
        - BlogSinglePageLayout.astro
        - Button.astro
        - ButtonContent.astro
        - SinglePageLayout.astro
        - cards/
        - global/
          - Footer.astro
          - FooterTwo.astro
          - Head.astro
          - Logo.astro
          - SectionBadge.astro
          - SectionTitle.astro
          - footer/
            - FooterAi.astro
            - FooterCredit.astro
          - header/
            - Header.astro
            - HeaderTwo.astro
            - HeaderThree.astro
            - Navbar.astro
            - MenuItem.astro
            - NavStage.astro
            - Topbar.astro
            - TopbarTwo.astro
            - ... (other menu components)
        - sections/
        - seo/
        - social/
        - utilities/
        - widgets/
      - helpers/
      - shortcodes/
    - lib/
      - integrations/
      - shortcodes.ts
      - utils/
    - pages/
      - [...lang]/
        - index.astro (Home 1)
        - home-two.astro
        - home-three.astro
        - about.astro
        - contact.astro
        - faq.astro
        - pricing.astro
        - team.astro
        - 404.astro (Other languages' 404 pages)
        - [page].astro (Other pages)
        - llms.txt.ts
        - llms-full.txt.ts
        - blog/
        - case-studies/
        - services/
      - [...path].md.ts (Markdown copies)
      - 404.astro
      - robots.txt.ts
    - plugins/
      - fontTailwindPlugin.js
      - odometer/
      - scroll-menu.ts
      - sticky-sidebar.js
    - styles/
      - animation.css
      - base.css
      - buttons.css
      - components.css
      - global.css
      - navigation.css
      - rtl-theme.css
      - rtl.css
      - safe.css
      - theme.css
      - utilities.css
    - types/
    - content.config.ts
    - sections.schema.ts

</FileTree>

---

#### What Differs By Edition

| Path | Astro | Tina | Sanity |
| ---- | ----- | ---- | ------ |
| `src/content/`, `src/i18n/`, `src/config/menu.<lang>.json` | Yes | Yes | No. These are documents in your Sanity project |
| `scripts/dev.mjs` | Yes | No. `npm run dev` runs `scripts/tina/run.mjs` | Yes |
| `src/lib/shortcodes.ts` | Yes | Yes | No |
| `.env.example` | No | Yes | Yes |
| `tina/`, `scripts/tina/`, `scripts/cms/`, `public/admin/`, `src/layouts/components/tina/`, `src/lib/tina/` | No | Yes | No |
| `sanity/`, `sanity.config.ts`, `sanity.cli.ts`, `scripts/sanity/`, `src/lib/sanity/`, `src/sanity-routes/`, `src/middleware.ts`, `src/env.d.ts` | No | No | Yes |

In the Sanity edition, the demo content is in `sanity/seed/demo-content.json`. In the Tina edition, the blog, services, and case studies listing pages and the privacy policy and terms are `.mdx` files, not `.md`.

#### Key Directories & Their Purpose

##### `/public` ⟶ Static Assets

- Stores favicons, the Open Graph image, videos, and player assets, served as they are.
- Files in this folder are available by URL, such as `/images/og-image.jpg`.

##### `/src/content` ⟶ Editable Theme Content

- Holds almost all user-editable content for pages and reusable sections.
- Each collection has a folder per language: `english/`, `french/`, and `arabic/`.

##### `/src/layouts` ⟶ Components, Sections, and Shortcodes

- Lumio stores its UI components under `src/layouts/components/`.
- The project uses path aliases like `@/components/...`, which map to `src/layouts/components/...`.
- MDX shortcodes live in `src/layouts/shortcodes/`.

##### `/scripts` ⟶ Build Helpers

- `dev.mjs` runs `npm run dev`, except in the Tina edition.
- `toml-watcher.mjs` turns `config.toml` into the settings file the theme reads.
- `generate-multilingual-content.mjs` adds a language, and `remove-multilingual.mjs` removes every language except your default one.
- `generate-favicons.mjs` creates favicon assets from the source logo.
- `remove-draft-from-sitemap.mjs` removes draft pages from the sitemap.

---

#### ⚙️ Key Configuration Files

##### `astro.config.mjs` - Astro Configuration

- Configures Astro integrations, markdown plugins, sitemap generation, image behavior, i18n routing, and Tailwind.
- Fonts are generated from `src/config/fonts.json`.

##### `src/config/config.toml` - Global Theme Settings

- Main control file for theme settings. Most settings have a comment.
- In the Tina edition, it is **Site settings** at `/admin/`. In the Sanity edition, **Site settings** in the Studio wins over the same value in this file, and the language settings, folder names, and favicon stay here.

| Section | What it controls |
| ------- | ---------------- |
| `[site]`, `[site.favicon]` | Title, description, tagline, `baseUrl`, logo, trailing slash, and favicon |
| `[seo]` | `author`, `keywords`, and `robots` |
| `[seo.robotsTxt]` | `robots.txt`, including the `aiSearch` and `aiTraining` crawler switches |
| `[seo.ai]` | `llms.txt`, `llms-full.txt`, and the Markdown copies of your pages |
| `[seo.sitemap]` | The sitemap |
| `[contact]` | Your address, phone, and email |
| `[settings]` | Folder names, `pagination`, `stickyHeader`, `contactFormAction`, `contactFormProvider`, and `footerDescription` |
| `[settings.copyright]` | The footer copyright line |
| `[settings.subscription]` | The Mailchimp newsletter form in the footer |
| `[settings.multilingual]` | `enable`, `defaultLanguage`, `disableLanguages`, and `showDefaultLangInUrl` |
| `[settings.navigationButton]` | The button in the header |
| `[settings.announcementBar]` | The announcement in Header Three's top bar |
| `[settings.markup.tableOfContents]` | The table of contents on text pages, such as the privacy policy |
| `[settings.smoothScroll]` | Smooth scrolling. See [Smooth Scroll](../../features/smooth-scroll/) |
| `[settings.pageActions]` | The Ask AI links. See [AI Links & llms](../../features/ai-links-llms/) |
| `[settings.themeCredit]` | The theme credit in the footer and in `llms.txt` |
| `[opengraph]` | `image`, `ogLocale`, `ogType`, `twitter`, and `twitterCard` |
| `[head]` | Your analytics tags and other code for the page head |

##### `src/content.config.ts` - Content Collections

- Defines collections for pages, services, blog, case studies, team, testimonials, sections, and more.
- Reuses schemas from `src/sections.schema.ts`.

##### Styling & Fonts

- **Theme tokens and design variables** live in `src/styles/theme.css`.
- **Fonts** are configured in `src/config/fonts.json`.

#### Other Important Files

- **`package.json`** → Dependencies and npm scripts.
- **`tsconfig.json`** → Path aliases such as `@/components/*`, `@/shortcodes/*`, and `@/helpers/*`.
- **`vercel.json` / `vercel.sh` / `netlify.toml` / `wrangler.toml`** → Deployment configuration.
- **`AGENTS.md`, `SKILLS.md`, `CLAUDE.md`, `GEMINI.md`, `.github/copilot-instructions.md`, `.cursor/rules/theme-architecture.mdc`, `.windsurf/rules/theme-architecture.md`** → Instructions for coding assistants.

<br />

Now that you understand the structure, the next step is branding the site and configuring the logo.