Layx is a powerful and extensible layout framework designed for modern web development. It combines advanced layout capabilities with high customizability, making it ideal for both small and large-scale projects. With its modular architecture, Layx offers the flexibility you need to create responsive, scalable, and maintainable web applications.
Note: Layx is currently in the development stage and available for testing. We welcome your feedback and contributions!
- 📦 Modular CSS Architecture: Organize your styles into reusable modules for better maintainability.
- 🎨 Customizable Components: Tailor components to fit your project's unique design and functionality needs.
- 📱 Responsive Grid System: Build fluid layouts that adapt seamlessly to any screen size.
- ⚡ Utility-First Classes: Speed up your development workflow with a comprehensive set of utility classes.
- 🔧 Built-in JavaScript Components: Enhance your layouts with interactive features using pre-built JS components.
- 🖼️ Image Optimization: Boost performance with the integrated image optimizer.
- 💻 Command-Line Interface (CLI): Efficiently manage your projects with our intuitive CLI.
- 🚀 No Runtime Needed: Enjoy optimal performance without any runtime dependencies.
Layx takes inspiration from Bootstrap but adopts a more modern and modular approach:
- Advanced Layout System: Utilizes CSS Grid instead of hard-coded numbers, offering greater flexibility and customization.
- Highly Customizable: Easily modify layouts using CSS classes and variables.
- Full-Width Designs: Layout and container elements can effortlessly extend to screen edges.
- Modern Web Standards: Built with the latest CSS features for optimal performance and design capabilities.
- Zero Runtime Overhead: Unlike some frameworks, Layx doesn't require any JavaScript runtime, ensuring faster load times and better performance.
Layx introduces intuitive syntax for common layout elements:
<container>
<div class='content'></div>
</container>
<layout>
<div class='x-6'></div>
<div class='x-6'></div>
</layout>
<navbar>
<nav class='link-wrapper'>
<a class='link' href='#'>link</a>
<a class='link' href='#'>link</a>
</nav>
</navbar>
Layx is organized into a well-structured directory hierarchy:
Click to expand project structure
root
│ index.html
│ layx.bat
│
├───assets
│ ├───brand
│ ├───css
│ │ │ base.css
│ │ └───pages
│ ├───font
│ ├───images
│ │ ├───home
│ │ └───svg
│ ├───js
│ │ │ base.js
│ │ └───pages
│ └───media
│ ├───audio
│ └───video
│
├───config
│ │ config.css
│ │ config.html
│ │ config.mjs
│ │ node.exe
│ │ webp.exe
│ └───preference
│ snippets.json
│
├───layx
│ │ layx.css
│ │ layx.js
│ ├───assets
│ │ ├───css
│ │ │ └───pages
│ │ └───js
│ ├───components
│ │ components.css
│ ├───main
│ │ main.css
│ ├───others
│ └───utilities
│ │ utilities.css
│
└───pages
Key directories:
layx/
: The core of the framework, including components, main styles, and utilities.config/
: Holds configuration files, tools and preferences.assets/
: Here you can put your all assets like CSS, JS, images, and media files.assets/[css|js]/base.[css|js]
: Here you can write your base CSS and JS which are common, it will be added afterlayx
CSS or JS in build time. This original CSS or JS file will be moved insidelayx/assets/[css|js]/user_base.[css|js]
.assets/[css|js]/pages/
: For page-specific content. Inside this dir all CSS and JS file will be minified and original one moved tolayx/assets/[css|js]/pages/
.
To install Layx on your Windows system:
- Download the Layx setup file from our download page.
- Extract the contents of the ZIP file.
- Open a terminal or command prompt and navigate to the extracted directory.
- Run the following command or click
layx.bat
:Note: On Linux and macOS, before installation, you need to runlayx install
chmod +x ./layx.sh
to make it executable. Once installed, all commands remain the same.
-
Create a New Project: Open your terminal, navigate to your desired folder, and run:
layx create
-
Start Coding: Dive into your new project directory and begin building!
-
Build Your Project: When you're ready to deploy, run:
layx build
-
Modify Your Project After Build: Need to make changes? Use the
unbuild
command:layx unbuild
For comprehensive guides and API references, visit our official documentation.
We welcome contributions of all kinds! To get started, please read our Contributing Guide.
Layx is open source software licensed as MIT.
⭐ If you find Layx helpful, consider giving it a star on GitHub!