Class Reference (Master Cheat Sheet)

A complete, interactive list of every utility class and component available in the molique framework.

Search by class name or by problem - / focuses the field, Esc clears it.

CSS Class Description & Usage Visual Example
1. Base and containers
.container .container-fluid Main containers capping the content width (max-width: 1200px). -
.breakout-mobile Full-bleed on mobile (below 768px): the element breaks out of the .container padding, touching the screen edge. No effect on desktop. Must be a direct child of a centered container (see Layout docs, pitfall #5). -
.stacking-container .section-stacked An effect of sections sticking on top of one another while scrolling (sticky stacking). -
.d-none .d-block .d-flex .d-grid
.d-md-* .d-lg-*
Utilities for managing the display property. -
.d-inline .d-inline-block .d-inline-flex .flex-column The rest of the display family: inline variants and the vertical Flexbox axis. All have -md- and -lg- versions. -
.w-25 .w-50 .w-100 .w-auto .mw-100 .h-100 .vh-100 .min-vh-100
.w-75 .w-md-*
Quick sizing, in percentages or viewport units. .mw-100 = 100% max-width, .min-vh-100 = full-screen min-height. Responsive variants .w-md-*. -
.embed-responsive A responsive 16:9 container for embedded video (YouTube, Vimeo). -
.embed-responsive-16by9 .embed-responsive-4by3 Aspect ratio inside .embed-responsive - a YouTube or Vimeo video keeps its frame at any width. -
.cursor-pointer .cursor-default .cursor-not-allowed Cursor over the element - a hand on a clickable table row, a block on a disabled action. -
.sr-only .skip-link Accessibility (A11y) classes for screen readers. -
.d-md-none Visibility depending on width. Also .d-md-block, .d-md-flex - e.g. a menu shown only from tablet width up. -
.page-header Frames the background image: cover, centered, no repeat. -
.stacking-container-snap A snapping variant: scrolling stops at a full section. Requires its own height and scrolling. -
.icon .icon-sm .icon-lg .icon-xl The size of an SVG icon, set on the <svg> itself. The icon inherits the text colour (currentColor), so do not set it separately - change the colour of the parent. -
.icon-anim An animated Phosphor icon (opt-in module: molique-style-icon-anim.css, the autoloader pulls in the JS). On an <svg> with <use>, on a pasted SVG or on <i class="ph ph-…">. Does nothing by itself, it waits for a trigger. More than a thousand icons have a motion that fits what they show (the car drives, the lid of the bin lifts), the rest pop. data-icon-anim="wiggle|ring|draw|…" picks another animation. Icons: Phosphor Icons by Helena Zhang and Tobias Fried, MIT. -
.icon-anim-hover .icon-anim-tap .icon-anim-view .icon-anim-play Icon animation triggers: hover and keyboard focus / press (plays to the end) / scrolled into view / right away, while the class is on. They work on the .icon-anim itself or on any ancestor, so <button class="btn-primary icon-anim-hover"> moves the icon inside when the whole button is hovered. Hover only on devices with a pointer - for phones add .icon-anim-tap. -
.icon-anim-loop .icon-anim-persist .icon-anim-fast .icon-anim-slow Icon animation modifiers: loop (with data-icon-anim-loop-delay="ms" it pauses between laps) / keep the last frame / twice as fast / twice as slow. They are CSS custom properties (--icon-anim-iterations, --icon-anim-fill, --icon-anim-speed, plus --icon-anim-delay), so they inherit: the class on a toolbar applies to every icon inside. -
.is-tapped .is-in-view .is-offscreen States set by molique-icon-anim.js - you do not write them yourself: .is-tapped on .icon-anim-tap until the animation ends, .is-in-view on .icon-anim-view once it scrolls in, .is-offscreen on a looping icon outside the viewport (pauses it). -
.is-active .is-open .is-visible .is-selected .is-completed
.is-animated .is-copied .is-disabled .is-dragging .is-featured .is-success .js-resetting
The state convention: molique names EVERY state .is-*. Most are applied by the framework's JS (the active item from the URL, the selected slide, the row being dragged), a few you write yourself (.is-featured on a pricing table, .is-active in a .btn-group). It is the same convention the /^is-/ pattern in the PurgeCSS safelist relies on - name your own states this way and they survive CSS purging. -
2. Grid and columns
.grid-auto .grid-auto-sm .grid-auto-lg Smart grids (auto-fit). They adjust the column count to the screen width on their own. -
.grid-cols-1 through -12
.grid-md-cols-1 through -12
.grid-lg-cols-1 through -12
Rigid grids. Force a specific column count on the parent element (globally or from the MD breakpoint on). They combine: grid-cols-2 grid-md-cols-4 gives two columns on a phone and four from MD. -
.col-span-1 through -12
.col-md-span-1 through -12
.col-lg-span-1 through -12
How many columns a child spans in the grid. -
.col-start-1 through -12
.offset-1 through -11
.col-md-start-* .col-lg-start-*
.offset-*
.col-start-auto
Moving things around the grid. .col-start-N sets the starting column, .offset-N leaves N empty columns before the element. The -md- and -lg- variants apply from their breakpoint up, -auto returns to automatic placement. -
.bento-grid .bento-grid-3 .bento-grid-4 An asymmetric grid with automatic dense item packing. -
.bento-col-2 .bento-col-3
.bento-row-2 .bento-row-3
Span modifiers for tiles inside a Bento Grid (apply on desktop). -
.grid Turns on the grid without setting columns. -
3. Flexbox and alignment
.justify-content-* .align-items-* .align-self-* Aligning elements in Flexbox (e.g. center, space-between, flex-start). .align-self-* (start/end/center/stretch) aligns a single child independently of the parent. -
.justify-content-md-* .align-items-md-* .align-self-md-*
.flex-md-*
Flexbox alignment from the MD breakpoint only - the same endings as the base classes (start, end, center, between, stretch). Plus .flex-md-wrap / .flex-md-nowrap. -
.gap-1 through .gap-5
.gap-0 .gap-md-*
The gap between grid or flex items. .gap-0 removes it entirely; the .gap-md-* variants apply from the desktop breakpoint up. -
.order-first .order-last .order-0 through .order-5
.order-md-* .order-lg-*
Visual order in Flexbox and Grid, without touching the DOM. Variants .order-md-* and .order-lg-*. For alternating sections, write the markup in reading order and reorder only from MD up - otherwise you break the order on narrow screens and for screen readers. -
.flex-shrink-0 The element does not shrink when a row runs out of room, e.g. a button next to a long text. -
.flex-row Lays children out in a row. Beats the direction of a component such as .card-body, which .d-flex alone does not change. -
.flex-wrap Lets elements wrap onto the next lines. -
4. Spacing and positioning
.m-0 through .m-5
.p-0 through .p-5
.mt-* .mb-* .ml-* .mr-* .mx-* .my-*
.pt-* .pb-* .pl-* .pr-* .px-* .py-*
.ms-* .me-* .ps-* .pe-*
The 0-5 spacing scale, margins and paddings. Besides the all-sides version (.m-3) there are single-side variants (.mt-, .mb-, .ml-, .mr-) and axis ones (.mx-, .my-) - easy to miss, because until 1.7.32 they were not listed here. The logical s/e aliases expand to PHYSICAL left/right, just like .text-start. Every variant has an -md- counterpart. -
.m-md-* .p-md-* Margins and paddings applied only from the MD breakpoint (desktop) up. -
.ml-auto .mr-auto .mt-auto .mb-auto
.mx-auto .my-auto .m-auto
Automatic margins. .mx-auto centres a block horizontally, .ml-auto/.mr-auto push an element inside a flex row (logical aliases: .ms-auto, .me-auto). -
.overlap-up-50 .overlap-up-100 .overlap-up-150 Pulls an element up by 50/100/150px (negative margin) - e.g. a card overlapping the hero section above it. Only from md (768px) up - on a phone it does nothing. For an offset on mobile too, use .overlap-container. -
.overlap-container A card overlapping the previous section (negative margin). -
.position-relative .position-absolute .position-fixed .position-sticky Positioning utilities. -
.top-0 .bottom-0 .left-0 .right-0 .inset-0 Pinning to the parent's edges. .inset-0 stretches across all four sides (perfect for .overlay overlays). -
.top-50 .left-50 .translate-middle
.translate-middle-x .translate-middle-y
Quick absolute centering. The .translate-middle-x / .translate-middle-y variants center along a single axis. -
.z-0 .z-10 .z-20 .z-30 .z-index-1 through .z-index-3 Stacking order. .z-* is a scale in steps of 10 for page layout; .z-index-* covers small corrections (1-3) inside a component. -
5. Typography
.text-1 through .text-12 A fluid text-size scale (clamp). The base text (paragraph size) is .text-3; below it sit .text-1 (12px) and .text-2 (13px), while .text-4–.text-8 correspond to headings H5–H1. Above that, hero sizes up to 9rem. Text 4
.text-sm / .text-xs / .text-base Microcopy: 11px / 10px - even smaller than .text-1 (captions, legal fine print), plus a return to the base size. Text sm
.fw-light through .fw-black Font weights (from 300 to 900): .fw-light, .fw-normal, .fw-medium, .fw-semibold (600), .fw-bold, .fw-black. Semibold Black
.text-start .text-center .text-end .text-left .text-right
.text-md-*
Text alignment (text-align). The -md- variants (e.g. .text-md-center) apply from the desktop breakpoint up. .text-left/.text-right are aliases of .text-start/.text-end (in the -md- variant too) - prefer the start/end spelling in new markup. Centered
.text-uppercase .text-decoration-none Text transformations and decorations. Uppercase
.text-nowrap Text does not wrap to a new line, e.g. an amount with its currency in a narrow column. -
.text-capitalize .text-lowercase .text-justify .text-decoration-underline .text-decoration-line-through Letter case, justification and text decoration. Alongside the existing .text-uppercase and .text-decoration-none. $299
.list-unstyled .list-icons
.list-icons-check .list-icons-arrow .list-icons-cross
Lists with no bullets. .list-unstyled removes the markers; .list-icons replaces them with an SVG icon (-check / -arrow / -cross variant). Icon color: .list-icons-success / -danger / -dark (primary by default).
  • Done
.list-icons-success Icon color: green. -
.list-icons-danger Icon color: red. -
.list-icons-dark Icon color: contrasting with the background. Without a color class the icon is in the brand color. -
.text-3 The paragraph size. The same as .text-base. -
.fw-normal The default text weight. -
.fw-medium A light emphasis: labels, menu items. -
.fw-semibold Headings on marketing pages. The token existed from the start; the class was missing until 1.7.32. -
.fw-bold Headings, in-text emphasis. -
.text-knockout-dark A black background, transparent letters. For dark photos. -
6. Colors and surfaces
.text-primary .text-secondary
.text-success .text-danger
.text-warning .text-info
.text-dark .text-light
.text-muted .text-white
.text-main
The full text-color palette. Pri Suc Dan
.bg-primary .bg-secondary
.bg-success .bg-danger
.bg-warning .bg-info
.bg-dark .bg-light
.bg-surface .bg-body .bg-transparent
The full background-color palette. Automatically picks a contrasting text color (e.g. white text on a dark background). Pri Suc Dan
.bg-primary-subtle .bg-success-subtle
.bg-danger-subtle .bg-warning-subtle
.bg-info-subtle .bg-dark-subtle
.bg-surface-subtle .bg-body-subtle
.bg-secondary-subtle .bg-light-subtle .bg-white-subtle
Subtle backgrounds (10% opacity). Automatically set a matching text color. Perfect for badges and highlights. Pri Suc Dan
.bg-hover-* .text-hover-* .border-hover-* Changes the background, text, or border color on hover - the full palette (primary, success, danger, warning, info, dark, light, secondary, surface, body). E.g. .bg-hover-success. Hover me
.opacity-0 through .opacity-100 .hover-opacity-100 Opacity: 0, 25, 50, 75, 100. .hover-opacity-100 restores full opacity on hover (dimmed thumbnails, logos). 50%
7. Borders, shadows and shapes
.border .border-0 Adding or removing a border (1px solid). Variants: -top, -bottom, -left, -right.
Border
.border-top .border-bottom .border-start .border-end
.border-top-0 .border-bottom-0 .border-start-0 .border-end-0
.border-left .border-right .border-left-0 .border-right-0
A border on a single edge; the -0 version removes it from that edge. start/end are the logical names, left/right their physical aliases. -
.rounded-0 through .rounded-5
.border-radius-0 through -5
The corner-radius scale, from square to very soft. .border-radius-N is an alias of .rounded-N - one rule, two names.
.rounded-top .rounded-bottom Rounds only the top or only the bottom corners (next to the existing .rounded-top-0 and .rounded-bottom-0, which zero them). -
.rounded-top-0 .rounded-bottom-0 Removing rounding from specific sides. -
.rounded-circle .rounded-pill A perfect circle (50%) or a pill shape.
.shadow-sm .shadow .shadow-lg .shadow-none Drop shadow: small, medium (.shadow), large. .shadow-none removes one, e.g. from a card. Values come from the --shadow-sm/-md/-lg tokens.
.corner-cut-* .corner-concave-* Single cut-off (clip-path) or concave (mask-image) corners, 24px. Variants: tl, tr, bl, br. They work in every browser, but also cut off the element's border and shadow - when those must stay, use .corner-shape-*. -
.corner-shape-squircle .corner-shape-bevel .corner-shape-notch .corner-shape-scoop The shape of the existing rounding (native corner-shape): squircle, bevel, stepped notch, curved scoop. Only works with a border-radius - the radius sets the depth, so use .rounded-2/-3 for subtle corners. Border and shadow follow the shape. Without support (outside Chromium) the ordinary rounding stays; when the cut must exist everywhere, use .corner-cut-*.
8. Buttons and badges
.btn .btn-primary .btn-danger The base button. Forces a 44px height on mobile (A11y).
.btn-xs .btn-sm .btn-lg .btn-xl Button size variants. Plain .btn (no modifier) is the middle variant (.btn-md).
.btn-group Groups buttons into one cohesive block (shared, overlapping borders, no double lines at the seams).
.btn-outline-primary
.btn-outline-*
The outline variant for every colour: transparent background, coloured border and text, filled on hover. .btn-outline-soft softens the outline (30% border, 10% hover background) and is added on top of a colour variant.
.btn-icon .btn-icon-sm .btn-icon-lg Icon-only button: a fixed square via --btn-icon-size, no padding. Add .rounded-circle for a circle.
.btn-action A ghost button (no background or border). Perfect for tables and toolbars.
.btn-action-group .with-dividers Groups action buttons together, adding vertical dividers between them.
.badge .badge-success
.badge-*
A status badge. A colour variant exists for every semantic colour (.badge-primary, -secondary, -success, -danger, -warning, -info, -dark). Success
.btn-glow Adds a neon glow (box-shadow) on hover.
.btn-glass A glass effect (glassmorphism). Perfect on dark backgrounds and video.
.btn-3d A physical button that "presses in" when clicked. Requires the --btn-3d-shadow variable.
.btn-shine A sweeping light flash on hover.
.btn-gradient A flowing, animated background gradient.
.btn-secondary A secondary action: Cancel, Back. -
.btn-success Confirmation, process completion. -
.btn-warning An action that needs attention. -
.btn-info A neutral, informational action. -
.btn-dark Contrast against the background. Inverts in dark mode along with --dark. -
.btn-light A button on a dark background. -
.btn-md The default size, spelled out explicitly. -
.btn-hover-spring Scaling up with a springy overshoot. -
.btn-hover-lift Lifting upward. -
.btn-hover-glow A glow around the button. -
.is-active The pressed position in a group. -
.btn-magnetic A CTA button meant to "attract" the cursor on desktop. -
.btn-stacked .btn-text A button with the icon ABOVE the label instead of beside it. The label goes in .btn-text - a label inside the button, not a separate button variant. -
9. Forms
.input A basic text field or select. Has a focus ring.
.input-sm .input-lg Size variants of .input - work on inputs, selects, and textareas. Plain .input (no modifier) is the middle variant.
.textarea-expandable A textarea collapsed to a single line. Expands on click (or when it has content) up to --textarea-rows-expanded rows, then scrolls internally. Requires the placeholder attribute.
.form-floating A container for floating labels (requires placeholder=" " on the input). -
.input-group .input-group-text Combines inputs, buttons, and text into one smooth rectangle.
.form-switch .form-switch-square .form-switch-outline An iOS-style toggle switch. Requires .form-switch-input and .form-switch-label.
.form-check-input .form-check-label Custom checkboxes and radio buttons built on CSS.
.form-pill A touch-target opt-in: a <label> wrapping a checkbox is not a control, so the 44px rule does not reach it - this class adds it. It applies no styling at all: until 1.7.32 this list promised "clickable pills" plus the classes .form-pill-group, .pill-success and .pill-danger, none of which ever existed in the CSS. Build the pill look from .border, .rounded-pill and .px-3. -
.custom-select .custom-select-trigger A premium multi-select built on the Popover API (top layer - not clipped inside modals). Contains .custom-select-dropdown, .custom-select-option. -
.select-search A single searchable select (combobox) built on the Popover API (top layer - not clipped inside modals). Requires JS for selection handling. The search field is optional - without .select-search-input it works like a regular select. -
.file-upload .file-upload-animated A drag & drop zone for files. The animated variant has a running border. -
[data-mask] [data-mask-unmasked-name] Masks a field as it is typed: phone, postal code, tax id, payment card, card expiry, IBAN, bank account number, plus masks of your own (### ##-##). Also sets inputmode, autocomplete, pattern and maxlength. Not available on type="number" or "email" - those types cannot carry a caret. -
.input-range .input-color Advanced inputs with a custom look. -
.feedback-invalid An error message. Appears automatically via :user-invalid. -
.form-check Wrapper: puts the control and description on one line. -
.file-upload-icon Icon inside the zone. -
.file-upload-name Caption that JS overwrites with the chosen filename. Optional in the markup - without it, the module adds it itself. -
.select-search-trigger The opening button. Requires popovertarget pointing to the menu's id. -
.select-search-menu The panel. Requires the popover attribute and a unique id - without them it won't land in the top layer and will vanish like a plain <div>. -
.select-search-input The search field. Optional. -
.select-search-list The options container. -
.select-search-option A single option. Requires data-value - the module reads the value from it on selection. -
.is-selected The currently selected option. Set by the script. -
.custom-select-pills A row of tags for the selected options, wrapped in .badge. -
.custom-select-dropdown The panel. Requires popover and id - just like the single select. -
.custom-select-search The search field's container. -
.custom-select-list The container for categories and options. -
.custom-select-category A heading that groups options. -
.custom-select-option On a <label>. Contains a plain input[type="checkbox"].form-check-input. -
.icon-chevron The arrow on the button; rotates 180° once open. -
.search-icon The magnifying-glass icon in the search field. -
.form-switch-input The checkbox itself, restyled as a 44×24px slider. The checked color is always --success - see pitfall #3. -
.form-switch-label The caption next to the slider. -
10. Tables and data rows
.table-wrapper .table The base B2B table. Variants: .table-sm, .table-lg, .table-striped, .table-hover, .table-borderless. -
.thead-light .thead-dark .thead-primary Table header colors. Size variants: .thead-sm, .thead-lg. -
.table-cards .table-cards-always Transforms the table into cards on mobile devices (requires data-label). -
.data-row .data-row-actions A wide data row built on CSS Grid (great for CRMs). -
.data-row-compact .row-icon .row-content A compact row (list item) built on Flexbox. Inside .row-content: .row-title + .row-details; actions on the right in .row-actions. Text is TRUNCATED by default with an ellipsis - right for a dense dashboard, misleading on a list with descriptions. -
.data-row-compact-wrap Turns truncation off - the title and details wrap instead of disappearing behind an ellipsis. For lists with longer text, where rows need not share one height. -
.sortable-list .sortable-item .sortable-handle
.sortable-controls .sortable-announcer
Reorder items - by dragging (Pointer Events) OR the data-sortable-up/-down buttons. Requires data-sortable on the container. -
.list-group .list-group-item A simple, vertical list of items with shared borders. Add .is-active to the selected item.
Item A Item B
.sortable-content Any item content - text, a badge, .data-row-compact. -
.table-sm Compact - more rows on screen. -
.table-lg Loose - fewer rows, more breathing room. -
.table-striped Alternating row background. -
.table-hover Highlights the row under the cursor. -
.table-borderless No lines - a calmer look. -
.thead-sm Shorter header. -
.thead-lg Taller header. -
.icon-square Square background behind the icon. -
.row-title First line - the record's name. -
.row-details Second line - metadata, muted. -
.row-actions Buttons on the right. -
11. Content layout
.accordion .accordion-item An accordion built on native <details> with a smooth animation. -
.tabs .tab-input .tab-label
.tabs-header .tab-pane
Tabs built on the CSS radio hack. Labels sit in .tabs-header, each tab's content in .tab-pane. -
.tabs-pill .tabs-pill-indicator A .tabs variant as a segmented control - the indicator slides to the clicked tab (CSS :has(), zero JS). Requires style="--tab-count: N;".
.grid-expand
.grid-expand-inner
A smooth accordion built on CSS Grid (grid-template-rows: 0fr → 1fr) - zero JS. Works inside <details> or with the .is-open class.
Expand
Hidden content.
.grid-expand-unchecked The reverse of .grid-expand: open while a .form-switch standing earlier in the same parent is off. -
.timeline .timeline-item A classic timeline. Variants: .timeline-large, .timeline-numbered. -
.timeline-labeled .timeline-label
.timeline-separator .timeline-node .timeline-line
.node-primary .node-success .node-danger
An advanced timeline with dates on the left (built on Grid). Middle column: .timeline-separator > .timeline-node + .timeline-line; node color .node-primary / .node-success / .node-danger. Content in .timeline-content. -
.stepper .stepper-numbered
.step .step-line
A visualization of process steps (e.g. in a cart). Each step is a .step (add .is-active or .is-completed), connected by a .step-line. -
.carousel .carousel-track .carousel-dots
.carousel-nav .carousel-prev .carousel-next .carousel-dot
A slide carousel. The .carousel-bg-sync variant syncs the section's background with the slide. Requires carousel.js (autoloader). -
.carousel-bg-sync A hero with a full-screen background that changes per slide. -
.carousel-slide scroll-snap-align: start. Width is yours to set, via min-width. -
.carousel-bg-overlay A semi-transparent overlay above the background - keeps text readable. -
.accordion-header A clickable bar with an arrow. Fits several elements side by side (e.g. a badge and text) - they'll stay left-aligned. -
.accordion-body The expandable content. -
.is-open You add and remove the class yourself - e.g. from your own JS. -
.tabs-content The panel container. -
.timeline-content The event's content. -
.timeline-badge The marker on the axis in the basic layout. -
.timeline-large A variant with larger spacing. -
.timeline-numbered Numbers the events automatically. -
.is-completed A finished step - all of them before the current one. -
.component-showcase .component-preview
.component-code .btn-copy
A "preview + code" block: .component-preview shows the live component, .component-code its source, and .btn-copy copies it to the clipboard (handled in the molique-script.js core, with .is-copied during the confirmation). .component-code also works ON ITS OWN, without the .component-showcase wrapper - it then carries its own border. -
12. Charts (data viz)
.r-chart-wrapper .chart-micro The main chart container. .chart-micro forces a small size (e.g. for cards). -
.chart-sparkline .sparkline-bar A bar chart. Height controlled by the --val variable. -
.chart-radial .radial-value A semi-open progress ring. -
.chart-heatmap .heatmap-cell An activity map. Opacity controlled by the --val variable. -
.chart-area .area-fill An area chart built on pure SVG. -
.chart-pie .pie-segment A pie/donut chart. Requires the --val and --offset variables. -
.chart-funnel .funnel-stage A vertical data funnel. Each stage has a .stage-label (name) and .stage-value (number). -
.chart-pipeline .pipeline-stage A horizontal process pipeline (arrows/chevrons). -
.chart-funnel-true .funnel-true-stage A classic, trapezoidal conversion funnel with a vertical stem. -
.chart-nav .chart-nav-item
.nav-label
An elegant segmented control for switching chart views. -
.area-line The curve itself. -
.pie-bg The gray background ring, visible under the segments. -
.stage-label The stage's name. -
.stage-value The number next to the stage. -
13. Cards and tiles
.card .card-header .card-body A basic content container with rounded corners and a border. -
.card-overflow-visible Drops the card's clipping (overflow: hidden) when something is meant to stick out: a "Most popular" ribbon, a badge above the top edge, a dropdown without popover. It restores the corner rounding on a leading/trailing img/picture, so it does not fix the ribbon at the photo's expense. -
.featured-box .featured-box-icon A card highlighting a product feature (often with an icon at the top). -
.thumb-info A card with a background photo and text appearing on hover. -
.stat-tile .stat-tile-icon .stat-tile-body
.stat-tile-label .stat-tile-value .stat-tile-delta
.stat-tile-icon-* .stat-tile-delta-up .stat-tile-delta-down
A KPI tile (icon + a fixed-size number + an optional trend delta). Requires .card on the same element. -
.stat-card .stat-value .stat-trend
.is-positive .is-negative
A KPI stat card. Trend variants: .is-positive, .is-negative. -
.counter .counter-value A counter animated by JS (e.g. "We have 1500 customers"). -
.pricing-table .pricing-header .pricing-features
.pricing-title .pricing-price
A pricing table. Add .is-featured for the highlighted plan. Structure: .pricing-header (with .pricing-title and .pricing-price) + .pricing-features. -
.pricing-list
.pricing-list-title .pricing-list-price .pricing-list-dots
An alternative to .pricing-table - a horizontal price list with a dotted line connecting the name to the price. -
.testimonial A customer quote with an avatar, name, and star rating. -
.card-footer A footer for buttons and metadata; a dimmed background. -
.thumb-info-wrapper The layer with the photo - this is what scales on hover. -
.thumb-info-title The caption on the overlay. -
.thumb-info-bottom A variant: caption at the bottom edge. -
.thumb-info-center A variant: caption centered. -
.thumb-info-light A lighter overlay - for dark photos. -
.testimonial-stars The rating. Driven by the --rating variable (0-5, fractions partially fill a star). -
.testimonial-quote The quote's content. -
.testimonial-author The footer: an avatar plus the person's info. -
.testimonial-avatar The author's photo, cropped to a circle. -
.testimonial-name The full name. -
.testimonial-role The job title or company. -
.stat-tile-unit The unit after the number (e.g. "USD", "%") - smaller and muted. -
.stat-tile-delta-context The delta's caption (e.g. "vs previous period") in --text-muted. -
.stat-title The metric's label. -
.counter-title Caption below the number. -
14. Navigation
.navbar .navbar-transparent
.navbar-pill
The main navigation bar. The transparent variant becomes solid after scrolling (.is-scrolled). -
.navbar-sticky Add to .navbar to pin it to the top and enable the .is-scrolled/hide-on-scroll logic in molique-script.js. In Chrome/Edge 144+ CSS also hides the bar by itself (scroll-state), without JS. -
.navbar-offcanvas-toggle A checkbox hack for opening the mobile side menu with no JS. -
.mega-menu .mega-menu-trigger .mega-menu-content
.mega-menu-featured-title .mega-menu-featured-text .mega-menu-featured-link .mega-menu-featured-icon
A wide dropdown menu built on <details> + CSS Anchor Positioning. Opens on click (desktop and mobile - zero JS), and automatically turns into an accordion on mobile. Column: .mega-menu-group > .mega-menu-col-title (optionally with an icon in .mega-menu-col-icon) + a list of .mega-menu-links. One grid "cell" can be replaced with a highlighted card .mega-menu-featured (with .mega-menu-featured-icon, -title, -text, -link) - e.g. to promote a new feature. -
.dropdown .dropdown-menu A classic dropdown menu built on the native <details> tag. Opens from the left by default - add .dropdown-menu-end to .dropdown-menu so it opens from the trigger's right edge instead (e.g. when it sits close to the right edge of the screen). -
.command-palette
.command-palette-header .command-palette-input
.command-palette-list .command-palette-remote
.command-palette-group .command-palette-group-label
.command-palette-item .command-palette-item-label .command-palette-item-meta
.command-palette-empty .command-palette-footer .command-palette-close
A command palette: a search field with a list of results in a native <dialog>. Keyboard and ARIA work by themselves, the Ctrl/Cmd+K shortcut is optional, and server results come through the command:search event. -
.dropdown-header A label above a group of menu items. Reacts to neither hover nor click, and its indent matches .dropdown-item. -
.language-switch .language-switch-trigger A pill-shaped language switcher - the Dropdown Popover pattern: <button class="language-switch-trigger" popovertarget="ID"> + .dropdown-menu.language-switch-menu with the popover attribute (top layer). List items: .language-switch-item (containing .language-switch-flag with an SVG flag via <img src="img/flags/en.svg">, -name, optionally -check on the active language). Usually combined with .dropdown-menu-end, since it sits at the end of the navbar. -
.topbar A narrow bar above the main navigation (often used for contact details). -
.breadcrumb .breadcrumb-item Breadcrumb navigation showing the user's path. -
.pagination .pagination-modern Page pagination. The modern variant creates separated, rounded tiles. -
.nav-filters .filter-item Filter pills (e.g. for a portfolio/blog). The selected filter gets .is-active.
.navbar-menu-offcanvas A side-sliding menu on mobile. -
.theme-switch A light/dark theme switch. -
.navbar-container Spreads the brand and menu to opposite edges. Combine with .container to cap the width. -
.navbar-brand Logo or name. Usually links to the homepage. -
.navbar-menu The link container. Its presence activates the active-item highlighting module. -
.navbar-item A single link. Has min-height: 44px - the touch-target requirement. -
.is-scrolled Applied by JS after scrolling. You never set it yourself. -
.is-hidden Hides the pinned bar upward when scrolling down. Also applied by JS. -
.navbar-toggle The hamburger. Contains three empty <span>s - those are the icon's lines. -
.navbar-offcanvas-backdrop The dimmed backdrop. Since it's a label, clicking it closes the menu too - also with no JS. -
.mega-menu-group A column inside the panel. -
.mega-menu-col-title The column's heading. -
.mega-menu-col-icon An icon next to the column heading. -
.mega-menu-link A link within a column. -
.mega-menu-featured A highlighted promo block in the panel. Inside: .mega-menu-featured-icon, .mega-menu-featured-title, .mega-menu-featured-text, .mega-menu-featured-link. -
.dropdown-toggle On <summary>. -
.dropdown-item A single item. -
.dropdown-menu-end Aligns the panel to the button's right edge. -
.page-item An item (<li>). Variants: .is-active - the current page, .is-disabled - an unavailable step. -
.page-link The clickable <a> inside an item. -
.topbar-content Spreads its content to the bar's edges. -
.topbar-list A horizontal list of items with no bullets. -
.language-switch-menu The list of languages. Combine with .dropdown-menu and the popover attribute. -
.language-switch-item A single language; also .dropdown-item. -
.language-switch-flag The flag as an <img> from img/flags/. -
.language-switch-name The language's name next to the flag. -
.language-switch-check The mark next to the currently selected language. -
.theme-switch-input The hidden checkbox holding the state. It's the one that needs id="theme-toggle". -
.theme-switch-track The slider's track - the visible bordered pill. -
.theme-switch-thumb The floating element that rides along the track. -
.theme-icon-wrapper The container for both icons inside the track. -
.theme-icon The shared icon style - size and transition. -
.icon-sun The light-theme icon. -
.icon-moon The dark-theme icon. -
.footer-cols .footer-brand .footer-tagline
.footer-heading .footer-link .footer-link-more .footer-bottom
The page footer: .footer-cols lays out the columns, .footer-brand and .footer-tagline form the brand block, .footer-heading is a column title and .footer-bottom the copyright bar. The link accent comes from --footer-accent; the footer is ALWAYS dark, so pick a shade with 4.5:1 contrast on a dark background. -
.footer-author .footer-author-avatar
.footer-author-name .footer-author-role
An author card in the footer - avatar plus name and role. A separate component from the .author-box under a blog post; same roles, different sizes and a different background (the footer is dark). -
.footer-trustbar .footer-trustbar-text .footer-trustbar-dot A trust bar above the footer - short claims separated by a .footer-trustbar-dot (guarantee, lead time, contact). -
.logo-light .logo-dark Two versions of the logo inside .navbar-brand - the framework shows the right one depending on the theme and on whether the navbar is still over a dark hero. You provide both images and switch nothing from JS. -
.lang-suggest-bar .lang-suggest-text .lang-suggest-actions The "would you like to read this page in…" bar - built by js/modules/molique-lang-suggest.js from the browser language and the links in .language-switch-menu. You do not write this markup; it appears once and remembers a dismissal in localStorage. -
15. Page widgets
.scroll-to-top A floating "go to top" button, appears after scrolling (adds .is-visible, handled by molique-script.js). -
.progress-container-fixed .progress-bar-reading A reading progress bar pinned to the top of the screen. Requires the JS script (built into molique-script.js) to update the width while scrolling. -
.before-after-slider
.before-after-img .slider-line .slider-handle
Transformations, projects, retouching - comparing two photos. -
.speed-dial A floating action button (FAB) with a handful of shortcuts. -
.share-bar Sharing an article to social media. -
.img-after The "after" photo - the bottom layer, in normal flow (sets the widget's height). -
.img-before The "before" photo - the top layer, clipped via clip-path according to --position. The class order in the HTML doesn't matter - layering is decided by z-index, not DOM order. -
.slider-control The invisible input[type=range] covering the whole area - the real controller. -
.speed-dial-main The main round 56px button. -
.speed-dial-actions The container for the shortcuts - hidden by default (opacity: 0; visibility: hidden). -
.speed-dial-action A single round 44px shortcut. -
.share-btn A single button. This - not .share-bar - is the selector that triggers the autoloader. -
16. Admin panel
.admin-layout .admin-layout-floating The panel's main grid. The floating variant pulls the content away from the edges. -
.admin-rail .admin-rail-hide-mobile A second column between the sidebar and the content: sub-navigation, filters, a list of records to pick from. Deliberately without a background - it sits on --bg-body, so it reads as page ground rather than a third card. The grid track is added by a :has() rule only once the element exists - an empty track would otherwise generate a second gap in floating mode and shift the layout for everyone. It sticks like the sidebar (the page scrolls, not the column). Width: --admin-rail-width (240px). On mobile it stacks ABOVE the content; .admin-rail-hide-mobile drops it when it merely duplicates navigation available elsewhere. -
.sidebar-md .sidebar-sm Classes controlling the sidebar's width (added to .admin-layout). -
.admin-sidebar .admin-brand The side navigation bar. Turns into a Bottom Nav on mobile. -
.fade-bottom Content fading at the bottom edge (gradient). Works on any scrollable container - color via --fade-color, height via --fade-height. In .admin-sidebar and .admin-main the color is picked automatically. -
.admin-logo-hide .admin-logo-compact Managing the logo's visibility in narrow sidebar modes (.sidebar-sm, .sidebar-md) and on mobile devices. -
.admin-logo-swap .admin-logo-full .admin-logo-mark Swaps the wordmark for the logomark in narrow sidebar modes and on mobile - two separate files inside .admin-brand, CSS picks one. The third strategy next to "hide it" (.admin-logo-hide) and "shrink the same thing" (.admin-logo-compact). -
.admin-nav .admin-nav-link .nav-text The list of links in the sidebar. -
.admin-nav-submenu .admin-nav-submenu-list An expandable link tree (submenu) built on native <details>. The same markup adapts to the mode: a tree (wide sidebar), and in the narrow variants (-sm/-md) and in Bottom Nav on mobile - a full-screen drill-down with a Back bar. Activity (URL highlighting, no auto-open on load, mutual exclusion) is handled by the admin-nav.js module (auto-loaded). -
.admin-nav-dropdown-menu .mobile-more-label
.admin-nav-more-item
The "More" drop-up - a SEPARATE pattern from the submenu, for bar overflow. Checkbox hack: .mobile-more-toggle (input) + .mobile-more-label (trigger) + .admin-nav-dropdown-menu (drawer; desktop display: contents, mobile slides up from the bottom). -
.mobile-more-toggle .mobile-only-nav-item Helper classes for handling the mobile drawer (checkbox hack). -
.dashboard-header .dashboard-header-actions Creates the illusion of a cutout (faux cutout) in the admin panel header. -
.admin-main The content column. overflow-x: hidden - wide tables need their own .table-wrapper. -
.sidebar-toggle-icon Requires exactly three empty <span>s inside - CSS positions them via :nth-child to produce three different shapes (hamburger / asymmetric lines / arrow). -
.admin-nav-divider A horizontal line separating groups of links. Disappears on mobile. -
.admin-nav-bottom On a separate <ul class="admin-nav"> - margin-top: auto pins it to the very bottom of the sidebar (e.g. a "Settings" link or the toggle from section 2). Hidden on mobile. -
.admin-nav-submenu-link A single link inside the submenu. .is-active variant works the same as on top-level links. -
17. Modals and the top layer
.modal-dialog .modal-sm
.modal-close-btn .modal-divider .modal-action-list
A native modal window built on the <dialog> tag. Helper parts: .modal-close-btn (× button), .modal-divider (a line), .modal-action-list > .modal-action-btn (action list). -
.is-fallback The modal safety net. After every opening of a .modal-dialog, molique-modal-guard.js checks whether the window actually painted (at least 40px, non-zero opacity); if not, it adds .is-fallback and the window is redrawn as a plain block - no flex, no percentages, no animation. Set by JS, you do not write it yourself. Removed at the next opening. -
.modal-context A .modal-dialog variant as a narrow side panel (desktop) or a bottom drawer - bottom sheet (mobile). -
.modal-confirm .modal-confirm-icon A modal variant for confirming an action (e.g. a deletion) - with a centered icon and shortened content. -
.popover-context A context menu using the native Popover API and Anchor Positioning. -
.lightbox-overlay .lightbox-content
.lightbox-top-bar .lightbox-counter .lightbox-close
.lightbox-nav .lightbox-prev .lightbox-next
A full-screen photo gallery. All you need is <a href="large.jpg" data-lightbox data-gallery="name"> - the rest happens automatically. -
.onboarding-dialog .onboarding-slide
.onboarding-slide-title .onboarding-slide-desc .onboarding-slide-media
.onboarding-slide-icon .onboarding-slide-image .onboarding-step-count
.onboarding-footer .onboarding-nav .onboarding-dots .onboarding-dot
.onboarding-prev .onboarding-next .onboarding-skip
Full-screen welcome slides (icon/image + title + description). Declaratively via data-onboarding, or MoliqueOnboarding.start(slides). -
.tour-dialog .tour-spotlight .tour-tooltip
.tour-tooltip-title .tour-tooltip-desc .tour-tooltip-footer
.tour-nav .tour-dots .tour-dot .tour-step-count
.tour-prev .tour-next .tour-skip
A sequence of steps over real interface elements: element highlight plus a tooltip. Declaratively via data-tour on an element, or MoliqueTour.start(steps). -
.tooltip-element A simple, pure-CSS tooltip built on the data-tooltip attribute. Longer text wraps at --tooltip-max-width (280px). -
.tooltip-element-bottom
.tooltip-element-end
Opens the bubble downward instead of upward - use when the trigger sits near the top edge of an overflow: hidden container (e.g. a .card-header inside a .card), where the default upward bubble would get clipped. -
.tooltip-element-start The bubble starts at the left edge of the trigger instead of being centred. For the first column of a form or a table, where a centred bubble loses its left half. -
.tooltip-element-wide A bubble for a full sentence instead of a short label (why a field is locked, where a number comes from): aligns the wrapped text left. Every bubble wraps at --tooltip-max-width (280px by default) since 1.7.34. Composes with -bottom and -end. -
.tooltip-popover
.tooltip-popover-bottom
A top-layer tooltip that no overflow of a table, card, accordion or modal can clip. A separate element with popover="hint", role="tooltip" and an id, named by the trigger's aria-describedby. Opened by the auto-loaded molique-tooltip-popover.js (hover, focus, touch). -bottom: below the trigger by default. -
.modal-action-btn A single action in the list. -
.popover-action-btn A menu item. -
.is-flipped The menu flipped above the button when there's no room below. Applied by JS. -
.onboarding-card The slide card. Width via --onboarding-card-width (440px by default), set on :root - the card is built by JS, so there is no markup to put a style="" on. The variable deliberately does not reach the mobile branch, where the card goes full-screen anyway. -
18. Feedback and statuses
.alert .alert-success
.alert-*
A block message inside the page content. Variants: .alert-success, -danger, -warning, -info. -
.toast-container .toast
.toast-*
A toast notification built on the Popover API - the markup is created by JS, you call MoliqueToast.show({message, type}). The type picks a colour variant (.toast-success, -danger, -warning, -info), the container picks a position (.toast-top-right and the eight other combinations). -
.status-dot .status-pending
.status-draft .status-done .status-danger .status-ping
A status dot: .status-draft, -pending, -done, -danger. .status-ping adds the pulse.
.status-icon-toggle .status-checkbox
.status-icon .status-icon-add .status-icon-success
An animated plus → checkmark icon. As a <label class="status-checkbox"> with a hidden checkbox, it works 100% on CSS (zero JS).
.stock-bar .stock-bar-success
.stock-bar-*
A segmented stock level (5 segments, SVG mask, zero JS). Fill via style="--stock-filled: 3" (0-5). Variants: -success, -warning, -danger.
.progress .progress-bar A simple progress bar. Set the width via style="width: 60%" on .progress-bar.
.empty-state .empty-state-icon An empty data state (when there are no results). -
.progress-label A row of label + value above the bar. Optional. -
.toast-progress A bar counting down to dismissal. The toastProgressAnim animation also needs to be on the safelist. -
.is-closing The dismissing state; applied by the script. -
19. Animations and effects
.animate .fade-in-up .fade-in-down
.fade-in-left .fade-in-right .zoom-in
.delay-100 through -500
Entrance animations. In Chrome/Edge 145+ CSS starts them by itself (animation-trigger, also without JS); elsewhere the IntersectionObserver in molique-script.js does (adds .is-visible). Delay: .delay-100 to .delay-500. -
.reveal-blur .reveal-scale Entrance variants: blur or zoom instead of a shift. -
.scroll-reveal An animation driven purely by scroll via native animation-timeline: view() - zero JS and zero Intersection Observer. -
.hover-spring A springy scale-up of the element on hover.
Hover me
.hover-gpu-shadow Lifts the element with a soft shadow on hover (the shadow is animated via a pseudo-element, not box-shadow directly).
Hover me
.hover-scale .hover-shadow Simple hover effects: .hover-scale scales up (scale 1.05), .hover-shadow lifts the element with the --shadow-lg shadow. Lighter variants than .hover-spring / .hover-gpu-shadow.
Hover me
.hover-tilt .tilt-card A 3D tilt on hover. .hover-tilt is a static CSS effect, .tilt-card dynamically tracks the cursor (requires tilt.js).
Hover me
.hover-underline .hover-underline-center An underline sweeping in on hover (from the left or from the center). Hover me
.hover-text-wipe Text color "sweeps in" from the left on hover (background masked through the text). Hover me
.hover-border-draw .hover-border-trace Modern border animations (CSS masking). Follow border-radius perfectly.
Hover me
.hover-border-draw-2 .hover-border-trace-2 Classic border animations (gradients). Produce sharp corners.
Hover me
.text-highlight A text highlighter sweeping in on hover (or permanently with .is-active). Hover me
.text-clip-bg Text cut out of a background (requires the --clip-img variable). -
.text-gradient-animated An animated text gradient. Uses the primary, info, and success colors by default.
Change the colors by adding: style="--gradient-color-1: var(--danger); --gradient-color-2: var(--warning);"
Gradient
.word-rotator .typewriter
.word-rotator-items
Rotating words or a typewriter effect. Requires text-effects.js (autoloader). -
.shake Shakes the element (e.g. on a form error - used automatically together with :user-invalid). Error
.ken-burns A slow, continuous zoom on a background photo when the container is hovered. -
.parallax-container .parallax-bg A background moving slower than the content while scrolling. Requires parallax.js. -
.fade-in Just a fade-in, no movement. -
.is-visible Set by the script once the element scrolls into view. You don't write it yourself. In Chrome/Edge 145+ CSS does the entrance and this class is absent. -
.parallax-content The content above the background. -
20. Backgrounds, overlays and filters
.bg-video-container .bg-video
.bg-image-container .bg-image
A background video or image for a section (with a poster img.bg-video as a fallback). The .bg-image-container > .bg-image variant (also picture.bg-image) for a static background; both have a default dimming overlay. -
.overlay .has-overlay
.overlay-dark .overlay-primary .overlay-light
.overlay-*
An overlay on top of a background. The parent MUST carry .has-overlay, otherwise the overlay looks further up for a context and spills outside the section. .overlay alone dims by 50%; .overlay-dark/-primary/-light change the colour and .overlay-10 to .overlay-90 the opacity. -
.bg-blobs
.bg-blobs-deep
Two blurred, floating color blobs in the background (hero section decoration). -
.bg-cinema An always-dark background in the colours of a film poster: cool blue in the top-left corner, amber in the bottom-right, a subtle grain. The glows breathe slowly. Colours, base, pace and grain via --cinema-1, --cinema-2, --cinema-bg, --cinema-speed, --cinema-grain.
.bg-glass A glassmorphism effect (background blur, noise, semi-transparency).
Glass
.bg-gradient-corners Corner gradients creating a glowing-light effect (dark background). -
.bg-gradient-corners-light Same glow, on a light background - flips with the theme. -
.bg-knockout-wrapper .text-knockout-light Text "cut out" from a light/dark background (CSS blend modes). -
.hero-with-cutout .cutout-wrapper A cut-corner system for hero sections (e.g. .cutout-md-tr). -
.filter-grayscale .filter-blur .filter-none Utility classes applying CSS filters to images. .filter-none removes the filter (e.g. on hover together with .hover-filter-none - a grayscale logo gains color when hovered). -
.hover-filter-none Removes a filter on hover - a gray logo that gains color under the cursor. -
.bg-overlay A black overlay, with no theme tint. -
.cutout-md-bl
.cutout-md-br .cutout-md-tl .cutout-md-tr
Which corner of the photo gets cut: bl - bottom-left. Also: .cutout-md-br, .cutout-md-tl, .cutout-md-tr. The md prefix says outright that the effect starts at tablet width. -
21. Shop and blog
.product-card .product-list-view .star-rating A product card. Add .product-list-view to the parent for a horizontal (list instead of grid) view. -
.cart-item .qty-input .selection-tile .product-swatches A cart row with a quantity controller (.qty-input), clickable variant-selection tiles, and color swatches (.swatch). -
.post-card .blog-post .simple-post-list .author-box Blog module components: the post card (.post-date-badge), the article list view (.blog-post), the sidebar list (.simple-post-list), and the author box. -
.post-image-wrapper On an <a>. position: relative - the anchor for .post-date-badge. The image has a fixed 240px height, regardless of the original's aspect ratio. -
.post-date-badge Absolutely positioned in the top-left corner. Must be inside .post-image-wrapper - see the pitfall below. -
.post-content The rest of the card below the image. flex-grow: 1. -
.post-meta A row of metadata (author, category…) above the title. Not to be confused with .post-meta-date from the sidebar widget - see the pitfall below. -
.post-title The title. Turns --primary on hover. -
.post-date
.day .month
A 55px calendar column. Contains .month and .day - the same names as in .post-date-badge, but with a different look: here the month is a top bar in --primary, the day a white card underneath. See the pitfall below. -
.blog-post-image The image above the title, with no floating date. Free height (height: auto). -
.post-image The thumbnail. Styled EXCLUSIVELY inside .simple-post-list - outside it, it's a plain <img> with no rules at all. -
.post-info The title + date column, only inside .simple-post-list. -
.post-meta-date A small date below the title. Not to be confused with .post-meta from the card and classic post - a different class, a different look. -
.author-avatar A round 80×80px avatar, object-fit: cover. -
.author-info
.author-name .author-role .author-bio
The text column. The parent for .author-name, .author-role, .author-bio - they only work inside it. -
.product-gallery Single product page - main photo + clickable thumbnails. -
.product-image-wrapper On an <a>. The image inside has no default height (height: auto) - without an inline style="height:…" or your own rule, cards in a grid will have images of different heights. -
.product-badges Absolutely positioned in the top-left corner. Plain .badge-*s go inside. -
.product-content The rest of the card below the image. flex-grow: 1. -
.product-title Text color switches to --primary on hover. -
.product-price-block margin-top: auto - pins the price block to the bottom of the card. baseline alignment, so the price and the old price sit on a shared text line despite the different font sizes. -
.price-current Current price - large, --primary. -
.price-old Pre-discount price - struck through, muted. -
.product-gallery-left From the md breakpoint up: thumbnails as a column TO THE LEFT of the photo. Below md - reverts to the default layout (a row underneath). DOM order stays the same, only the visual order changes (order). -
.product-gallery-right Same as -left, but the thumbnail column stays on the right (DOM order = visual order). -
.product-gallery-main A square container for the main photo (aspect-ratio: 1/1), the image fills it via object-fit: cover. -
.product-gallery-thumbs The thumbnail bar. -
.gallery-thumb A single thumbnail (<button>, 64×64px). Requires an <img data-large="…"> inside. -
.swatch A 24px circle. Color via inline style="background-color:…" - there's no set of ready-made color classes (a product's palette is arbitrary, not limited to the theme's palette). -
.cart-item-img An 80×80px thumbnail, object-fit: cover. -
.cart-item-info flex-grow: 1 - takes up the remaining space, pushing prices and controls to the right. -
.cart-item-controls The group: quantity controller + price + remove. -
.qty-btn A +/- button. JS treats the first .qty-btn as minus, the last one as plus - DOM order matters here, see the pitfall below. -
.qty-val The number field between the buttons. It must be type="number" with a min attribute (and optionally max) - that's where JS reads the limits from. The browser's native spinner is hidden. -
.tile-content The tile's visible content. Must be a direct sibling of the input - the CSS rule targets it via :checked + .tile-content. -
.selection-tile-animated On a <label>, alongside .selection-tile. Disables the immediate border change, handing the selection effect off to the .hover-border-trace (or -2) class added to .tile-content. -