For the most part, it is very simple to use, however, to be able to make some form elements and others look exactly how we want, we ended up using some JS plugins, which means it takes a little bit more effort to integrate them into your project.
Since Flat UI is built on top of Bootstrap as a theme, you can use it in your Bootstrap 3 project. We did not modify any line of Bootstrap, so you will be safe using Flat UI in your ongoing project (unless you hacked it yourself :)
We provide you with the CSS and the Less sources.
1. Using CSS is as easy as dropping
css/flat-ui.css into your project folder and
including it in your template/html page:
<link href="css/flat-ui.css" rel="stylesheet">
2. Use Less if you want to modify/extend Flat UI in your project. It is built just like Bootstrap so you won't find a big difference.
The easiest way to start is to use our start-up template where all the files are already included and ready to use. (The JS plugins are included, but not initialized. You will have to initialize them as needed.)
Once purchased, unzip the compressed archive to see the following structure:
flat-ui/ ├── bootstrap/ ├── css/ ├── demo.css ├── docs.css └── flat-ui.css ├── fonts/ ├── images/ ├── js/ └── less/ ├── demo.less ├── docs.less ├── variables.less ├── flat-ui.less ├── fonts.less ├── icon-font.less ├── mixins.less ├── scaffolding.less ├── spaces.less └── modules/
Let's go through this list:
bootstrap/ — as you can guess this is the folder where all the original
Bootstrap files are located (untouched). Before using our theme, please make sure you didn't modify
anything in Bootstrap that can cause compatibility issues: paddings, margins, etc.
Note: you can safely modify
css/ — the compiled Flat UI CSS. If you like everything and you don't want to change the look of our components, it is better to use the CSS version. This is the easiest way to start using Flat UI.
fonts/ — yes, this is an icon font. When integrating this into your project, make sure you
copy all the font files correctly. You might want to change/add some glyphs. If so, open
IcoMoon and import
there to make all glyhps editable. You can also
watch this video screencast
on how to add your custom glyphs.
images/ — unfortunately we have to use them in few cases, where we cannot just use glyphs.
js/ — we have tried hard to make all our components look true Flat. In order to do
that we have used some JS plugins. Most of them are well known, while some of them are not. The most JS-ified components are the form components: checkboxes, radios, switches, selects, since it is not currently possible
to style them identically in all browsers. Look at
application.js for integration
less/ — is where all our stylesheets are located (not preprocessed).
variables.lessis where all the variables are.
flat-ui.lesslinks everything into one single bundle.
icon-font.lessmakes all the icon glyphs work. Converted with IcoMoon.
docs.lesswhere all our stylesheets for documentation.
icon-font.lessmakes all icon glyphs work. Converted by IcoMoon.
fonts.lessis where all custom fonts are.
mixins.lesshelps automate things. Feel free to add your own here.
scaffolding.lessis where you can find some basic styles for the body, the anchors and other elements.
modules/is where all the components are. If you want to add your own, create module-name.less files here. Name them as a class name if possible.
checkbox-and-radio.lessCustom checkboxes and radios.
iconbar.lessIcon bar (another navigation type).
tagsinput.lessTags input field.
spinner.lessText input with increment/decrement.
input-icons.lessIcons for text-based form fields.