CtrlK
BlogDocsLog inGet started
Tessl Logo

pantheon-ai/astro-starlight

Skills for setting up and customizing Astro Starlight documentation sites, covering project setup, custom theming, and component overrides.

100

Quality

100%

Does it follow best practices?

Impact

Pending

No eval scenarios have been run

SecuritybySnyk

Passed

No known issues

Overview
Quality
Evals
Security
Files

css-variables-reference.mdskills/starlight-theme/references/

Starlight CSS Variables Reference

Key --sl-* custom properties available for theming. Full list: props.css on GitHub.

Color Variables

Accent Colors (links, active nav, buttons)

VariableDefault usage
--sl-color-accent-lowSubtle accent backgrounds
--sl-color-accentPrimary accent (links, highlights)
--sl-color-accent-highHigh-contrast accent (text on dark bg)

Background Colors

VariableDefault usage
--sl-color-bgPage background
--sl-color-bg-navHeader/nav background
--sl-color-bg-sidebarSidebar background
--sl-color-bg-inline-codeInline code background

Text Colors

VariableDefault usage
--sl-color-textDefault text
--sl-color-text-accentAccent text
--sl-color-gray-1 through --sl-color-gray-7Gray scale
--sl-color-whitePure white
--sl-color-blackPure black

Typography Variables

VariableDefault
--sl-fontSystem sans-serif
--sl-font-monoSystem monospace
--sl-text-xs0.8125rem
--sl-text-sm0.875rem
--sl-text-base1rem
--sl-text-lg1.125rem
--sl-text-xl1.25rem
--sl-text-2xl1.5rem
--sl-text-3xl1.875rem
--sl-text-4xl2.25rem
--sl-text-5xl3rem

Layout Variables

VariableDefault
--sl-content-width45rem
--sl-sidebar-width18.75rem
--sl-toc-width14rem

Dark Mode Selectors

SelectorWhen active
:root[data-theme='light']Light mode (default)
:root[data-theme='dark']Dark mode (user toggled or system preference)

Never use .dark { } selectors — Starlight does not apply that class.

Tailwind Theme Mapping

When using @astrojs/starlight-tailwind, these Tailwind tokens map to Starlight:

Tailwind tokenStarlight variable
--color-accent-*--sl-color-accent-*
--color-gray-*--sl-color-gray-*
--font-sans--sl-font
--font-mono--sl-font-mono

Custom Fonts

Fontsource (recommended):

npm install @fontsource/inter
customCss: ['@fontsource/inter/400.css', '@fontsource/inter/600.css'],
:root { --sl-font: 'Inter', sans-serif; }

Local files: Use @font-face with font-display: swap and register via customCss.

Color Theme Editor

Use the Starlight color theme editor to generate accent/gray palettes without manual color math.

skills

tile.json