Drift.css
It is a light-weight and responsive open source CSS library.
There are 2 ways to get started with Drift CSS library in your projects. You can either install manually, or from CDN.
⚬ Install manually
Include drift.css
located in /dist in your website
or Web app.
⚬ Install from CDN
Use the following CDN link to include driftcss in your project.
Note: Driftcss uses fontawesome library for the icons, kindly import them it into your files before using driftcss.
Alerts
Alerts can be used to provide feedback messages to users. Different types of alerts are available for different types of messages.
This is a default alert
This is a primary alert
This is a success alert
This is a warning alert
This is a error alert
Different alerts background color can be used by changing the
status of alert.
Example:
.alert-warning to .alert-success
Avatars
Avatars are user profile pictures.
⚬ Avatar Image
Use avatar-1, avatar-2, avatar-3 & avatar-4
in
img src
for different avatars below.
⚬ Avatar Background
Use background-color
and color
to
change avatar colors
Badges
Badges can be used for labeling components. Different types of badges are available for different types of labeling.
⚬ Badges Pill
The class .badge-pill
can be used to create round,
pill-like badges.
Buttons
Buttons include simple button styles for actions in different types and sizes.
⚬ Buttons default
⚬ Buttons pill
The class .btn-pill
can be used to create round,
pill-like Buttons.
⚬ Button icons
Icon like buttons.
For top right button use .btn-top-right
by giving
position: relative
to the parent element.
⚬ Floating Action Buttons
A floating action button (FAB) performs the primary, or most common, action on a screen.
Cards
A card is a self-contained, replicable type.
Lorem ipsum dolor sit amet consectetur adipisicing elit. Eum, distinctio. amet consectetur adipisicing elit...
Lorem ipsum dolor sit amet consectetur adipisicing elit. Eum, distinctio. amet consectetur adipisicing elit...
Images
Images can be made responsive using the
.img-responsive
class,
⚬ Image Responsive
⚬ Image Rounded & Thumbnail
Inputs
Simple text form elements
⚬ Input Defaults
⚬ Input Validation
The name is valid.
Password must be at least 8 characters.
Lists
The List is a very versatile and common way to display items.
⚬ List Default
- Lorem, ipsum dolor sit amet consectetur adipisicing elit.
- Lorem, ipsum dolor sit amet consectetur adipisicing elit.
- Lorem, ipsum dolor sit amet consectetur adipisicing elit.
- Lorem, ipsum dolor sit amet consectetur adipisicing elit.
⚬ List Stack
- Lorem, ipsum dolor sit amet consectetur adipisicing elit.
- Lorem, ipsum dolor sit amet consectetur adipisicing elit.
- Lorem, ipsum dolor sit amet consectetur adipisicing elit.
- Lorem, ipsum dolor sit amet consectetur adipisicing elit.
Modals
Modals are flexible dialog prompts.
This is a modal
Lorem ipsum dolor, sit amet consectetur adipisicing elit. Recusandae, tempore?
Ratings
Ratins allow the users to share their opinion about the product, documentation page, photo and more.
Grids
The grid system in Driftcss is a flexbox based.
Toast
Toasts provide brief messages about app processes. The component is also known as a Snackbar.
Typography
Typography contains default styles of headings semantic text list etc.