Package Exports
- mindgradient
- mindgradient/mindgradient.css
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (mindgradient) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
MindGradient CSS
A modern, customizable, and easy-to-use CSS gradient library for creating beautiful, animated gradients.
MindGradient is a lightweight, plug-and-play CSS library that allows you to add stunning, animated gradients to any HTML element with just a single class. It's built with customization in mind, using modern CSS variables to make theming a breeze.
âĻ Features
- ðĻ 16+ Beautiful Presets â A curated collection of modern, elegant gradients.
- âĻ Subtle Animations â An optional animation class to bring your gradients to life.
- ð Fully Customizable â Easily change gradient colors using CSS variables.
- ðŠķ Feather-light â Tiny footprint with zero dependencies.
- â Interactive Generator â Visually create your own gradients and get the code instantly.
ðĶ Installation
CDN
The quickest way is to link the stylesheet directly in your HTML <head>
tag:
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/iqbalmind/mindgradient@latest/mindgradient.css">
NPM
Install the package using your favorite package manager:
npm install mindgradient
Then, import the CSS file into your main stylesheet or JavaScript file:
/* In your main CSS file */
@import 'mindgradient/mindgradient.css';
ð Usage
Add the desired gradient class (e.g., .grd-sunset
) to any element.
(Optional) Add the .grd-animated class to enable subtle animation.
<!-- A simple static gradient -->
<div class="grd-sunset"></div>
<!-- An animated gradient -->
<div class="grd-ocean grd-animated"></div>
ðĻ Customization
Override the default colors of any gradient by redefining its CSS variables in your own stylesheet. Make sure your custom rules are loaded after mindgradient.css.
/* your-styles.css */
.grd-sunset {
--grd-color-1: #0052D4; /* A new starting blue */
--grd-color-2: #9CECFB; /* A new ending cyan */
}
ðĪ Contributing
Contributions are welcome! If you have ideas for new gradients, features, or improvements, please open an issue or submit a pull request on the GitHub repository
Changelog
See CHANGELOG.md for details.
ð License
This project is licensed under the MIT License â see the LICENSE file for details.
Made with âĪ by IqbalMind