Download molique
Zero dependencies, zero jQuery. Choose a package: ready to deploy (Production) or with Sass sources for your own build (Source).
Ready to drop in. Compiled CSS, JS with the autoloader, flags, and a starter template. Pick the CSS format below, fonts with the header switch.
Everything in Production plus the full
Sass sources (css/scss/) to compile with
your own theme variables. Always full, readable CSS.
Or via npm
Handy when the project has a package.json anyway. Inside:
the CSS bundles (plain and minified), Sass sources, JS with the
autoloader, flags, and a ready-made PurgeCSS safelist. No
starter.html and no fonts - those ship only in the ZIP.
npm install molique
From there you include the same two files as from the ZIP - just
from a path inside node_modules/ (or wherever your
bundler copies them):
<link rel="stylesheet" href="node_modules/molique/css/molique-style.min.css" />
<script defer src="node_modules/molique/js/molique-script.js"></script>
molique-script.js is not an ES module -
load it with a plain <script defer>, do not
import it. It locates its own js/modules/
through document.currentScript, so once bundled it stops
finding them. Second: fonts are not in the npm package
(only in the ZIP, with the fonts option ticked) - without them molique
degrades to system-ui. Add Poppins yourself, e.g. via
@fontsource/poppins.
Package page:
npmjs.com/package/molique. Published separately:
molique-jit - it generates CSS for exactly the classes
your HTML uses, instead of picking modules by hand
(docs, CLI).
Shrink the package
The core is ~278 KB, but almost nobody uses all of it. There are two ways to trim it down - start with the first one, since it carries no risk at all.
1. Choose modules
Risk-free
Not loading the store, blog, or admin panel? Just don't
include those files. Every module is a separate
css/molique-style-*.css.
2. PurgeCSS
Strips unused classes from what's left. Effective (277 KB → 68 KB), but requires a safelist - some classes are added by JS at runtime and PurgeCSS can't see them.
Quick Start
Unzip, copy css/ and js/ into your
project, and include two files. Full example:
starter.html in the package.
<!-- in <head> -->
<link rel="stylesheet" href="css/molique-style.min.css" />
<!-- at the end of <body> (module autoloader) -->
<script defer src="js/molique-script.js"></script>
:root block.
Fonts: if you checked the fonts option when
downloading, just copy the fonts/ folder next to
css/ - the @font-face rules in
molique-style.css already point to them. Without
that option, grab Poppins yourself from
fonts.google.com (weights 100-900, the
latin and latin-ext subsets).