OTSTEK UI

One stylesheet, otstek.css, for otstek.ee, the review portal and every internal tool. Components ask for meanings like surface or danger, never hex values, so the whole page switches theme with one attribute. Try the Tume and Hele switch in the top bar.

<link rel="stylesheet" href="/css/otstek.css">
<html data-theme="dark">   <!-- default. "light" for documents and the client portal -->

Foundations

Brand tokens hold the raw colours from the guide. Theme tokens give them jobs. Only theme tokens appear in components.

Brand tokens

Ink--ot-ink #0B0B0B
Ink 2--ot-ink-2 #151515
Rule--ot-rule #2A2A2A
Steel--ot-steel #8E9590
Steel dark--ot-steel-dark #5E6460
Paper--ot-paper #F2F2EE
Orange--ot-orange #DD6B00
Orange ink--ot-orange-ink #A85200

Theme tokens, live in the current theme

Contrast, measured

Dark: pairRatioUse
Light: pairRatioUse
  • Text needs 4.5:1, controls and focus need 3:1. Everything in the tables passes where it is used.
  • Orange is 3.0:1 on paper: in the light theme it fills dots and bars only, and orange text switches to Orange ink.
  • --border is decorative (dividers, card edges). Inputs use --border-control, which clears 3:1 in both themes.

Type

.ot-display
Kurdis XC Black, 96
Õhtune võte
.ot-h1
Kurdis XC Black, 56
Šveitsi žürii
.ot-h2
Kurdis XC Black, 36
Äärelinna ööd
.ot-h3
Kurdis XC Bold, 26
Projekti ülevaade
.ot-lead
Mansfield, 19

Video, mida vaadatakse lõpuni.

.ot-text
Mansfield, 16/1.55

Mina teen video algusest lõpuni: idee, võtted, montaaž ja värv.

.ot-label
Mansfield Bold, 14
Saada päring
.ot-data
Monodrip Light, 14
02.12.2026 1 450,00 € 00:01:24:13

Space, shape, depth

  • Spacing steps of 4 px: --s-1 to --s-16. Use them for every gap and padding.
  • Radius is 0. Only dots, switches and avatars are round.
  • Shadows only on things that float: menus, dialogs, toasts.

Buttons

One primary button per view: paper on ink, ink on paper. Orange is not the primary colour, so a red delete never sits next to an orange save.

<button class="ot-btn ot-btn--primary">Salvesta</button>
<button class="ot-btn ot-btn--danger">Kustuta video</button>
<button class="ot-btn" aria-busy="true">Salvestan</button>      <!-- keeps its width -->
<button class="ot-btn ot-btn--icon" aria-label="Lisa"><svg>…</svg></button>
<div class="ot-seg" role="group"><button aria-pressed="true">Ruudustik</button>…</div>
  • --accent is for the one orange action a public page may have, such as the enquiry button. Never in tools.
  • Destructive buttons open a dialog. Icon-only buttons always carry aria-label.

Forms

Labels sit above the field. Errors say what is wrong in words, under the field, with a shape as well as a colour.

€

E-posti aadressist puudub domeen, näiteks otstek.ee

Kliendile näidatakse seda kuupäeva portaalis.

<div class="ot-field">
  <label class="ot-field__label" for="mail">E-post <span class="ot-req">*</span></label>
  <input class="ot-input" id="mail" aria-invalid="true" aria-describedby="mail-err">
  <p class="ot-error" id="mail-err">E-posti aadressist puudub domeen</p>
</div>
<label class="ot-switch"><input type="checkbox" role="switch"> Teavita mind</label>   <!-- acts at once, no save -->
  • Checkbox: a square box with a square orange mark. Radio: the viewfinder, four corner marks with an orange square when chosen. Both are straight lines only, so they stay sharp on every screen.
  • Use radios for one choice out of a short, visible list. For two to four short options, the segmented control from Buttons is often clearer.

Status

Every status is a shape plus a word, so it reads in black and white and for colour-blind viewers. Dot, triangle, diamond, ring, empty square.

Kinnitatud Ootab tagasisidet Tähtaeg möödas Uus versioon Mustand Võtted käivad
<span class="ot-tag ot-tag--ok">Kinnitatud</span>   --ok --warn --danger --info --neutral --rec
  • --rec is the only status in orange and the only one that blinks: something is being filmed or rendered right now.

Table

Dense, with a sticky header. Numbers and dates in Monodrip, right aligned, so they line up to the digit.

KlientStaatusVersioonKestusSumma
RAJU 21 promoEvecon RAJUOotab tagasisidetv300:00:422 710,00
The League VIIIThe League OÜKinnitatudv500:01:003 360,40
Sabbe jõuludAugust SabbeUus versioonv100:00:301 450,00
ÜKM 57Üks Kaks MaksTähtaeg möödasv201:24:07880,00

Selle otsinguga projekte ei leitud.

<div class="ot-table-wrap"><table class="ot-table">   <!-- add ot-table--dense for 34 px rows -->
  <th aria-sort="descending"><button>Projekt</button></th>
  <tr aria-selected="true"> … <td class="ot-num ot-data">2 710,00</td>
  • An empty table always says what to do next.

Cards

A card is one thing: a video, a project, a client. Title in Kurdis, facts in Monodrip, status as a tag.

<a class="ot-card ot-card--link">
  <div class="ot-card__media">…</div><h3 class="ot-card__title">RAJU 21 promo</h3>
  <div class="ot-card__meta">…</div><div class="ot-card__foot">…</div>
</a>

Feedback

A toast leaves by itself. An alert stays on the page. A dialog waits for a decision.

Versioon üles laaditud

Klient näeb v3 kohe ja saab teavituse e-postiga.

Kaks märkust on vastuseta

Vasta neile enne järgmise versiooni üleslaadimist.

Renderdus ebaõnnestus

NAS ei vastanud. Proovi uuesti või kontrolli ühendust.

Märkus kustutatud.

Kustutada RAJU 21 promo v3?

Video ja selle 4 märkust kaovad portaalist. Seda ei saa tagasi võtta.

<div class="ot-alert ot-alert--warn"><span class="ot-alert__title">…</span><p>…</p></div>
<dialog class="ot-dialog">  <!-- title is a question, the button repeats the action -->

Device

The viewfinder from the brand guide as a component, for the hero, the player and video cards. Set --u to 1% of the frame's short side and every measure follows.

REC01:24:07:134K 25P

Äärelinna
ööd

Lühifilm sellest, kuidas linn magama jääb.

<div class="ot-vf" style="--u:7px">
  <img src="still.jpg" alt="">
  <div class="ot-vf__corners"><i></i></div>
  <div class="ot-vf__row"><span class="ot-rec ot-rec--live">REC</span><span class="ot-tc">01:24:07:13</span><span class="ot-dim">4K 25P</span></div>
  <div class="ot-vf__stack"><p class="ot-vf__title">…</p><p class="ot-vf__sub">…</p></div>
</div>
  • The device is always paper on footage, in both themes, with the soft shadow from the guide.
  • ot-rec--live blinks one second on, one off. ot-rec--stby is the grey standby dot for finished or paused things.

Screen: review a version

The review portal's video page, built only from the components above.

KO

RAJU 21 promo

Ootab tagasisidet
STBY00:00:17:08v3
Maarja Tamm00:00:12:04

Logo võiks olla 2 sekundit kauem ekraanil.

Karl Ots00:00:31:20

Muusika vahetus tehtud, palun kuula üle.