Deep blue-violet, lavender text and soft pastel accents. A modern code editor, as a website.
Inspired by today’s pastel editor themes. The blue-violet base is easy on the eyes for long sessions, lavender text stays readable, and mauve marks active elements. Fira Code runs through headings and body for a full-terminal feel, ligatures included.
Click any swatch to copy its hex code.
Worked out when the site is built, using the WCAG 2 formula.
AAA ≥ 7:1 and AA ≥ 4.5:1 for normal text. AA Large ≥ 3:1 is enough for large headings, icons and button shapes.
Every font is self-hosted, so pages load without calling a third-party font service.
Small rooms full of light
Good body type disappears: you stop noticing letters and start reading the story they carry.
const palette = "code"; // 0O 1lI =>
Headings, links, quotes, code, buttons and cards together.
Colour is never just decoration. A background sets the temperature of a room before a single word is read, and an accent tells the eye where to go next. Choose them together and a site starts to feel like a place.
A palette is a promise about how a page will feel.
// apply the palette const root = document.querySelector("html"); root.dataset.lbTheme = "code";
Paste into your own project. The font names match the files listed on the Credits page.
/* Code: Deep blue-violet, lavender text and soft pastel accents. A modern code editor, as a website. */
:root {
--color-bg: #1E1E2E;
--color-bg-alt: #2A2A3C;
--color-surface: #181825;
--color-text: #CDD6F4;
--color-heading: #E4E9FB;
--color-muted: #9399B2;
--color-accent: #CBA6F7;
--color-accent-2: #A6E3A1;
--color-link: #89B4FA;
--color-border: #45475A;
--color-on-accent: #1E1E2E;
--font-heading: 'Fira Code', ui-monospace, Consolas, monospace;
--font-body: 'Fira Code', ui-monospace, Consolas, monospace;
--font-mono: 'Fira Code', ui-monospace, Consolas, monospace;
}/* Code for Tailwind CSS 4. Use as bg-canvas, text-ink, border-line, font-heading ... */
@import "tailwindcss";
@theme {
--color-canvas: #1E1E2E;
--color-canvas-alt: #2A2A3C;
--color-surface: #181825;
--color-ink: #CDD6F4;
--color-heading: #E4E9FB;
--color-muted: #9399B2;
--color-accent: #CBA6F7;
--color-accent-2: #A6E3A1;
--color-link: #89B4FA;
--color-line: #45475A;
--color-on-accent: #1E1E2E;
--font-heading: 'Fira Code', ui-monospace, Consolas, monospace;
--font-body: 'Fira Code', ui-monospace, Consolas, monospace;
--font-mono: 'Fira Code', ui-monospace, Consolas, monospace;
}{
"colors": {
"accent": "#CBA6F7",
"accent2": "#A6E3A1",
"bg": "#1E1E2E",
"bgAlt": "#2A2A3C",
"border": "#45475A",
"heading": "#E4E9FB",
"link": "#89B4FA",
"muted": "#9399B2",
"onAccent": "#1E1E2E",
"surface": "#181825",
"text": "#CDD6F4"
},
"fonts": {
"body": "Fira Code",
"heading": "Fira Code",
"mono": "Fira Code"
},
"mode": "dark",
"name": "Code"
}<!-- Apply Code to a Lightbi site -->
<html data-lb-theme="code">
<!-- Or link to this page wearing it -->
https://lightbi-palettes.netlify.app/?palette=code