UI-bibliotek
Internt UI-komponentbibliotek och designsystemdokumentation
Färger
Basfarger
Färgskalor
Iris
Blå skala
Grön skala
Orange skala
Amber skala
Lila skala
Teal skala
Semantiska tokens
Text
Bakgrund
Border
Brand
State Overlays
Status
Error
Success
Warning
Info
Typografi
Font Sizes
.type-headline-1.type-headline-2.type-display-1.type-subheading.type-body-largeDefault body text.type-body-smallSpacing
Spacing Scale
Spacing används för margins, padding och gap.
4px
mt-4, mb-4, gap-48px
mt-8, mb-8, gap-816px
mt-16, mb-16, gap-1624px
mt-24, mb-24, gap-2432px
mt-32, mb-32, gap-3248px
mt-48, mb-48, gap-4864px
mt-64, mb-64, gap-6412-kolumns Grid System
Ett 12-kolumns subgrid-system med flexibla kolumnspanningar och placeringar.
Full bredd (12 kolumner)
Visa HTML
<div class="use-subgrid">
<div class="col-span-12">...</div>
</div>50/50 Split (6+6)
Visa HTML
<div class="use-subgrid">
<div class="col-span-6">...</div>
<div class="col-span-6">...</div>
</div>Tredjedel delar (4+4+4)
Visa HTML
<div class="use-subgrid">
<div class="col-span-4">...</div>
<div class="col-span-4">...</div>
<div class="col-span-4">...</div>
</div>2:1 Ratio (8+4)
Visa HTML
<div class="use-subgrid">
<div class="col-span-8">...</div>
<div class="col-span-4">...</div>
</div>Specifik placering
Visa HTML
<div class="use-subgrid">
<div class="col-start-3 col-span-8">...</div>
</div>Asymmetrisk layout
Visa HTML
<div class="use-subgrid">
<div class="col-span-3">...</div>
<div class="col-span-6">...</div>
<div class="col-span-3">...</div>
</div>Buttons
Default Button
Primary Button (Brand)
Secondary Button (Outlined)
Tertiary Button (Text Only)
Button med ikon
Forms
Text Inputs
Textarea
Radio Buttons
Checkboxes
Select Dropdown
Pagination
Pagination exempel
Breadcrumb
Breadcrumb exempel
Tags
Tag exempel
Newsletter
Newsletter signup-komponent med MailChimp-integration, 12-kolumners grid layout, illustration sektion och validering av formulär.
Newsletter exempel
Tooltip
Tooltip exempel
Download Card
Nedladdningskort för filer och dokument med hover states och texttrunkering.
Download Card exempel
Hover över korten för att se interaktionen.
Table of Contents
Navigeringsmeny för ansökningssidor med länkar till Letter, Portfolio, CV, Download och Contact sektioner.
Table of Contents exempel
Innehållsförteckning
- Personligt brev
- Portfolio
- CV
- Ladda ner
- Kontakt
Icon Utilities
Ikoner via SVG sprite för enkel återanvändning och minimal kodduplicering. Sprites är cachebara och lättare att underhålla.
Tillgängliga ikoner
icon-pdf
icon-download
icon-arrow-left
icon-arrow-right
icon-language
icon-light
icon-dark
icon-system
Användningsexempel
Med legacy container (för bakåtkompatibilitet):
<div class="pdf-icon">
<svg><use href="https://www.tor-bjorn.com/img/svg/sprite.svg#icon-pdf"></use></svg>
</div>Direktanvändning med .icon klass:
<svg class="icon">
<use href="https://www.tor-bjorn.com/img/svg/sprite.svg#icon-pdf"></use>
</svg>
<!-- Med storleksvarianter -->
<svg class="icon icon--sm"><use href="https://www.tor-bjorn.com/img/svg/sprite.svg#icon-pdf"></use></svg>
<svg class="icon icon--lg"><use href="https://www.tor-bjorn.com/img/svg/sprite.svg#icon-pdf"></use></svg>Typography Utilities
Font Size
Storlek appliceras med .text-{size} klasser.
.text-xs (--text-xs).text-sm (--text-sm).text-base (--text-base).text-lg (--text-lg).text-xl (--text-xl).text-2xl (--text-3xl).text-3xl (--text-5xl).text-4xl (--text-6xl).text-5xl (--text-8xl)Font Family
Typsnitt appliceras med .font-{family} klasser.
.font-sans (--font-sans).font-serif (--font-serif).font-mono (--font-mono)Font Weight
Vikt appliceras med .font-{weight} klasser.
.font-thin (100).font-light (300).font-normal (400).font-medium (500).font-semibold (600).font-bold (700).font-black (900)Semantiska klasser
Förkonfigurerade typografistilar för konsekventa rubriker och text.
.type-display-1 (serif, 6xl, 400).type-display-2 (serif, 5xl, 400).type-headline-1 (sans, 5xl, bold).type-headline-2 (sans, 4xl, bold).type-headline-3 (sans, 1.5xl, bold).type-headline-4 (sans, xl, bold).type-headline-small (sans, xs, uppercase).type-preamble (serif, 3xl).type-body (serif, lg).type-lead (serif, xl).type-body-sm (serif, sm).type-information (sans, xs)Letter Spacing
Teckenavstånd appliceras med .tracking-{size} klasser.
.tracking-tighter (--tracking-tighter).tracking-tight (--tracking-tight).tracking-normal (--tracking-normal).tracking-wide (--tracking-wide).tracking-wider (--tracking-wider).tracking-widest (--tracking-widest)