A library to apply dynamic styles in the format
property[modifier]
.
reset
.
property[modifier]
),
which might not be intuitive for all users.
To use
classifyCSS
in your project, include theclassify.js
script in your HTML file:
<script src="https://github.com/Gvstave/classifyCSS/classify.js"></script>
To use
classifyCSS
in your project, include the
classify.js
script in your HTML file:
Add classes to your HTML elements in the format property[modifier] to apply dynamic styles. For example:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>classifyCSS Example</title>
<script src="https://github.com/Gvstave/classifyCSS/classify.js"></script>
</head>
<body class="class[reset]">
This body element has reset styles applied.
<div class="background-color[blue] font-size[20px] padding[10px-20px]">
This div has dynamic styles applied.
</div>
</body>
</html>
In this example, the The body element will have its margin, padding, and box-sizing reset. the div will have a blue background color, a font size of 20px, and padding of 10px 20px.
This project is licensed under the MIT License. See the LICENSE file for details.
We welcome contributions from the community! If you would like to contribute to this project, please follow these steps:
Please make sure your code is properly tested and does not break this project. If you're unsure about anything, feel free to open an issue.
Thank you for contributing!