Directory Structure
How the files and folders inside a TailTemplates template are organized.
HTML templates
When you download an HTML template and extract it, you'll get a folder that looks like this:
Template Folder
|-- src
| |-- css
| | |-- All CSS files (including the Tailwind CSS entry file)
| |-- js
| | |-- All JavaScript files
| |-- images
| | |-- All images
| |-- partials
| | |-- Common sections like the header and footer
| |-- index.html and all other HTML pages
|
|-- package.json
|-- tailwind.config.js and other config filesEverything you need to customize lives in the src folder:
- Pages: the
.htmlfiles insrc. - Shared sections: the header, footer and other repeated parts in
src/partials. - Images: replace the files in
src/imageswith your own, keeping the same names, or update the paths in the HTML. - Styles: Tailwind utility classes go directly in the HTML. Custom CSS goes in
src/css.
Running npm run build compiles everything in src into the build folder, which is what you upload to your server.
Next.js templates
Next.js templates follow the standard Next.js project layout. The folder names may vary slightly between templates, but you'll typically find:
Template Folder
|-- src/app or pages Routes and pages
|-- src/components Reusable UI sections and components
|-- public Static files such as images and icons
|-- package.json
|-- tailwind.config.js Tailwind CSS theme (colors, fonts, spacing)
|-- next.config.js Next.js configurationSee the README included with the template for any template-specific details.