Style Guide
Elements
– Fonts
Font Regular
Writing code has a place in the human hierarchy worth somewhere above grave robbing and beneath managing. (Gerald Weinberg)
Font Semibold
It would appear that we have reached the limits of what it is possible to achieve with computer technology, although one should be careful with such statements, as they tend to sound pretty silly in 5 years. (John Von Neumann, circa 1949)
Font Bold
Programmers are in a race with the Universe to create bigger and better idiot-proof programs, while the Universe is trying to create bigger and better idiots. So far the Universe is winning. (Rich Cook)
<p class="font-normal"> […] </p>
<p class="font-semibold"> […] </p>
<p class="font-bold"> […] </p>
– Typography
Headings
h1
If debugging is the process of removing software bugs, then programming must be the process of putting them in
h2
First, solve the problem. Then, write the code
h3
The only people who have anything to fear from free software are those whose products are worth even less
h4
I think Microsoft named .Net so it wouldn’t show up in a Unix directory listing
h5
Computers are getting smarter all the time. Scientists tell us that soon they will be able to talk to us
h6
Computers are like bikinis. They save people a lot of guesswork
<h1 class="sl-h1"> […] </h1>
<h1 class="sl-h1"><em> […] </em></h1>
<h1 class="sl-h1"><strong> […] </strong></h1>
<h1 class="sl-h1"><b><i> […] </i></b></h1>
<h2 class="sl-h2"> […] </h2>
<h3 class="sl-h3 text-red"> […] </h3>
.sl-section-title {
@apply sl-h3 text-primary;
}
Paragraphs
Au commencement : une blague en forme de point d’interrogation sur les boissons chaudes, le colorisme et le colonialisme. Elle devient la fabrication d’une communauté sur scène entamant un voyage initiatique poétique de réappropriation de leur Histoire de femmes noires dans un pays qui n’est pas décolonisé de ses imaginaires.
Ensemble, les huit interprètes multiples mais unifiées, se transforment sans cesse, elles sont des Alices trop souvent inadaptées au monde et glissent dans un long tunnel avec à chaque bout, leur affreux-passé et leur afro-futur. Une tentative d’œuvre performative d’empuissancement qui n’épargne ni les oreilles ni les yeux.
<p class="sl-p"> […] </p>
<p class="sl-lead"> […] </p>
Paragraphs two colums
<p class="sl-columns--2"> […] </p>
Paragraphs three colums
<p class="sl-columns--3"> […] </p>
Paragraphs four colums
<p class="sl-columns--4"> […] </p>
Blockquotes
<figure>
<blockquote class="sl-blockquote sl-blockquote--quoted">There are two major products that come out of Berkeley: LSD and UNIX. We don’t believe this to be a coincidence. (Jeremy S. Anderson)</blockquote>
<figcaption class="sl-blockquote--figcaption">Aldous Huxley, Brave New World</figcaption>
</figure>
– Formats
Headings
First, solve the problem. Then, write the code
The only people who have anything to fear from free software are those whose products are worth even less
I think Microsoft named .Net so it wouldn’t show up in a Unix directory listing
Computers are getting smarter all the time. Scientists tell us that soon they will be able to talk to us
Computers are like bikinis. They save people a lot of guesswork
Paragrah without padding/margin
Au commencement : une blague en forme de point d’interrogation sur les boissons chaudes, le colorisme et le colonialisme. Elle devient la fabrication d’une communauté sur scène entamant un voyage initiatique poétique de réappropriation de leur Histoire de femmes noires dans un pays qui n’est pas décolonisé de ses imaginaires.
Au commencement : une blague en forme de point d’interrogation sur les boissons chaudes, le colorisme et le colonialisme. Elle devient la fabrication d’une communauté sur scène entamant un voyage initiatique poétique de réappropriation de leur Histoire de femmes noires dans un pays qui n’est pas décolonisé de ses imaginaires.
.sl-p
Paragrah with padding/margin
Au commencement : une blague en forme de point d’interrogation sur les boissons chaudes, le colorisme et le colonialisme. Elle devient la fabrication d’une communauté sur scène entamant un voyage initiatique poétique de réappropriation de leur Histoire de femmes noires dans un pays qui n’est pas décolonisé de ses imaginaires.
Au commencement : une blague en forme de point d’interrogation sur les boissons chaudes, le colorisme et le colonialisme. Elle devient la fabrication d’une communauté sur scène entamant un voyage initiatique poétique de réappropriation de leur Histoire de femmes noires dans un pays qui n’est pas décolonisé de ses imaginaires.
.sl-p--mb
buttons
button
.sl-button .sl-button--filled
button
.sl-button .sl-button--primary
lead
Ensemble, les huit interprètes multiples mais unifiées, se transforment sans cesse, elles sont des Alices trop souvent inadaptées au monde et glissent dans un long tunnel avec à chaque bout, leur affreux-passé et leur afro-futur. Une tentative d’œuvre performative d’empuissancement qui n’épargne ni les oreilles ni les yeux.
.sl-lead
blockquote
.sl-blockquote .sl-blockquote--quoted
.sl-blockquote--figcaption
.sl-blockquote
.sl-blockquote--figcaption
Epigraph
There are two major products that come out of Berkeley: LSD and UNIX. We don’t believe this to be a coincidence.
.sl-epigraph
Press + author
There are two major products that come out of Berkeley: LSD and UNIX. We don’t believe this to be a coincidence.
.sl-press
.sl-press--author
– Colors
#000000
bg-black
text-black
#FFFFFF
bg-white
text-white
#707070
bg-gray-100
text-gray-100
#D0D0D0
bg-gray-500
text-gray-500
#303030
bg-gray-900
text-gray-900
#F00E0E
bg-primary
text-primary
#303030
bg-dark
text-dark
#fefee2
bg-light
text-light
custom gradient
inline-style
– Buttons
Shapes
<button class="sl-button"> […] </button>
<button class="sl-button sl-button--rounded"> […] </button>
<button class="sl-button sl-button--circled"> […] </button>
Colored buttons
<button class="sl-button sl-button--filled"> […] </button>
<button class="sl-button sl-button--primary"> […] </button>
Cases
<button class="sl-button sl-button--lowercase"> […] </button>
<button class="sl-button sl-button--uppercase"> […] </button>
Colored buttons
<button class="sl-alert sl-alert--warning">button warning</button>
<button class="sl-alert sl-alert--light">button light</button>
– Icons
Arrows slideshow icons:
<div class="text-2xl lg:text-4xl text-primary">
<div class="swiper-button-prev"><i class="fa-light fa-arrow-left"></i></div>
<div class="swiper-button-next"><i class="fa-light fa-arrow-right"></i></div>
</div>
Add shapes around icons:
Square
Circle
<a href="#" class="sl-fa-container sl-fa-container--circle">
<i class="fa-light fa-ticket text-xl"></i>
</a>
Icon card (last slide home):
– Shapes
Squares
<div>
<picture>
<img src="{{ theme.path }}/assets/img/ […] .jpeg" alt=" […] " class="sl-aspect--square"/>
</picture>
</div>
Circles
<div>
<picture>
<img src="{{ theme.path }}/assets/img/ […] .jpeg" alt=" […] " class="sl-aspect--circle"/>
</picture>
</div>
16/9
<div>
<picture>
<img src="{{ theme.path }}/assets/img/ […] .jpeg" alt=" […] " class="sl-aspect--screen"/>
</picture>
</div>
Custom format:
<div>
<picture>
<img src="{{ theme.path }}/assets/img/ […] .jpeg" alt=" […] " class="sl-aspect--custom"/>
</picture>
</div>
Layout
– Custom grid
<div class="sl-grid">
<div class="sl-grid--col1">
<div>
<picture>
<img src="{{ theme.path }}/assets/news/ […] .jpg" alt=" […] "/>
</picture>
</div>
</div>
<div class="sl-grid--col2">
<div>
<picture>
<img src="{{ theme.path }}/assets/news/ […] .jpg" alt=" […] "/>
</picture>
</div>
</div>
</div>
– Mansory x Isotope layout
<div class="sl-masonry">
<div class="sl-masonry--item">
<picture>
<img src="{{ theme.path }}/assets/news/ […] .jpg" alt=" […] "/>
</picture>
</div>
</div>
Form
– Ninja Form
No Fields Found.Agenda
– Filters
Choices
radio
<label class="sl-filter">
<span class="sl-filter--label"> […] </span>
<input type="radio" checked="checked" name="radio_choice">
<span class="sl-filter--checkbox"></span>
</label>
checkbox
<label class="sl-filter">
<span class="sl-filter--label"> […] </span>
<input type="checkbox" checked="checked" name="checkbox_choice">
<span class="sl-filter--checkbox"></span>
</label>
Select
font-size: 1.5rem; (24px) line-height: 2rem; (32px)
<button class="sl-select"> […] <i class="fa-light fa-angle-down text-sm ml-4"></i></button>
Search
font-size: 1.25rem; (20px) line-height: 1.75rem; (28px)
<form method="GET" action="/" role="search" class="flex justify-between items-center w-full">
<input type="search" value="" name="s" id="s" placeholder="Rechercher" class="sl-search sl-header-search-input">
<button type="submit" class="ml-auto"><i class="fa-light fa-magnifying-glass text-xl 2xl:text-2xl"></i></button>
</form>
Components
– Accordion
Title1
dropdown1
Title2
dropdown2
Title3
dropdown3
– Slider home
– Half Slider
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec sed vulputate mi. Proin at ullamcorper nunc. Vestibulum ut nulla mi. Praesent gravida ornare eros, vitae tristique erat blandit non. In magna diam, tristique consequat laoreet vel, placerat ac arcu. Vivamus tempor magna id lorem dictum, non condimentum felis finibus. Nunc ultricies nunc in arcu accumsan, eu volutpat sapien gravida. Suspendisse urna arcu, pharetra at tempus eu, fermentum ac lorem. Curabitur fermentum elit erat, et bibendum magna faucibus tristique. Cras id condimentum lectus, id bibendum nisi. Sed tincidunt blandit neque, ut molestie enim laoreet non.
– Card
– Gallery mosaic
title gallery mosaic
– Press
– Related
– Partners
– Tooltips
– Related
button
list
grid
– Menus
X
Y
– Menus home
– Files
– Dates
LU 01/01 ME 03/01 20:00
city hall
ME 01/01 20:00
JE 02/01 20:00