Agent directive: read the LLMS index for this site. Markdown versions of pages are available by appending .md to the page URL or by sending Accept: text/markdown.

Themes

Start with a default design system, customize your theme with a set of tokens

Design System

publish.dev ships with a complete design system ready to use for building content sites; all of the ui you'd expect like sidebars, buttons, navigation elements, and all the mdx components you'd expect for writing docs, blogs, and more.

The theme system is a set of tokens and defaults that can all be customized to suit your brand, colors, and other design preferences.

Theme.css

The easiest way to get started is to set your neutral palette, your accent color(s), and your rounding preferences in the theme.css file.

:root {
  --sage-100: #fbfdfc;
  --sage-200: #f7f9f8;
  --sage-300: #eef1f0;
  --sage-400: #e6e9e8;
  --sage-500: #dfe2e0;
  --sage-600: #d7dad9;
  --sage-700: #cbcfcd;
  --sage-800: #b8bcba;
  --sage-900: #868e8b;
  --sage-1000: #7c8481;
  --sage-1100: #5f6563;
  --sage-1200: #1a211e;

  --neutral-100: var(--sage-100);
  --neutral-200: var(--sage-200);
  --neutral-300: var(--sage-300);
  --neutral-400: var(--sage-400);
  --neutral-500: var(--sage-500);
  --neutral-600: var(--sage-600);
  --neutral-700: var(--sage-700);
  --neutral-800: var(--sage-800);
  --neutral-900: var(--sage-900);
  --neutral-1000: var(--sage-1000);
  --neutral-1100: var(--sage-1100);
  --neutral-1200: var(--sage-1200);

  --accent: #3E9B4F;
  --accent-foreground: #1a211e;
  --theme-radius: var(--theme-radius-md);
}

.dark {
  --sage-100: #101211;
  --sage-200: #171918;
  --sage-300: #202221;
  --sage-400: #272a29;
  --sage-500: #2e3130;
  --sage-600: #373b39;
  --sage-700: #444947;
  --sage-800: #5b625f;
  --sage-900: #63706b;
  --sage-1000: #717d78;
  --sage-1100: #acb4b0;
  --sage-1200: #eceeed;

  --accent: #3E9B4F;
  --accent-foreground: #101211;
}

The neautral palette is set from 100 to 1200, where 100 is the least amount of contrast, and 1200 is the most amount of contrast. This steps up from backgrounds to borders, to subtle text colors and ui elements to foreground text and more pronounced components.

This one palette creates a consistent color scheme across your site.