Skip to content

Riso, a shadcn/ui preset

Risograph orange with Work Sans: Offset’s print set. It comes from Offset, one of our website themes.

Fonts: Work Sans · radius 0.75rem · light and dark · lowest text contrast 4.83:1

npx shadcn@latest add https://www.themes.dev/r/presets/riso.json
Edit in the generator

Riso on six free blocks from themes.dev UI. Scroll inside the preview.

The colours

The main variables, light and dark. The full set of 31 per mode, sidebar and charts included, is in the CSS below.

Light

  • background#f7f3eb
  • foreground#1a1714
  • primary#c23b1a
  • primary-foreground#ffffff
  • secondary#ece7dc
  • muted-foreground#5b5348
  • accent#fae3d7
  • border#ddd5c4
  • destructive#a12a16
  • ring#c23b1a
  • chart-1#ffa086
  • chart-2#e46649
  • chart-3#bb4c33
  • chart-4#973720
  • chart-5#782511

Dark

  • background#0f0d0b
  • foreground#fbfaf9
  • primary#ff987a
  • primary-foreground#14110f
  • secondary#211c18
  • muted-foreground#bcb8b5
  • accent#43241d
  • border#2e2b28
  • destructive#ff9693
  • ring#ff8464
  • chart-1#ffa58c
  • chart-2#f27355
  • chart-3#c9593f
  • chart-4#a14029
  • chart-5#822e1a

Contrast, checked

Every pair shadcn/ui draws text with, measured as WCAG 2 contrast (AA needs 4.5:1) and APCA Lc (we ask 60 for text). Focus rings need 3:1 on the page.

WherePairLightDark
Body textforeground on background16.13:1 · Lc 9818.59:1 · Lc 104
Secondary text on the pagemuted-foreground on background6.82:1 · Lc 799.86:1 · Lc 64
Text in cardscard-foreground on card16.85:1 · Lc 10117.17:1 · Lc 104
Secondary text in cardsmuted-foreground on card7.13:1 · Lc 829.10:1 · Lc 63
Menus and popoverspopover-foreground on popover16.85:1 · Lc 10117.17:1 · Lc 104
Primary buttonsprimary-foreground on primary5.35:1 · Lc 818.97:1 · Lc 62
Links and outline accentsprimary on background4.83:1 · Lc 689.26:1 · Lc 61
Secondary buttonssecondary-foreground on secondary14.53:1 · Lc 9116.20:1 · Lc 103
Text on muted panelsmuted-foreground on muted6.15:1 · Lc 728.59:1 · Lc 63
Hovered menu itemsaccent-foreground on accent5.94:1 · Lc 7013.30:1 · Lc 100
Error messagesdestructive on background6.64:1 · Lc 779.27:1 · Lc 61
Sidebarsidebar-foreground on sidebar15.57:1 · Lc 9517.69:1 · Lc 104
Sidebar active itemsidebar-primary-foreground on sidebar-primary5.35:1 · Lc 818.97:1 · Lc 62
Sidebar hoversidebar-accent-foreground on sidebar-accent14.53:1 · Lc 9116.20:1 · Lc 103
Focus ringring on background4.83:18.07:1

Use it

With the shadcn CLI, in a project set up with shadcn init:

npx shadcn@latest add https://www.themes.dev/r/presets/riso.json

Or paste the CSS into globals.css (Next.js) or your main stylesheet (Vite, Astro), replacing the :root and .dark values that are there.

Then load the font:

npm i @fontsource-variable/work-sans

The registry item: themes.dev/r/presets/riso.json. Free to use in any project.

