styleguide

rené uses elements and class names as simple yet effective building blocks. it's about getting more done with less. it provides the essentials, helping designers and developers to create diverse designs from minimal components.

typography

rené's typography system is built around rem units. this means that all font sizes are relative to the root element. it allows for consistency in design, making it look good on all devices. also, using rem units can enhance accessibility, as it respects user preferences for default font sizes.

the following example shows how typography is used in a relative way

h1 {
font-size: 5.28rem; /* 6rem * 0.88 */
line-height: 0.95;
}

headings


Heading 1

Write Something

Heading 2

Write Something

Heading 3

Write Something

Heading 4

Write Something

Heading 5
Write Something
Heading 6
Write Something
Paragraph

Write Something

formatting


Bold
Strong
Write SomethingWrite Something
Blockquote
Write Something
code
Write Something
text-xs
Write Something
text-s
Write Something
text-m
Write Something
text-l
Write Something

colors

rené uses semantic colour naming. this means colours are named for their purpose, not their look. so, "error" or "error-red" could be names for colours used in messages.

this makes the stylesheet easier to understand and maintain, and reduces confusion in design.

brand


color-primary
#007AFF
color-secondary
#5856D6

background


background-primary
#FFFFFF
background-secondary
#F2F2F7
background-tertiary
#E5E5EA

foreground


foreground-primary
#000000
foreground-secondary
#3C3C43
foreground-tertiary
#48484A

semantics


background-positive
#34C759
background-critical
#FF9500
background-negative
#FF3B30

opacity


opacity-xl
opacity-l
opacity-m
opacity-s
opacity-xs

layout

containers


view

use 'view' when you want to fill the viewport, giving you control over the visible area.

panel

use '.panel' for wrapping related content, fostering content coherence.

page

use '.page' for structuring an entire webpage, providing a straightforward layout.

sticky

use '.sticky' to keep elements in view while scrolling, enhancing user navigation.

hidden

use '.hidden' to remove elements from the display, managing content visibility without removing them from the document flow.

.scrollable

use '.scrollable' for making overflowing content scrollable, ensuring full content accessibility.

hidden-on-mobile

use '.hidden-on-mobile' to hide certain elements on mobile view, tailoring user experience per device type.

header

use 'header' for top-level navigation and branding, offering an intuitive user interface.

nav

use 'nav' for main navigation links, directing users across the site.

footer

use 'footer' for secondary information like copyright notices, enhancing site credibility.

multipurpose box


box

use box when you want to stack items in a specific way, offering flexibility in arranging your content.

hr

use 'hr' to separate sections or elements visually, improving content readability.

fixed-size Boxes


box-xs
25%
box-s
50%
box-m
75%
box-l
100%

gaps


gap-xs
gap-s
gap-m
gap-l
gap-xl

directions


row
column

justifications


justify-end
justify-start
justify-stretch

alignments


align-start
align-end
align-center
align-stretch

paddings


padding-xs
1 × base
padding-s
2 × base
padding-m
3 × base
padding-l
6 × base
padding-xl
10 × base

shadows

shadow
shadow-hover

borders

border-bottom
border

media

animation

rené's animation system provides simple, semantic animation classes. the base .animate class sets default timing, while modifiers let you customize duration, easing, and animation types like fade, slide, or rotate.

animations can be controlled with utility classes for iteration (once, infinite), direction (reverse, alternate), and state (running, paused). transitions and transforms are also available for hover effects.

animation utility

.animate

duration modifiers

.duration-fast
.duration-normal
.duration-slow

timing function modifiers

.ease
.ease-in
.ease-out
.ease-in-out
.linear

animation types

.fade-in
.pulse
.bounce
.scale-down
.scale-up
.rotate
.slide-right
.slide-left
.slide-down
.slide-up
.fade-out

animation iteration

.infinite
.twice
.once

animation direction

.reverse
.alternate

animation state

.paused
.running