A collection of all the individual components and rules
used to build this site. I use a modified, custom version of
Pattern Lab's atomic
design structure, customised by me.
The purpose of exposing this styleguide is to present my portfolio itself as part my portfolio work. What you see is what I use as a reference as I build the site, as it's imperative to good web design and development.
Lead paragraph: vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus.
Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nullam id dolor id nibh ultricies vehicula.
This line of text is meant to be treated as fine print.
The following snippet of text is rendered as bold text.
The following snippet of text is rendered as italicized text.
An abbreviation of the word attribute is attr.
Left aligned text.
Center aligned text.
Right aligned text.
Modules
Modules are comprised of multiple core elements. Now that elements such as type and colours are defined, modules put them together into modular pieces that can be then used in containers.
Quotes
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.
Containers will consist of one or more module within a block / container element. This is used to group modules into chunks that serve a purpose.
Button Slider
Text Container
The objective was to define an identity for my web presence,
but also as an excercise in designing an identity, from logo to website,
with an element of freedom.
Focusing on the central aspect of "bjΓΆrn" (bear in Swedish, and also my last name),
the emphasis on the word "bear" and the logo tie it all together.
The dark grey contrasting with the blue are selected due to their contrast that's
less harsh than simply black on white.
The case-study pages render from markdown (see AUTHORING.md). Their
layout has one text edge, bullet plates and cards inside the
container, display boxes that bleed one indent step into the margins,
and a full-bleed tier for media and background sections.
Type roles
Headline β h2, 28.8px / 700
Sub-head β h3, 22.5px / 700
Body copy β 18.4px / 300. One size for paragraphs and list text.
Label β 15.4px (eyebrows, notes, captions). Never below this size.
Indent token: $cs-indent = 28px β box padding, box
bleed, timeline gutter and marker hang all derive from it.
Content width: 900/836 β one content width
site-wide (DR-0013); every page's text column is the container's 836px
inner width at 1440.
List-context rule (DR-0010): - item at section
level β fact chip; - item inside a box β plain bullet;
* item β plain bullet list at section level (the opt-out);
1. step β numbered timeline everywhere.
Chip plate: one token, --cs-chip-plate
(white 0.45; the dark ground's documented instance is 0.06 β DR-0012).
Bullet geometry: the dot sits 20px inside the plate, text 8px clear of
the dot; plateless lists keep the dot ON the text edge (tickets 39/41).
Width tiers
Text edge β all body copy aligns here.
Bleed β display boxes (summary, quote groups, cols)
extend one indent step into each margin. Full-bleed β
media, tables and full-flagged containers span the
viewport. Bullet plates (chips, plain lists) and cards sit WITHIN the
container (tickets 39/53).
Bleed example β the summary box extends
past the text edge by one indent step on both sides.
Within the container β card (ticket 53)
The card's box spans the text column; its text sits inset
inside the plate, like the chips.
Full-bleed band β ::: type full
(the background spans the viewport; content keeps its insets)
Vertical rhythm
One spacing scale governs all vertical gaps: 8 / 16 / 24 /
32 / 48 / 64 / 96 (8pt grid). Roles: 8 inside components,
16 list rhythm, 24 around media and after headings, 32 around
self-contained blocks, 48 around media wrappers and h2βh3, 64 around
pull quotes, 96 section padding. Label+content pairs (eyebrow β
heading, sub-title β list) sit tight by design.
8
16
24
32
48
64
96
Heroes
One hero component, one spacing/type set (DR-0014): eyebrow β h1
16, h1 β summary 24, summary β details 24, padding 64/64. The variant
picks ground and ink only β cover
(full-bleed colored band, white ink), meta (in-flow,
KPIs under the cover), adapted bare (transparent β
the page's ground carries it, e.g. visuAI's dark page, with an
adapted kicker instead of "Case Study"), and the mid-page
::: hero from markdown.
The visuAI Workflow
Adapted bare hero
Transparent on any ground β no cover box,
an adapted eyebrow instead of the case-study kicker.
Design Lead β 2026
15%meta hero β KPIs sit under the cover
Case Study
Cover hero
White-on-color ink; the real cover spans
the viewport (100vw technique, 64px/48px padding β DR-0014). This
demo shows its structure at container width.
Details line
Section Label
Mid-page hero
Emitted by the ::: hero container in markdown β
64/64 padding, subtitle and byline on the shared 24 gaps (DR-0014).
Components
Fact chip β key stats and proof points
Second chip β dot 20px inside the plate, text 8px clear of the dot (tickets 39/41)
* item at section level β the plain bullet list
(ul.cs-plain, DR-0010): chip geometry, no plate.
Plain bullet β the dot sits ON the text edge, text +8px
Second plain bullet β the opt-out when a list should not be a chip
Timeline step one
Real markup: ol.cs-timeline > li β the numbered dot and connector are the component's.
Timeline step two
Numbers baseline-align with their titles.
Note β [note: text], the muted annotation line with its icon.
"Display quote β centered, italic, h2-size, on every page."
"Quote group β runs of 2+ quotes share one bleeding plate."
"Each quote keeps its own blockquote inside the group."
Summary box β [summary: text]; the bleeding closing-summary of a case study.
Image run (ticket 61): ::: shots β N images
side by side, each image's alt text = its caption below. Wraps on
narrow screens.
Art-Ent β the first shot's captionClimate Clock β the second shot's captionDigital Closet β the third shot's caption
Divider
Frameplaceholder for mockups and pending media
Frame caption β a [point:] under an image renders
as a dotless, italic caption (DR-0011)
15%metric chip
Color tokens
The case-study system's seven verified tokens (ticket 20), used as
grounds, accents and inks across the themes. Contrast rationale lives
at each usage site in _case-study.scss.