Introduction
FlatifyCSS is the web modern and minimalist flat design library inspired by the Duolingo design system. It respects accessibility and comes with the web's most common components.
Getting started
When you hear about flat design, you might think about the creepy palette and some old-fashioned web trends, but no, flat design is a wide term and in this case for FlatifyCSS, there are some principles that shape it clearly, and you will get them easily.
Components
The most used patterns, highly composable and customizable.
Helpers
Immutable and reusable classes to speed the development process up.
Forms
Custom and native elements to create modern forms.
Download
FlatifyCSS is available for users in many ways, you can install it using package managers, directly from CDN, or even downloading latest project archive.
CDN
Here is jsDelivr, you can add FlatifyCSS just with a single line of code. The @2 in the URL keeps you on the latest 2.x release, so you get fixes but never a breaking change:
<!-- CSS -->
<link
href="https://cdn.jsdelivr.net/npm/flatifycss@2/dist/css/flatify-min.css"
rel="stylesheet"
crossorigin="anonymous"
/>
<!-- JavaScript : Popperjs + FlatifyCSS -->
<script src="https://unpkg.com/@popperjs/core@2" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/flatifycss@2/dist/js/flatify-min.js" crossorigin="anonymous"></script>
Package managers
You can include FlatifyCSS in your project with npm, Yarn, Bun or Composer:
npm
npm install flatifycss
Yarn
yarn add flatifycss
Bun
bun add flatifycss
Composer
composer require amir2mi/flatifycss
Contents
After installing FlatifyCSS with package managers or downloading the archive file there is a folder called /dist, where compiled CSS, JS and their map files are there, inside this folder these files are provided:
CSS
CSS files come with some options, files with -noprefix suffix, do not have PostCSS Autoprefixer, while -min means this file is minified.
flatify.css
flatify-min.css
flatify-noprefix.css
flatify-noprefix-min.css
Since version 2, the same file works for both left to right and right to left pages, read more on the right to left page.
JS
Note that FlatifyCSS needs Popperjs for dropdowns and popovers, but this library is not included inside the JavaScript file of FlatifyCSS, so it is up to you to include it inside your webpage.
flatify.js
flatify-min.js
The JavaScript part is optional, you only need it for interactive components like accordions, dropdowns, modals and tabs. The JavaScript page lists everything it does.
Sass
Want to change colors, fonts or sizes at the source? The /scss folder is shipped too, import scss/flatify.scss in your own Sass file and override the variables you like. The customization page shows how.