Core concept of MOD-CSS

MOD is a CSS framework only javascript based, in single file. It was originally designed to prototype quickly, avoid external CSS, and speed up page loading.

Also, unlike other CSS that use variables representing values, we use absolute values.
MOD CSS is designed to precisely define the value you want to give to any CSS property and all this directly in your HTML.

Another special feature of MOD is that it does not use the traditional "class" attribute of HTML to style. We uses our own attributes to define your styles but also to structure your design. Each attribute is designed to accommodate a property type *. This approach is intended because it has proven its effectiveness during debugging, maintenance, teamwork and in general on the readability of the code.


Why use a utility-first tool like MOD-CSS ?

The fundamental difference between this one and other frameworks is that it only takes a JS file of 10KB to make it work. It doesn't depend on any other large external CSS or JavaScript library, just its JS script of 10KB that can generate more than 200 CSS properties (actually any properties you may need).

MOD can therefore be used in conjunction with any other Framework or library.
We supports following :


Core functionalities

MOD supports media query and has 6 breakpoints like most CSS frameworks: xs, sm, md, lg, xl, xxl to enable responsiveness.
We have our customisable very intuitive flexbox grid.
It also supports CSS pseudo-classes (states) like hover, active, link ...

CSS props are abbreviated to go fast, but the values of these will have to be written in absolute as you will in CSS.


FlexGrid

MOD provides a flexible grid system with a container, row and columns like Bootstrap.
Only, we use absolute values with CSS units to set the width. This makes it a fully configurable grid system with n columns instead of 12 or 24 like most frameworks.

HTML

Read more about here.


Breakpoints

Our system of breakpoints respect standards of UI conception. You can use it to enable responsive behaviour.
Some example to get this...

HTML

Read more about here.


States && Pseudo-Elements

You can use all CSS pseudo-classes in MOD CSS. Just call the state you want and set inside this one the properties you want applied.

HTML

Read more about here.


Setting selectors

With last version, you can now set or update any selectors.

HTML

Read more about here.


Custom attributes

We use custom attributes to help developer to structure and read easily their template.

We don't use the class attribute, so you can call multiple styles on the same HTML element, combine MOD with other frameworks, or with any external stylesheet you might have designed yourself. It won't clutter up your design.

HTML

Read more about here.


All CSS properties

Properties are abbreviated and named intuitively. A point separates a parent property from its descendants.
And if you only want to call the parent property, you just need its abbreviation followed by its value in square brackets.

As an example is better than a thousand words ...

HTML

The complete list of supported CSS properties and their abbreviations are available here.