Home /

docs

Pixel Border Theme

Inspired by — a clean dark UI with visible borders, pixel-perfect spacing, and a refined sidebar. The active sidebar indicator and text use your primary color.

Usage

docs.config.ts
import { defineDocs } from "@farming-labs/docs";
import { pixelBorder } from "@farming-labs/theme/pixel-border";

export default defineDocs({
  entry: "docs",
  theme: pixelBorder(),
});
app/global.css
@import "tailwindcss";
@import "@farming-labs/theme/pixel-border/css";

Defaults

PropertyValue
PrimaryNear-white (oklch(0.985 0.001 106.423))
Backgroundhsl(0 0% 2%)
Borderhsl(0 0% 15%)
Border radius0px
Content width860px
Sidebar width286px
Header height56px
h12.25rem, weight 700, line-height 1.2
h21.5rem, weight 600, line-height 1.3
h31.25rem, weight 600, line-height 1.4
h41.125rem, weight 600, line-height 1.4
Body text1rem, weight 400, line-height 1.75
  • Full-width border separators between top-level items
  • Collapsible folder groups with expand/collapse arrows
  • Active state: primary-colored text + left vertical indicator bar
  • Nested children are indented with smaller text
  • Folder parents use slightly muted text when collapsed

Customizing

customizing.tsx
theme: pixelBorder({
  ui: {
    colors: { primary: "oklch(0.72 0.19 149)" },
    typography: {
      font: {
        h1: { size: "2.5rem", weight: 800 },
      },
    },
  },
}),

The primary color flows to:

  • Active sidebar item text
  • Active sidebar indicator bar (::before)
  • Active TOC item
  • Links and other primary-colored elements
Customize
Live preview on these docs
Reset
Customize
Export Code
Preset
Explore more themes
Primary Color
Primary
Colors
Background
Foreground
Muted Text
Border
Card
Muted BG
Ring
Layout
SidebarBordered
TOC StyleDirectional (tree)
TOC DepthH2 + H3
Ask AI
ModeFloating
Floating StyleFull Modal
PositionBottom Right
Features