Note: This page is styled with classifyCSS.

classifyCSS

A library to apply dynamic styles in the format property[modifier].

Advantages

Limitations

Installation

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:

Usage

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.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contributing

We welcome contributions from the community! If you would like to contribute to this project, please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature or bugfix.
  3. Make your changes and commit them with clear and descriptive messages.
  4. Push your changes to your forked repository.
  5. Open a pull request to the div repository's `div` branch.

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!