globals.css
:root {
  --radius: 0.75rem;
  --background: oklch(0.965 0.012 86.83);
  --foreground: oklch(0.207 0.008 67.39);
  --card: oklch(0.98 0.01 87.47);
  --card-foreground: oklch(0.207 0.008 67.39);
  --popover: oklch(0.98 0.01 87.47);
  --popover-foreground: oklch(0.207 0.008 67.39);
  --primary: oklch(0.547 0.177 34.42);
  --primary-foreground: oklch(1 0 0);
  --secondary: oklch(0.93 0.016 86.83);
  --secondary-foreground: oklch(0.207 0.008 67.39);
  --muted: oklch(0.93 0.016 86.83);
  --muted-foreground: oklch(0.447 0.02 75.89);
  --accent: oklch(0.93 0.03 49.45);
  --accent-foreground: oklch(0.47 0.153 34.54);
  --destructive: oklch(0.471 0.158 32.09);
  --border: oklch(0.875 0.025 85.79);
  --input: oklch(0.584 0.03 80.12);
  --ring: oklch(0.547 0.177 34.42);
  --chart-1: oklch(0.796 0.12 36);
  --chart-2: oklch(0.66 0.163 34.42);
  --chart-3: oklch(0.56 0.149 34.42);
  --chart-4: oklch(0.47 0.135 34.42);
  --chart-5: oklch(0.39 0.12 34.42);
  --sidebar: oklch(0.953 0.012 86.83);
  --sidebar-foreground: oklch(0.207 0.008 67.39);
  --sidebar-primary: oklch(0.547 0.177 34.42);
  --sidebar-primary-foreground: oklch(1 0 0);
  --sidebar-accent: oklch(0.93 0.016 86.83);
  --sidebar-accent-foreground: oklch(0.207 0.008 67.39);
  --sidebar-border: oklch(0.875 0.025 85.79);
  --sidebar-ring: oklch(0.547 0.177 34.42);
}

.dark {
  --background: oklch(0.16 0.006 56);
  --foreground: oklch(0.985 0.002 56);
  --card: oklch(0.205 0.006 56);
  --card-foreground: oklch(0.985 0.002 56);
  --popover: oklch(0.205 0.006 56);
  --popover-foreground: oklch(0.985 0.002 56);
  --primary: oklch(0.78 0.131 36.86);
  --primary-foreground: oklch(0.18 0.006 56);
  --secondary: oklch(0.23 0.01 56);
  --secondary-foreground: oklch(0.985 0.002 56);
  --muted: oklch(0.23 0.01 56);
  --muted-foreground: oklch(0.785 0.006 56);
  --accent: oklch(0.3 0.05 34.42);
  --accent-foreground: oklch(0.985 0.002 56);
  --destructive: oklch(0.782 0.127 22);
  --border: oklch(0.29 0.006 56);
  --input: oklch(0.34 0.006 56);
  --ring: oklch(0.745 0.157 35.4);
  --chart-1: oklch(0.806 0.113 36.14);
  --chart-2: oklch(0.7 0.163 34.42);
  --chart-3: oklch(0.6 0.149 34.42);
  --chart-4: oklch(0.5 0.135 34.42);
  --chart-5: oklch(0.42 0.12 34.42);
  --sidebar: oklch(0.19 0.006 56);
  --sidebar-foreground: oklch(0.985 0.002 56);
  --sidebar-primary: oklch(0.78 0.131 36.86);
  --sidebar-primary-foreground: oklch(0.18 0.006 56);
  --sidebar-accent: oklch(0.23 0.01 56);
  --sidebar-accent-foreground: oklch(0.985 0.002 56);
  --sidebar-border: oklch(0.29 0.006 56);
  --sidebar-ring: oklch(0.745 0.157 35.4);
}

@theme inline {
  --font-sans: "Work Sans Variable", "Work Sans", ui-sans-serif, system-ui, sans-serif;
  --font-heading: "Work Sans Variable", "Work Sans", ui-sans-serif, system-ui, sans-serif;
}

The whole site

Riso started as Offset, a website theme

Offset is a complete site for Agencies and studios: every page, the content model and a live demo, built from the same blocks, in Astro and Next.js + Sanity. It comes with UI Pro, from €199 once, with every other theme.

More shadcn/ui presets

All 37 presets