Getting started
To use TINT CSS Framework download the css file from github and refer to it in the head element of your html file.
How to use it
Just add utility classes to your html element.
Like in this example
( Here we add "position: absolute; width: 90%; padding: 15px; background-color: indigo; color: red; background-color: black; padding: 10px; color: white;" )
Code: Result:Title
Text text text...
Positioning
| TINT Class | CSS Property and value |
|---|---|
| relative | position: relative |
| absolute | position: absolute |
| fixed | position: fixed |
| sticky | position: sticky |
Example use of position classes
( Here we add "position: absolute;")
Code: Result:Absolute element
| TINT Class | CSS Property and value | Range |
|---|---|---|
| top-0 | top: 0% | from 0% to 50% ( top-0, top-2, top-3, ... , top-50 ) |
| right-0 | right: 0% | from 0% to 50% ( right-0, right-2, right-3, ... , right-50 ) |
| bottom-0 | bottom: 0% | from 0% to 50% ( bottom-0, bottom-2, bottom-3, ... , bottom-50 ) |
| left-0 | left: 0% | from 0% to 50% ( left-0, left-2, left-3, ... , left-50 ) |
| absolute-center |
|
Example use of Top - Right - Bottom - Left classes
( Here we add "position: absolute; top: 20%; left: 30%;")
Code: Result:Absolute element
| TINT Class | CSS Property and value | Range |
|---|---|---|
| z-0 | z-index: 0 | From -1 to 99 ( z--1, z-0, z-1, ... , z-99 ) |
Example use of z-index classes
( Here we add "z-index: 3, z-index: 2, z-index: 1")
Code: Result:3
2
1
Display
| TINT Class | CSS Property and value |
|---|---|
| none | display: none |
| inline | display: inline |
| block | display: block |
| inline-block | display: inline-block |
| flex | display: flex |
| grid | display: grid |
Example use of display classes
( Here we add "display: inline-block")
Code: Result:1
2
Width & Height
| TINT Class | CSS Property and value | Range |
|---|---|---|
| w-1 | width: 1% | from 1% to 100% ( w-1, w-2, w-3, ... , w-100 ) |
| h-1 | height: 1% | from 1% to 100%( h-1, h-2, h-3, ... , h-100 ) |
| vw-1 | width: 1vw | from 1vw to 100vw( vw-1, vw-2, vw-3, ... , vw-100 ) |
| vh-1 | min-height: 1vh | from 1vh to 100vh( vh-1, vh-2, vh-3, ... , vh-100 ) |
| full |
|
from 1vh to 100vh( vh-1, vh-2, vh-3, ... , vh-100 ) |
Example use of width & height classes
( Here we add "width: 90%; min-height: 10vh;")
Code: Result:Title
Text...
Margin & Padding
Margin
| TINT Class | CSS Property and value | Range |
|---|---|---|
| m-1 | margin: 1px | from 1px to 100px ( m-1, m-2, m-3, ... , m-100 ) |
| m-1-top | margin: 1px 0 0 0 | from 1px to 100px ( m-1-top, m-2-top, m-3-top, ... , m-100-top ) |
| m-1-right | margin: 0 1px 0 0 | from 1px to 100px ( m-1-right, m-2-right, m-3-right, ... , m-100-right ) |
| m-1-bottom | margin: 0 0 1px 0 | from 1px to 100px ( m-1-bottom, m-2-bottom, m-3-bottom, ... , m-100-bottom ) |
| m-1-left | margin: 0 0 0 1px | from 1px to 100px ( m-1-left, m-2-left, m-3-left, ... , m-100-left ) |
| m-1-x | margin: 0 1px | from 1px to 100px ( m-1-x, m-2-x, m-3-x, ... , m-100-x ) |
| m-1-y | margin: 1px 0 | from 1px to 100px ( m-1-y, m-2-y, m-3-y, ... , m-100-y ) |
| m-auto | margin: 0 auto |
Padding
| TINT Class | CSS Property and value | Range |
|---|---|---|
| p-1 | padding: 1px | from 1px to 100px ( p-1, p-2, p-3, ... , p-100 ) |
| p-1-top | padding: 1px 0 0 0 | from 1px to 100px ( p-1-top, p-2-top, p-3-top, ... , p-100-top ) |
| p-1-right | padding: 0 1px 0 0 | from 1px to 100px ( p-1-right, p-2-right, p-3-right, ... , p-100-right ) |
| p-1-bottom | padding: 0 0 1px 0 | from 1px to 100px ( p-1-bottom, p-2-bottom, p-3-bottom, ... , p-100-bottom ) |
| p-1-left | padding: 0 0 0 1px | from 1px to 100px ( p-1-left, p-2-left, p-3-left, ... , p-100-left ) |
| p-1-x | padding: 0 1px | from 1px to 100px ( p-1-x, p-2-x, p-3-x, ... , p-100-x ) |
| p-1-y | padding: 1px 0 | from 1px to 100px ( p-1-y, p-2-y, p-3-y, ... , p-100-y ) |
Example use of width & height classes
( Here we add "margin: 0 auto; padding: 15px;")
Code: Result:Title
Text...
Typography
Font size
| TINT Class | CSS Property and value | Range |
|---|---|---|
| fsize-1 | font-size: 1%; | from 1% to 1000% ( fsize-1, fsize-2, fsize-3, ... , fsize-1000 ) |
| sm-fsize-1 |
|
from 1% to 1000% ( sm-fsize-1, sm-fsize-2, ... , sm-fsize-1000 ) |
Color
| TINT Class | CSS Property and value | Range |
|---|---|---|
| c-cc | color: currentColor; | |
| c-black | color: #000000; |
|
Text aling
| TINT Class | CSS Property and value |
|---|---|
| text-center | text-align: center; |
| sm-text-center |
|
| text-left | text-align: left; |
| sm-text-left |
|
| text-right | text-align: right; |
| sm-text-right |
|
List
| TINT Class | CSS Property and value | Range |
|---|---|---|
| list-none | list-style: none; |
|
Anchor
| TINT Class | CSS Property and value |
|---|---|
| no-deco |
|
| TINT Class | CSS Property and value |
| a-no-deco |
|
Example use of Typography classes
( Here we add "list-style: none; font-size: 120%; font-size: 80%; color: #ff00ff; color: #ff0000; text-center")
Code: Result:- List item1
- List item2
Visual
Background
| TINT Class | CSS Property and value | Range |
|---|---|---|
| bg-black | background-color: #000000; |
|
Border
| TINT Class | CSS Property and value | Range |
|---|---|---|
| b-1 | border: 1px solid currentColor; | from 1px to 20px ( b-1, b-2, b-3, ... , b-20 ) |
| b-1-top |
|
from 1px to 20px ( b-1-top, b-2-top, ... , b-20-top ) |
| b-1-right |
|
from 1px to 20px ( b-1-right, b-2-right, ... , b-20-right ) |
| b-1-bottom |
|
from 1px to 20px ( b-1-bottom, b-2-bottom, ... , b-20-bottom ) |
| b-1-left |
|
from 1px to 20px ( b-1-left, b-2-left, ... , b-20-left ) |
| b-1-x |
|
from 1px to 20px ( b-1-x, b-2-x, b-3-x, ... , b-20-x ) |
| b-1-y |
|
from 1px to 20px ( b-1-y, b-2-y,b-3-y, ... , b-20-y ) |
| b-black | bordfer-color: #000000; |
|
Radius
| TINT Class | CSS Property and value | Range |
|---|---|---|
| r-5 | border: 5px solid currentColor; | from 5px to 50px ( r-5, r-10, r-15, ... , r-50 ) |
| r-5-top | border-radius: 5px 5px 0 0; | from 5px to 50px ( r-5, r-10, r-15, ... , r-50 ) |
| r-1-bottom | border-radius: 0 0 5px 5px; | from 5px to 50px ( r-5, r-10, r-15, ... , r-50 ) |
| r-1-x | border-radius: 5px 0 5px 0; | from 5px to 50px ( r-5-x, r-10-x, r-15-x, ... , r-50-x ) |
| r-1-y | border-radius: 0 5px 0 5px; | from 5px to 50px ( r-5-y, r-10-y, r-15-y, ... , r-50-y ) |
| r50 | border-radius: 50%; | |
| r100 | border-radius: 100%; |
Shadow
| TINT Class | CSS Property and value |
|---|---|
| shadow | box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2); |
| shadow-2 | box-shadow:
|
| shadow-3 | box-shadow:
|
| shadow-4 | box-shadow:
|
| shadow-5 | box-shadow:
|
| shadow-6 | box-shadow:
|
| shadow-sharp | box-shadow:
|
| shadow-diffuse | box-shadow:
|
| shadow-dreamy | box-shadow:
|
| shadow-shorter | box-shadow:
|
| shadow-longer | box-shadow:
|
Animation
| TINT Class | CSS Property and value |
|---|---|
| animation-spin | animation: spin 0.7s linear infinite; |
| animation-shake | animation: shake 0.7s linear infinite; |
Example use of Visual classes
( Here we add "background-color: #4b0082; border: 5px solid #ff00ff; border-radius: 15px; box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2); animation: shake 0.7s linear infinite;")
Code: Result:Title
Text text text....
Flex
Flex direction
| TINT Class | CSS Property and value | Range |
|---|---|---|
| f-col | flex-direction: column; | |
| md-f-col | @media screen and (min-width: 768px) {
|
|
| f-row | flex-direction: row; | |
| md-f-row |
|
Justify
| TINT Class | CSS Property and value | Range |
|---|---|---|
| j-start | justify-content: flex-start; | |
| j-center | justify-content: center; | |
| j-end | justify-content: flex-end; | |
| j-between | justify-content: space-between; | |
| j-around | justify-content: space-around; | |
| j-evenly | justify-content: space-evenly; | |
| md-j-start |
|
|
| md-j-center |
|
|
| md-j-end |
|
|
| md-j-between |
|
|
| md-j-around | justify-content: space-around; | |
| md-j-evenly |
|
Align
| TINT Class | CSS Property and value | Range |
|---|---|---|
| a-start | align-items: flex-start; | |
| a-center | align-items: center; | |
| a-end | align-items: flex-end; | |
| a-bl | align-items: baseline; | |
| md-a-start |
|
|
| md-a-center |
|
|
| md-a-end |
|
|
| md-a-bl |
|
Center
| TINT Class | CSS Property and value | Range |
|---|---|---|
| center |
|
Gap
| TINT Class | CSS Property and value | Range |
|---|---|---|
| gap-5 | gap: 5px; | from 5px to 50px ( gap-5, gap-10, gap-15, ... , gap-50 ) |
| sm-gap-5 |
|
from 5px to 50px ( sm-gap-5, sm-gap-10, ... , sm-gap-50 ) |
| md-gap-5 |
|
from 5px to 50px ( md-gap-5, md-gap-10, ... , md-gap-50 ) |
Example use of Flex classes
( Here we add "display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;")
Code: Result:Title
Text text text....
Grid system
Flex direction
| TINT Class | CSS Property and value | Range |
|---|---|---|
| container |
|
|
| container-fluid |
|
|
| row |
|
|
| col-1 |
|
from 1 to 12 ( col-1, col-2, col-3, ... , col-12 ) |
| col-sm-1 |
|
from 1 to 12 ( col-sm-1, col-sm-2, col-sm-3, ... , col-sm-12 ) |
| col-md-1 |
|
from 1 to 12 ( col-md-1, col-md-2, col-md-3, ... , col-md-12 ) |
| col-lg-1 |
|
from 1 to 12 ( col-lg-1, col-lg-2, col-lg-3, ... , col-lg-12 ) |
| col-xl-1 |
|
from 1 to 12 ( col-xl-1, col-xl-2, col-xl-3, ... , col-xl-12 ) |
Example use of grid system classes
( Responsive grid example)
Code: Result:Title1
Text text text....
Title2
Text text text....
Title3
Text text text....
Title4
Text text text....