Github  Docs

Prebuilt flavors

mini.css comes with a few prebuild flavors out of the box, so you can get started without having to finetune every little aspect of your CSS framework:


Complementary tools

Building a custom flavor can be complex, even with the amount of streamlining we have provided. We have hand-picked the following tools to assist you in creating the perfect flavor for your needs:


Build your own flavor

Core module

The Core module contains styling rules for common textual elements, headings, quotations and code, as well as rules for universal styling and color palettes. This module is always enabled, as many other modules and components depend on it.

Textual content

Base font size for all text elements, in pixels

Base line height for all text elements (unitless)

Font weight for headings (400 is normal, 700 is bold)

Ratio for headings

Line height for headings

Font weight for headings (400 is normal, 700 is bold)

Font size for subheadings, relative to context

Top margin for subheadings, relative to root

Font size for small text, relative to context

Line height for headings

Font size for code elements, relative to context

Top position for superscript, relative to context

Bottom position for subscript, relative to context

Font size for the quotation of blockquotes, relative to root

Font size for the citation of blockquotes, relative to root

Color palette

Foreground color for most textual elements

Background color for document body

Border color for most elements

Secondary foreground color for certain textual elements

Secondary background color for certain elements

Secondary border color for certain elements

Sidebar color for blockquote elements

Sidebar color for preformatted text elements

Text color for hyperlink elements

Text color for visited hyperlink elements

Universal styles

Universal padding for most elements, relative to root

Universal margin for most elements, relative to root

Universal border radius for most elements, relative to root

Universal box shadow for most elements

Breakpoint between mobile screen and desktops, in pixels

Breakpoint between desktops and large screens, in pixels

Layout module

The Layout module contains rules and functionality for the grid and card systems. This module is not always enabled, but it's highly recommended that you enable it, as many other components depend on its functionality to work properly.

Grid

Number of horizontal column partitions for the grid system (default 12)

Cards

Width of normal cards, in pixels

Width of small cards, in pixels

Width of large cards, in pixels

Height of card media sections, in pixels

Foreground color for cards

Background color for cards

Border color for cards

Foreground color for warning cards

Background color for warning cards

Border color for warning cards

Foreground color for error cards

Background color for error cards

Border color for error cards

Foreground color for card dark sections

Background color for card dark sections

Input control module

The Input control module contains styling rules for forms, input elements and buttons. This module is not always enabled, but it's highly recommended that you enable it, as some other components depend on its functionality to work properly.

Forms & input

Foreground color for forms

Background color for forms

Border color for forms

Foreground color for input elements

Background color for input elements

Border color for input elements

Border color for focused input elements

Border color for invalid input elements

Buttons

Foreground color for buttons

Background color for buttons

Border color for buttons

Background color for buttons on hover

Border color for buttons on hover

Foreground color for primary button variant

Background color for primary button variant

Background color for primary button variant on hover

Foreground color for secondary button variant

Background color for secondary button variant

Background color for secondary button variant on hover

Foreground color for tertiary button variant

Background color for tertiary button variant

Background color for tertiary button variant on hover

Foreground color for inverse button variant

Background color for inverse button variant

Background color for inverse button variant on hover

Border color for buttons

Navigation module

The Navigation module contains styling rules for headers, footers, navigation bars and menu drawers. This module is not always enabled, but it's recommended that you enable it, as it contains functionality that is useful for most designs and layouts.

Table module

The Table module contains styling rules for tables. This module is not always enabled and it's recommended to enable it only if you're planning to use tables for displaying data.

Tables

Table max height, in pixels

Font size of table captions, relative to root

Attribute name for tables' mobile card labels

Font weight for tables' mobile card labels (400 is normal, 700 is bold)

Border color for tables

Separator border color for tables

Foreground color for table headings

Background color for table headings

Foreground color for table data

Background color for table data

Alternative background color for table data

Background color for table data on hover

Contextual module

The Contextual module contains styling rules for text highlighting, toasts, tooltips, modal dialogs, spoilers and accordions. This module is not always enabled, but it's recommended that you enable it, as it contains functionality that is useful for most designs and layouts.

Text highlighting

Foreground color for highlighted text elements

Background color for highlighted text elements

Font size for highlighted text elements, relative to context

Line height for highlighted text elements

Background color for highlighted text element secondary variant

Background color for highlighted text element tertiary variant

Border radius for highlighted text element tag variant, relative to context

Toasts

Foreground color for toasts

Background color for toasts

Tooltips

Foreground color for tooltips

Background color for tooltips

Modal dialogs

Overal color for modal dialogs

Close color for modal dialogs

Background color for modal dialogs' close (on hover)

Modal dialog close size, relative to root

Spoilers & accordions

Label height for spoilers & accordions, relative to root

Maximum height for content in spoilers & accordions, in pixels

Background color for content in spoilers & accordions

Border color for spoilers & accordions

Foreground color for labels in spoilers & accordions

Background color for labels in spoilers & accordions

Background color for labels in spoilers & accordions (on hover)

Background color for selected labels in spoilers & accordions

Border color for selected labels in spoilers & accordions

Progress module

The Progress module contains styling rules for progress bars and donut spinners. This module is not always enabled, but it's recommended that you enable it, as it contains functionality that is useful for most designs and layouts.

Progress bars

Height of progress bars, relative to root

Foreground color for progress bars

Background color for progress bars

Foreground color for progress bar primary variant

Foreground color for progress bar secondary variant

Foreground color for progress bar tertiary variant

Maximum value for progress bars

Width for inline progress bars, in percentage

Donut spinners

Size of donut spinners, relative to root

Thickness of donut spinners, relative to root

Foreground color for donut spinners

Background color for donut spinners

Foreground color for donut spinner primary variant

Foreground color for donut spinner secondary variant

Foreground color for donut spinner tertiary variant

Icons module

The Icons module contains styling rules for icons. This module is not always enabled and it's recommended to enable it only if you're planning to use the icon set provided.

Utility module

The Utility module contains styling rules for utility classes. This module is not always enabled, but it's recommended to enable it as it contains some features that can be useful in most designs.

Utilities

Border color for the generic border utility class

Box shadow color for the generic box shadow utility class

Get your flavor

Click the button below to get your customized flavor! You will have to be a little patient, as flavor generation can take up to a few minutes. You will be prompted to download a zip file as soon as it's done!