# File Structure

## **File Structure**

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

<FileTree>

- themes/
  - looka/ (📌 Main theme folder. Its name can differ by edition)
- changelog.html (🔗 Links to online changelog)
- documentation.html (🔗 Links to online documentation)

</FileTree>

---

### **Main Theme Directory Structure**
This is the Astro edition. The differences in the Tina and Sanity editions are listed below the tree.

<FileTree>

- looka/
  - .cursor/
    - rules/
      - theme-architecture.mdc (AI instructions for Cursor)
  - .github/
    - copilot-instructions.md (AI instructions for GitHub Copilot)
  - .vscode/ (Editor settings)
  - .windsurf/
    - rules/
      - theme-architecture.md (AI instructions for Windsurf)
  - public/ (Files served as they are)
    - images/ (Favicons, sharing image, gallery)
    - plyr/ (Video player files)
    - videos/
    - .htaccess
    - _headers
    - umami.is.js
  - scripts/ (Automation scripts)
  - src/
    - __tests__/ (Unit tests)
    - assets/
      - images/ (Theme images, used in content as /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. Each folder has english/, french/, and arabic/)
      - about/ (About page)
      - author/ (Blog post authors)
      - blog/ (Blog posts)
      - career/ (Job openings)
      - case-studies/ (Portfolio / projects)
      - contact/ (Contact page content)
      - faq/ (FAQ entries)
      - homepage/ (Homepage)
      - pages/ (Static pages: elements, terms, privacy)
      - pricing/ (Pricing page)
      - sections/ (Default content of each section)
      - services/ (Service entries)
      - team/ (Team members)
      - widgets/ (Sidebar call to action)
      - _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.astro, FooterCredit.astro)
          - header/ (Header.astro, Navbar.astro, and the menu parts)
          - Footer.astro
          - Head.astro
          - Logo.astro
        - sections/
        - seo/
        - social/
        - utilities/
        - widgets/
        - BlogListPage.astro
        - CareerSingle.astro
        - CustomButton.astro
        - PortfolioSingle.astro
        - SinglePageLayout.astro
      - helpers/ (Icons.astro)
      - shortcodes/ (Custom MDX components)
      - Base.astro
    - lib/ (Shared utilities)
    - pages/ (Dynamic & static pages)
      - [...lang]/ (Multi-language support)
        - index.astro (Homepage)
        - about.astro
        - contact.astro
        - faq.astro
        - pricing.astro
        - team.astro
        - [page].astro (Privacy, terms, elements)
        - 404.astro
        - blog/
        - career/
        - case-studies/
        - services/
        - llms.txt.ts
        - llms-full.txt.ts
      - [...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)
  - AGENTS.md (AI instructions for all assistants)
  - CHANGELOG.md
  - CLAUDE.md (AI instructions for Claude Code)
  - GEMINI.md (AI instructions for Gemini CLI)
  - README.md
  - SKILLS.md (Step-by-step recipes for assistants)
  - astro.config.mjs
  - netlify.toml
  - package.json
  - package-lock.json
  - vercel.json
  - vercel.sh
  - wrangler.toml

</FileTree>

---

### What Differs By Edition
| Edition | Adds                                                                                                                 | Leaves out or changes                                                                                                                              |
| ------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
| Tina    | `tina/`, `scripts/tina/`, `scripts/cms/`, `src/lib/tina/`, `src/layouts/components/tina/`, `.env.example`            | The blog and case study listing files (`-index`), the privacy policy, and the terms are `.mdx`, not `.md`                                          |
| Sanity  | `sanity/`, `sanity.config.ts`, `sanity.cli.ts`, `scripts/sanity/`, `src/lib/sanity/`, `src/sanity-routes/`, `src/middleware.ts`, `.env.example` | No `src/content/`, `src/i18n/`, or `src/config/menu.*.json`. That content is in your Sanity project, and the demo copy is `sanity/seed/demo-content.json` |

---

#### Key Directories & Their Purpose

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

- Stores favicons, the sharing image, videos, and other files that must be served as they are.
- Files inside this folder are accessible via direct URLs (e.g., `/images/og-image.png`).

##### `/src` ⟶ Main Codebase

- Contains all Astro components, pages, content, images, 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.
- Images in `src/assets/images/` are used in content as `/images/...`, such as `/images/logo.svg`.

##### `/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` from the sitemap.
  - `remove-multilingual.mjs` → Removes every language except your default one.
  - `toml-watcher.mjs` → Reads `config.toml` for the site. `npm run dev` and `npm run build` run it for you.

---

#### ⚙️ 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

The file is `src/config/config.toml`, and each setting has a comment. In the Tina edition, you edit it in **Site settings** at `/admin/`. In the Sanity edition, a value in **Site settings** in the Studio wins over the same value here, and the language settings and folder names stay in this file.

| Section                      | What it controls                                                                                                                  |
| ---------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
| `[site]`                     | `title`, `description`, `tagline`, `taglineSeparator`, `baseUrl`, the logo values, and `trailingSlash`                            |
| `[site.favicon]`             | `path` and `image`, used by `npm run generate-favicons`                                                                           |
| `[seo]`                      | `author`, `keywords`, and `robots`                                                                                                |
| `[seo.robotsTxt]`            | `enable`, `disallow`, `aiSearch`, and `aiTraining`, for `/robots.txt`                                                             |
| `[seo.ai]`                   | `llmsTxt` and `markdownPages`. See [AI Links & llms](../../features/ai-links-llms/)                                               |
| `[seo.sitemap]`              | `enable` and `exclude`                                                                                                            |
| `[settings]`                 | `blogFolder`, `servicesFolder`, `portfolioFolder`, `pagination`, `stickyHeader`, `brandName`, `contactFormAction`, `contactFormProvider`, and `footerDescription` |
| `[settings.themeCredit]`     | `enable`, `text`, and `url` for the theme credit. See [Footer](../../customization/footer/)                                       |
| `[settings.copyright]`       | `enable` and `text`                                                                                                               |
| `[settings.subscription]`    | The footer signup. See [Subscription](../../customization/subscription/)                                                          |
| `[settings.multilingual]`    | `enable`, `defaultLanguage`, `disableLanguages`, and `showDefaultLangInUrl`. See [Internationalization](../../customization/internationalization/) |
| `[settings.contactInfo]`     | `phone`, `email`, and `address`. The phone shows in a mega menu bottom row, and all three are listed in `llms.txt`                |
| `[settings.pageActions]`     | `enable`, `footer`, and `providers`, for the Ask AI links                                                                         |
| `[settings.smoothScroll]`    | The 11 smooth scroll settings. See [Smooth Scroll](../../features/smooth-scroll/)                                                 |
| `[settings.navigationButton]` | The header button. See [Header](../../customization/header/)                                                                     |
| `[settings.markup.tableOfContents]` | `enable`, `expanded`, `startLevel`, `endLevel`, and `ordered`                                                              |
| `[opengraph]`                | `image`, `ogLocale`, `ogType`, `twitter`, and `twitterCard`                                                                       |
| `[head]`                     | `content`: tags for the `head` of every page, such as analytics                                                                   |

Don't change `blogFolder`, `servicesFolder`, or `portfolioFolder` on their own. A new name also needs the folders and routes renamed.

##### Styling & Fonts

- **Colors and typography** 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`).
- **`wrangler.toml` / `netlify.toml` / `vercel.json`, `vercel.sh`** → Configuration for deployments (Looka ships with Cloudflare Pages, Netlify, and Vercel configs).

<br />

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