starlight-theme

starlight-theme is a skill for Claude Code, Codex from pantheon-org/tekhne. It costs 52 tokens per session (1,765 once invoked), scanned A, original, MIT.

A guide for changing the colours, fonts, spacing, and light or dark appearance of an Astro Starlight documentation site. It uses CSS custom properties, reusable style settings shared across the site.

In plain words
What is it for?
It helps create a custom Starlight theme, load fonts, adjust layout values, and connect Tailwind CSS to the site.
Why use it?
It provides a consistent way to apply a brand style without rewriting every documentation component.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps create a custom Starlight theme, load fonts, adjust layout values, and connect Tailwind CSS to the site.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pantheon-org/tekhne/starlight-theme
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add pantheon-org/tekhne --skill starlight-theme
Clone the repo
git clone --depth 1 https://github.com/pantheon-org/tekhne

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for starlight-theme

README.md
[![agentmods](https://agentmods.dev/badge/skills/pantheon-org/tekhne/starlight-theme/github.svg)](https://agentmods.dev/skills/pantheon-org/tekhne/starlight-theme)
Your own site
<a href="https://agentmods.dev/skills/pantheon-org/tekhne/starlight-theme"><img src="https://agentmods.dev/badge/skills/pantheon-org/tekhne/starlight-theme/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for starlight-theme

Your own site · 80×15
<a href="https://agentmods.dev/skills/pantheon-org/tekhne/starlight-theme"><img src="https://agentmods.dev/badge/skills/pantheon-org/tekhne/starlight-theme.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,765 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium MCP Rug Pull · line 60
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00052 $0.01765
Opus 5.5 $0.00021 $0.00706
Sonnet 5.5 $0.00010 $0.00353
Haiku 4.5 $0.00005 $0.00177

Measured 2mo ago against content hash f9203444a212, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

starlight-theme scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/documentation/astro-starlight/skills/starlight-theme/SKILL.md · 182 lines

How it starts

The opening of the file, as written. The whole thing — 182 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Starlight Theming

Starlight exposes its entire visual design through CSS custom properties. Override any variable to change colors, typography, and layout — with or without Tailwind.

When to Use

  • Changing the color palette (accent color, grays, backgrounds)
  • Swapping fonts or adjusting text sizes
  • Applying a consistent brand identity
  • Integrating Tailwind CSS into a Starlight project

When Not to Use

  • Replacing entire UI sections (header, footer, sidebar) — use starlight-custom-component instead
  • Per-page layout changes without global theming intent

Philosophy

Starlight styles live in CSS cascade layers. Unlayered CSS always wins.

  • CSS custom properties are the API. Set --sl-* variables on :root to change every element that reads them. See css-variables-reference.md for the full list.
  • Cascade layers determine priority. Any CSS you add without an @layer block is unlayered and automatically takes precedence over Starlight's named layers.
  • Tailwind requires different wiring. The @astrojs/starlight-tailwind compatibility package must be imported before Tailwind's own CSS or Starlight's styles break.

Approach 1: Custom CSS File

Step 1 — Create the file:

/* src/styles/custom.css */
:root {
  --sl-color-accent-low: #1a1a4e;
  --sl-color-accent: #3d52d5;
  --sl-color-accent-high: #b4bffe;
  --sl-font: 'Inter', sans-serif;
  --sl-content-width: 50rem;
}

:root[data-theme='dark'] {
  --sl-color-bg: #0f172a;
}

Step 2 — Register in astro.config.mjs:

starlight({
  customCss: ['./src/styles/custom.css'],
})

Approach 2: Tailwind CSS Integration

npx astro add tailwind
npm install @astrojs/starlight-tailwind

Replace src/styles/global.css with:

@layer base, starlight, theme, components, utilities;

@import '@astrojs/starlight-tailwind';
@import 'tailwindcss/theme.css' layer(theme);
@import 'tailwindcss/utilities.css' layer(utilities);

@theme {
  --font-sans: 'Inter';
  --color-accent-500: var(--color-indigo-500);
  /* Map full accent and gray scales — see references for complete example */
}

Read the full file on GitHub · 182 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago Changed · +33 lines f9203444a212
  2. 3mo ago First seen · 149 lines · 52 tokens per session scan A eeb9a3066145

Subscribe to this mod's changes

starlight-theme is a skill published in the GitHub repository pantheon-org/tekhne (10 stars, last pushed 2d ago), licensed MIT. It adds 52 tokens to every session and 1,765 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

starlight-theme compared with skills from other repositories

starlight-theme next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
starlight-themepantheon-org/tekhneSkill102d agoMITA52Claude Code, Codex
playgroundanthropics/claude-plugins-officialSkill49ktodayApache-2.0A53Claude Code
frontend-ui-engineeringaddyosmani/agent-skillsSkill122k8d agoMITA58Claude Code
frontend-designanthropics/claude-plugins-officialSkill49ktodayApache-2.0A40Claude Code
web-design-engineerConardLi/garden-skillsSkill16k13d agoMITA96Codex
design-artifactplannotator/effective-htmlSkill4.4k8d agoMITA72Claude Code, Codex
html-prototypeplannotator/effective-htmlSkill4.4k8d agoMITA87Claude Code, Codex