๐Ÿ  Home


Information

Welcome to the Flora CSS documentation, you will find everything there is useful for getting started and learning the framework.

But what is Flora CSS?
It's another framework like CSS framework like Tailwind or Tachyons but with some new features : Flora CSS shares a lot of similarity with other frameworks like Tailwind, if you already master it : you will not be disoriented.

Why did you create this framework if others already exist ?
When I discovered Tailwind I found the framework extremely useful however, being a fan of the snake_case, I couldn't adapt to the kebab-case. So I decided to create my own framework with custom classes and components.

โš ๏ธ We don't want to steal the content of Tailwind, which is why Flora CSS does not have any original class belonging to Tailwind. For example, we don't have any class like ring or divide.

Contact

๐Ÿ”ฎ Discord : Join Us !
๐Ÿฅ Twitter : Follow Us !
๐Ÿ˜ธ Github : Leave a Star !

๐Ÿšฉ Getting Started


Installation

Download the flora.min.css file and include it in your HTML file :
<link rel="stylesheet" type="text/css" href="flora.min.css">

Modules

Flora CSS is an extremely modular framework, you can select only the modules you are going to use :
<head>
<link rel="stylesheet" type="text/css" href="flora.color.css">
<link rel="stylesheet" type="text/css" href="flora.opacity.css">
<link rel="stylesheet" type="text/css" href="flora.background.css">
</head>

It is strongly recommended to include the flora.color.css module in your projects.

Optimizing

The first way to optimize your work is to select only the modules that you need.
We also recommend that you use PurgeCSS to remove classes that you are not using.

๐ŸŒŒ Background


Background Attachment

This property defines where the position of the background image is fixed.

Class name Properties
bg_fixed background-attachment: fixed;
bg_local background-attachment: local;
bg_scroll background-attachment: scroll;

Fixed

Use bg_fixed to fix the background image relative to the viewport.

<div class="bg_fixed" style="background-image: url(...);"></div>

Local

Use bg_local so that the background moves with the content of the associated element. So if the element is scrolling, the background will scroll with.

<div class="bg_local" style="background-image: url(...);"></div>

Scroll

Use bg_scroll so that the background does not scroll with the content of the element.

<div class="bg_scroll" style="background-image: url(...);"></div>

Background Clip

This property defines how the background of an element extends below the border box, fill box, or content box.

Class name Properties
bg_clip_border background-clip: border-box;
bg_clip_content background-clip: content-box;
bg_clip_padding background-clip: padding-box;
bg_clip_text background-clip: text;

Border Box

Use bg_clip_border to have the background extend to the outer edge of the border.

<div class="bg_clip_border border_dashed border_purple_70 border_10 bg_blue_30">๐Ÿ‘‹ Hi !</div>
.bg_clip_border

Content Box

The background is limited to the content box.

<div class="bg_clip_content border_dashed border_purple_70 border_10 bg_blue_30">๐Ÿ‘‹ Hi !</div>
.bg_clip_content

Padding Box

No background is drawn in the border box. The background extends to the edge of the fill box.

<div class="bg_clip_padding border_dashed border_purple_70 border_10 bg_blue_30">๐Ÿ‘‹ Hi !</div>
.bg_clip_padding

Text

The background is limited to the foreground text.

<div class="text_7xl font_bold">
<span class="bg_clip_text gradient_t_r from_turquoise_50 to_green_20">Hello World !</span>
</div>
Hello World !

Background Color

This property allows you to define the color used for the background of an element.

To know the list of all the colors, go to the category : ๐ŸŽจ Color Pallet

Class name Properties
bg_{color} background-color: {color};

Control the background color of an element using bg_{color}

<div class="bg_red_30">...</div>

Some Example :

.bg_red_30
.bg_blue_30
.bg_green_30

Background Position

This property is used to define the position of the background.

Class name Properties
bg_bottom background-position: bottom;
bg_center background-position: center;
bg_left background-position: left;
bg_left_bottom background-position: left bottom;
bg_right background-position: right;
bg_right_bottom background-position: right bottom;
bg_right_top background-position: right top;
bg_top background-position: top;

Background Repeat

This property defines how images used in the background are repeated.

Class name Properties
bg_repeat background-repeat: repeat;
bg_no_repeat background-repeat: no-repeat;
bg_repeat_x background-repeat: repeat-x;
bg_repeat_y background-repeat: repeat-y;
bg_repeat_round background-repeat: round;
bg_repeat_space background-repeat: space;

