@farming-labs/docs

Pixel Border Theme

Inspired by better-auth.com — 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.tsx
import { defineDocs } from "@farming-labs/docs";
import { pixelBorder } from "@farming-labs/fumadocs/pixel-border";

export default defineDocs({
  entry: "docs",
  theme: pixelBorder(),
});
app/global.css
@import "tailwindcss";
@import "@farming-labs/fumadocs/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
  • 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

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

On this page

No Headings