Skip to content
Type something to search...
Folex Theme Documentation

File Structure

After unzipping the theme zip file, you will find the following folder and file structure:

  • Directorythemes/
    • Directorylooka/ (πŸ“Œ Main theme folder)
      • …
  • changelog.html (πŸ”— Links to online changelog)
  • documentation.html (πŸ”— Links to online documentation)

Main Theme Directory Structure

Our theme follows a modular structure for easy customization and scalability.

  • Directoryfolex/
    • Directory.vscode/ (βš™οΈ VSCode Editor settings & extensions)
      • …
    • Directorypublic/ (πŸ“ Static assets: images, videos, fonts)
      • …
    • Directoryscripts/ (πŸ“œ CLI scripts or automation)
      • …
    • Directorysrc/ (πŸ“Œ Core source code)
      • __tests__ (πŸ§ͺ Unit & integration tests)
      • Directoryassets/
        • Directoryimages/ (πŸ–ΌοΈ Theme images)
          • …
        • Directoryfonts/ (πŸ”€ Custom fonts)
          • …
      • Directoryconfig/ (βš™οΈ Theme & site settings)
        • fonts.json (πŸ–ŒοΈ Fonts customization)
        • menu.en.json (πŸ‡¬πŸ‡§ Navigation)
        • menu.fr.json (πŸ‡ͺπŸ‡Έ Navigation)
        • language.json (🌐 Language settings)
        • social.json (πŸ”— Social links)
      • Directorycontent/ (πŸ“š Page content)
        • Directoryhomepage/
          • Directoryenglish/
            • …
          • Directoryspanish/
            • …
        • Directoryabout/
          • Directoryenglish/
            • …
          • Directoryspanish/
            • …
        • Directoryservices/
          • …
        • Directorypages/ (Static: terms, privacy, etc.)
          • …
        • Directorysections/ (πŸ“Œ Sectional content like hero, cta)
          • …
        • Directorywidgets/ (🧩 Widget content: recent posts, contact info)
          • …
        • _file_format.md (πŸ“„ Frontmatter format reference)
      • Directoryi18n/ (🌐 Translations)
        • en.json
        • es.json
      • Directorylayouts/ (🧱 Page templates & layout components)
        • Directorycomponents/
          • Directorybuttons/
            • …
          • Directorycards/
            • …
          • Directorysections/
            • …
          • Directoryseo/
            • …
          • Directoryglobal/
            • …
          • Directorysocial/
            • …
          • Directorywidgets/
            • …
          • Directoryutilities/
            • …
          • SinglePageLayout.astro
          • TeamSingle.astro
          • ServicesSingle.astro
        • Directoryhelpers/ (πŸ› οΈ Utility helpers)
          • …
        • Directoryshortcodes/ (βœ‚οΈ MDX components / custom shortcodes)
          • …
        • Base.astro
      • Directorylib/ (πŸ“¦ Shared logic, hooks)
        • …
      • Directorypages/ (πŸ“„ Astro route pages)
        • Directory[…lang]/
          • Directoryservices/
            • …
          • Directoryblog/
            • index.astro
            • [slug].astro
            • …
          • about.astro
          • [page].astro
          • contact.astro
          • index.astro
        • 404.astro
        • robots.txt.ts
      • Directoryplugins/
        • Directoryscroll-reveal/ (🎞️ Animations or effects)
          • …
        • Directoryodometer/ (πŸ”’ Counters)
          • …
      • Directorystyles/ (🎨 Global & component styles)
        • globals.css
        • animations.css
        • navigation.css
        • utilities.css
        • safe.css
      • Directorytypes/ (πŸ“˜ TypeScript types)
        • …
      • content.config.ts (🧭 Astro Content Collections config)
      • env.d.ts (🌍 Env variable types)
    • .editorconfig (πŸ”§ Code style)
    • .gitignore
    • .markdownlint.json
    • .prettierrc
    • astro.config.mjs
    • netlify.toml
    • vercel.json
    • tsconfig.json
    • package.json
    • vercel.sh

Key Directories & Their Purpose

/public⟢ Static Assets
  • Stores images, icons, fonts, and other static files.
  • Files inside this folder are accessible via direct URLs (/images/logo.svg).
/src⟢ Main Codebase
  • Contains all Astro components, pages, content, and styles.
  • Customize layouts, pages, and components here.
/scripts⟢ Automation Scripts
  • Optimizes workflows with utilities like:
    • generate-favicons.mjs β†’ Generates favicons for all devices.
    • remove-draft-from-sitemap.mjs β†’ Removes pages with draft:true or exclude_from_sitemap:true.
    • remove-multilingual.mjs β†’ Removes all multilingual content & i18n files.

βš™οΈ 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.
πŸ” SEO & OpenGraph
  • title, description, and keywords for metadata.
  • robots_txt and sitemap settings for search engines.
  • opengraph.image for social media previews.
🎨 Theme Customization
  • blog_folder, services_folder, and portfolio_folder define content structure.
  • sticky_header, brand_name, and pagination settings.
🌎 Multilingual Settings
  • enable β†’ Enables/disables multilingual support.
  • default_language β†’ Defines the primary language.
  • disable_languages β†’ Lists languages to - disable.
fonts.json- Styling & Typography
  • Uses Google Fonts with local hosting enabled.

Other Important Files

  • package.json β†’ Manages dependencies & npm scripts (npm run dev).
  • tailwind.config.js β†’ Customize Tailwind CSS.
  • vercel.json / netlify.toml β†’ Configuration for deployments.

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