Repeat

The image is repeated as many times as necessary to cover the area dedicated to the background. The last image will be cropped if necessary.

<div class="bg_repeat" style="background-image: url(...)"></div>

No Repeat

There is no repeat of the image.

<div class="bg_no_repeat" style="background-image: url(...)"></div>

Repeat X

The image is repeated only on the X axis.

<div class="bg_repeat_x" style="background-image: url(...)"></div>

Repeat Y

The image is repeated only on the Y axis.

<div class="bg_repeat_y" style="background-image: url(...)"></div>

Round

The image is repeated as much as possible and is stretched as necessary so that there is no cropping or space remaining. As soon as there is room to add an image, the others are compressed to make room for it.

<div class="bg_repeat_round" style="background-image: url(...)"></div>

Space

The image is repeated as much as possible without cropping. The first and last image are next to the edges of the clip, and spaces are evenly distributed between the images.

<div class="bg_repeat_space" style="background-image: url(...)"></div>

Background Size

This property defines the size of the background images.

Class name Properties
bg_auto background-size: auto;
bg_contain background-size: contain;
bg_cover background-size: cover;

Auto

Resize the background image so that its proportions are maintained.

<div class="bg_auto" style="background-image: url(...)"></div>

Contain

Resize the image so that it is as large as possible and the image maintains its proportions.

<div class="bg_contain" style="background-image: url(...)"></div>

Cover

The image is resized to be as large as possible and to maintain its proportions.

<div class="bg_cover" style="background-image: url(...)"></div>

๐Ÿงฉ Border


Border Color

This property allows you to define the color used for the border of an element.

To know the list of all the colors, go to the category : ๐ŸŽจ Color Pallet

Class name Properties
bg_{color} border-color: {color};
bg_{position}_{color} border-{position}-color: {color};

All Border

Control the border color of an element using border_{color}

<div class="border_red_30">...</div>

Some Example :

.border_red_30
.border_blue_30
.border_green_30

Specific Border

You can also change the color of a particular border in this way : border_{position}_{color}

<div class="border_top_red_30 border_left_blue_30 border_right_green_30 border_bottom_purple_30">...</div>
.border_top_red_30
.border_left_blue_30
.border_right_green_30
.border_bottom_purple_30

Border Radius

This property allows you to define rounded corners for the border of an element.

Class name Properties
radius_2xs border-radius: 0.1rem;
radius_xs border-radius: 0.15rem;
radius_s border-radius: 0.25rem;
radius_m border-radius: 0.35rem;
radius_l border-radius: 0.5rem;
radius_xl border-radius: 0.75rem;
radius_2xl border-radius: 1rem;
radius_3xl border-radius: 1.25rem;
radius_4xl border-radius: 1.5rem;
radius_1 border-radius: 1px;
radius_2 border-radius: 2px;
radius_3 border-radius: 3px;
radius_4 border-radius: 4px;
radius_5 border-radius: 5px;
radius_6 border-radius: 6px;
radius_7 border-radius: 7px;
radius_8 border-radius: 8px;
radius_9 border-radius: 9px;
radius_10 border-radius: 10px;
radius_full border-radius: 9999px;
radius_none border-radius: none;

Usage

<div class="radius_10">...</div>

Some example of element using different sizes of radius.

.radius_3
.radius_m
.radius_10
.radius_full

Border Style

This property allows you to define the style of the lines used for the borders.

Class name Properties
border_solid border-style: solid;
border_dashed border-style: dashed;
border_dotted border-style: dotted;
border_double border-style: double;
border_none border-style: none;

Usage

<div class="border_solid">...</div>
<div class="border_dashed">...</div>
<div class="border_dotted">...</div>
<div class="border_double">...</div>

Some example of element using different styles of border.

.border_solid
.border_dashed
.border_dotted
.border_double

Border Width

This property defines the width of the border of an element.

Class name Properties
border_{size} border-width: {size}px;
border_{position}_{size} border-{position}-width: {size}px;

Usage

<div class="border_3">...</div>
<div class="border_5">...</div>
<div class="border_10">...</div>
<div class="border_t_10 border_b_7">...</div>

Some example of element using different sizes of border.

.border_3
.border_5
.border_10
.border_t_10 & .border_b_7