Download the PHP package zulfiismailovdemiri/wkcss without Composer
On this page you can find all versions of the php package zulfiismailovdemiri/wkcss. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download zulfiismailovdemiri/wkcss
More information about zulfiismailovdemiri/wkcss
Files in zulfiismailovdemiri/wkcss
Package wkcss
Short Description A lightweight CSS utility framework.
License MIT
Informations about the package wkcss
WK CSS Framework
A lightweight CSS utility framework to generate reset styles, utility classes, and component classes for rapid front-end development.
Features
- Base CSS: Includes comprehensive reset and global styles (
base.css
) for consistent cross-browser styling. - Utility Classes: Provides spacing, colors, typography, and flex/grid utilities (
utilities.css
). - Component Classes: Includes pre-defined reusable components like grids and flex utilities (
components.css
). - CLI Tool: Generate CSS files with a single command for seamless integration into any project.
- Laravel Mix Support: Easy integration into Laravel projects for streamlined development.
Installation
-
Add the Package: Install the package using Composer:
-
Generate CSS Files: Run the command to generate CSS files:
- Output Directory:
The generated CSS files will be located in the
output/
directory:base.css
: Reset stylesutilities.css
: Utility classescomponents.css
: Component classes
Integration in Frontend Using Laravel Mix
Step 1: Install Laravel Mix
If Laravel Mix is not already set up in your project, install it with NPM:
Step 2: Configure webpack.mix.js
Update your webpack.mix.js
file to include the generated CSS files:
Step 3: Compile Assets
-
Run Laravel Mix to compile and concatenate the CSS files:
- For production, add optimizations:
Step 4: Include in Your Application
Add the compiled app.css
file to your HTML or Blade templates:
Example Output
Base CSS (base.css
)
Contains browser reset styles:
Utilities CSS (utilities.css
)
Provides utility classes for common styling needs:
Spacing:
Colors:
Typography:
Component Classes (components.css
)
Includes reusable classes like flex and grid systems:
Flexbox Utilities:
Grid Utilities:
Customization
-
Change Spacing Multipliers: Update the multiplier in
CSSGenerator.php
to control spacing: - Add Custom Colors:
Modify the
ColorHelper
class to define additional colors:
Future Enhancements
- Responsive Utilities:
Add support for responsive breakpoints (e.g.,
sm:m-1
,lg:p-2
). - Custom Configuration: Allow user-defined configurations for spacing, colors, and utilities.
License
Licensed under the MIT License.