Hello!
Forten is an ongoing project to create a CSS framework that combines a mobile-first flexbox grid system, a B.E.M. class-naming scheme, no Javascript, a clean 2.5-dimensional aesthetic, and modular SCSS features.
Feature Focuses:
- B.E.M. naming schemes
- Curated Grid class system
- Simplified media query breakpoints
- Flexbox-based
- Mobile-first
- Common "container>row>col" scheme
- No Javascript necessary
Typography
Heading 1
Heading 2
Heading 3
Heading 4
Here is a typical paragraph to demonstrate the stylings. Forten keeps track of commonly used web design elements, but it also tries to focus on providing contextual elements to aid in readability.
The underline style, u
, is a custom CSS styling using a border for a cleaner look. This is underlined as an example.
Minimalistic Grid System Based On Flexbox
Standard, yet basic Grid class assignments
Flexbox allows easy and consise style assignments for any type of layout. Conventional structures work, along with B.E.M.-named class augments.
.col
.col
.col
.col .col--50
.col
.col
.col .col--20
.col .col--50 .col--offset-10
.col
.col
.col
.col
.col
.col
.col
Colors
Colors in the color scheme can be inputted into the SCSS partial, _options.scss
and used throughout main.scss
. On compilation, shades of the chosen color palette will be generated, and can be refered to with the SCSS suffix "-Dark".
$color-Primary
#79EADF
$color-Secondary
#FB4D3A
$color-Tertiary
#8D70C5
Built-in Shades & Tints
$color-Primary-Dark
$color-Primary-Light
$color-Secondary-Dark
$color-Secondary-Light
$color-Tertiary-Dark
$color-Tertiary-Light
Elements
Lists
A simple list can look like:
- Unordered
- Unordered
- Unordered
- Unordered
A simple list for ordering:
- Ordered
- Ordered
- Ordered
- Ordered
Visual Cues
Captions
Swatches
$color-Primary-Dark
Badges
Forms
Buttons
Coding blocks
Using the .pre
class:
.container {
.row {
.col{
}
& col--50 {
}
}
}
Using both .pre
and .pre--primary
classes:
.container {
.row {
.col{
}
& col--50 {
}
}
}
Using both .pre
and .pre--secondary
classes:
.container {
.row {
.col{
}
& col--50 {
}
}
}
Using both .pre
and .pre--dark
classes:
.container {
.row {
.col{
}
& col--50 {
}
}
}