A clean and minimal HTML CSS template with organized folder structure and linting configuration for web development projects.
- Clean HTML5 structure with semantic markup
- Minimal CSS with custom properties and responsive design
- Organized folder structure for scalable development
- Linting tools with ESLint, Prettier, HTMLHint, and Stylelint
- Node.js configuration with .nvmrc file
HTML-CSS-Template/
├── assets/ # Static assets
│ ├── fonts/ # Custom fonts
│ ├── icons/ # Icons and favicon
│ └── images/ # Images
├── docs/ # Documentation
├── src/ # Source files
│ ├── css/
│ │ └── main.css # Main stylesheet
│ └── js/ # JavaScript files (when needed)
├── index.html # Main HTML file
├── package.json # NPM configuration and scripts
├── .nvmrc # Node.js version
├── .gitignore # Git ignore rules
├── eslint.config.js # ESLint configuration
├── .prettierrc # Prettier configuration
├── .htmlhintrc # HTMLHint configuration
├── .stylelintrc.json # Stylelint configuration
└── README.md # Project documentation
- Clone or download the project
- Ensure Node.js is installed (version specified in .nvmrc)
- Install dependencies:
npm install
npm run lint
- Run all lintersnpm run lint:html
- Lint HTML filesnpm run lint:css
- Lint CSS filesnpm run lint:js
- Lint JavaScript files
npm run format
- Format all filesnpm run format:check
- Check formatting without modifying
npm start
ornpm run dev
- Development information
The src/css/main.css
file includes customizable CSS variables:
:root {
--primary-color: #007bff;
--font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
--spacing-md: 1rem;
/* ... more variables */
}
- ESLint:
eslint.config.js
- JavaScript rules - Prettier:
.prettierrc
- Code formatting - HTMLHint:
.htmlhintrc
- HTML validation - Stylelint:
.stylelintrc.json
- CSS rules
The template includes responsive breakpoints:
- Desktop: > 768px
- Tablet: ≤ 768px
- Mobile: ≤ 480px
- Node.js (version in .nvmrc)
- npm or yarn
Recommended VS Code extensions:
- ESLint
- Prettier
- HTMLHint
- Stylelint
MIT - You can use this template freely for personal and commercial projects.
- Fork the project
- Create a feature branch
- Commit your changes
- Push to the branch
- Open a Pull Request
If you have questions or need help:
- Open an issue in the repository
- Contact the project maintainer
Happy coding! 🎉