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 withdraft:true
orexclude_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
, andkeywords
for metadata.robots_txt
andsitemap
settings for search engines.opengraph.image
for social media previews.
π¨ Theme Customization
blog_folder
,services_folder
, andportfolio_folder
define content structure.sticky_header
,brand_name
, andpagination
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.