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.jsonRiso 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.
| Where | Pair | Light | Dark |
|---|---|---|---|
| Body text | foreground on background | 16.13:1 · Lc 98 | 18.59:1 · Lc 104 |
| Secondary text on the page | muted-foreground on background | 6.82:1 · Lc 79 | 9.86:1 · Lc 64 |
| Text in cards | card-foreground on card | 16.85:1 · Lc 101 | 17.17:1 · Lc 104 |
| Secondary text in cards | muted-foreground on card | 7.13:1 · Lc 82 | 9.10:1 · Lc 63 |
| Menus and popovers | popover-foreground on popover | 16.85:1 · Lc 101 | 17.17:1 · Lc 104 |
| Primary buttons | primary-foreground on primary | 5.35:1 · Lc 81 | 8.97:1 · Lc 62 |
| Links and outline accents | primary on background | 4.83:1 · Lc 68 | 9.26:1 · Lc 61 |
| Secondary buttons | secondary-foreground on secondary | 14.53:1 · Lc 91 | 16.20:1 · Lc 103 |
| Text on muted panels | muted-foreground on muted | 6.15:1 · Lc 72 | 8.59:1 · Lc 63 |
| Hovered menu items | accent-foreground on accent | 5.94:1 · Lc 70 | 13.30:1 · Lc 100 |
| Error messages | destructive on background | 6.64:1 · Lc 77 | 9.27:1 · Lc 61 |
| Sidebar | sidebar-foreground on sidebar | 15.57:1 · Lc 95 | 17.69:1 · Lc 104 |
| Sidebar active item | sidebar-primary-foreground on sidebar-primary | 5.35:1 · Lc 81 | 8.97:1 · Lc 62 |
| Sidebar hover | sidebar-accent-foreground on sidebar-accent | 14.53:1 · Lc 91 | 16.20:1 · Lc 103 |
| Focus ring | ring on background | 4.83:1 | 8.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.jsonOr 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-sansThe registry item: themes.dev/r/presets/riso.json. Free to use in any project.
: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.
