# Astro Eclipse > Animated theme switching for Astro, built on View Transitions. ## Docs - [Introduction](https://astro-eclipse-docs.vercel.app/): Animated theme switching for Astro, built on View Transitions. - [Getting started](https://astro-eclipse-docs.vercel.app/getting-started): Install Astro Eclipse, add the integration, write the theme CSS and switch themes from a button. - [Changelog](https://astro-eclipse-docs.vercel.app/changelog): Every release of Astro Eclipse, newest first. ## Guides - [CSS variables](https://astro-eclipse-docs.vercel.app/guides/css-variables): Define each theme with custom properties selected by the data-theme attribute. - [Tailwind](https://astro-eclipse-docs.vercel.app/guides/tailwind): Use dark mode utilities with Astro Eclipse, with the class attribute and the Tailwind 4 custom variant. - [shadcn/ui](https://astro-eclipse-docs.vercel.app/guides/shadcn): Use shadcn/ui components and their dark variables with Astro Eclipse, with the class attribute. - [ThemeToggle](https://astro-eclipse-docs.vercel.app/guides/theme-toggle): A ready-made button that cycles themes, with an accessible name that says where it will go. - [ThemeSelect](https://astro-eclipse-docs.vercel.app/guides/theme-select): A native select that lists your themes and a System option, so visitors can pick one directly. - [ThemeRadio](https://astro-eclipse-docs.vercel.app/guides/theme-radio): A radio group that shows every theme and a System option at once, with native keyboard behavior. - [Headless controls](https://astro-eclipse-docs.vercel.app/guides/headless): Switch themes from plain HTML, markdown or CMS content with a data attribute, with no script of your own. - [Forced theme](https://astro-eclipse-docs.vercel.app/guides/forced-theme): Pin a page to one theme without changing the visitor's saved choice, and stop CSS transitions from lagging behind a theme change. - [Browser chrome](https://astro-eclipse-docs.vercel.app/guides/browser-chrome): Keep native controls, scrollbars and the mobile address bar in step with the theme with colorScheme and themeColor. - [Content security policy](https://astro-eclipse-docs.vercel.app/guides/csp): What a strict Content-Security-Policy needs to run the Astro Eclipse head script, tested with Astro's CSP support and with a hand-written policy. - [Transitions](https://astro-eclipse-docs.vercel.app/guides/transitions): The built-in effects, and how to set the origin, duration and easing, with the cases where the theme switches instantly. - [Custom transitions](https://astro-eclipse-docs.vercel.app/guides/custom-transition): Register your own effect with defineTransition, with a worked example. - [Framework islands](https://astro-eclipse-docs.vercel.app/guides/framework-islands): A useTheme hook for React, Vue, Svelte and Solid built on getTheme and onThemeChange. - [ClientRouter](https://astro-eclipse-docs.vercel.app/guides/clientrouter): How the theme survives navigation with Astro's ClientRouter, and the one assumption this relies on. - [Multi-page sites](https://astro-eclipse-docs.vercel.app/guides/multi-page): What Astro Eclipse guarantees when your site does not use ClientRouter, including cross-document view transitions. - [Accessibility](https://astro-eclipse-docs.vercel.app/guides/accessibility): Naming the toggle, announcing theme changes, reduced motion, forced colors and contrast. - [Browser support](https://astro-eclipse-docs.vercel.app/guides/browser-support): Which browsers run the animation, what happens without it, and what has been checked. - [Migrating](https://astro-eclipse-docs.vercel.app/guides/migrating): Move from astro-color-scheme, astro-theme-toggle or a hand-written script without losing your visitors' saved theme. ## Reference - [Config](https://astro-eclipse-docs.vercel.app/reference/config): Every option of the eclipse() integration, with types, defaults and the errors it throws. - [Client API](https://astro-eclipse-docs.vercel.app/reference/client-api): setTheme, toggleTheme, getTheme, getPreference, getSystemTheme, themes, onThemeChange, defineTransition and getTransition, with signatures and error cases. - [Head script](https://astro-eclipse-docs.vercel.app/reference/head-script): What the inline script injected into every page does, how big it is and how it handles storage failure. ## Agent skills - [astro-eclipse](https://astro-eclipse-docs.vercel.app/.well-known/agent-skills/astro-eclipse/SKILL.md): Read the Astro Eclipse docs instead of answering from memory. Animated theme switching for Astro, built on View Transitions. Use when a task involves Astro Eclipse: how it works, how to set it up or configure it, or its API. ## Agent resources - [llms-full.txt](https://astro-eclipse-docs.vercel.app/llms-full.txt): The full Markdown of every page in one file. - [Page Markdown](https://astro-eclipse-docs.vercel.app/index.md): Append `.md` to any page URL to fetch that page as raw Markdown. - [JSON API](https://astro-eclipse-docs.vercel.app/api/docs/pages.json): Page index of the JSON docs API; each entry links the page's JSON and Markdown forms. Described by the OpenAPI document at https://astro-eclipse-docs.vercel.app/openapi.json. - [Agent skills](https://astro-eclipse-docs.vercel.app/.well-known/agent-skills/index.json): Agent Skills discovery index of the skills this site publishes. - [API catalog](https://astro-eclipse-docs.vercel.app/.well-known/api-catalog): RFC 9727 linkset of the APIs documented here. - [AI catalog](https://astro-eclipse-docs.vercel.app/.well-known/ai-catalog.json): ARD manifest of the agent-facing resources on this site (MCP server, skills, APIs). - [agent-readability.json](https://astro-eclipse-docs.vercel.app/agent-readability.json): Manifest of every agent-facing artifact on this site. - [Sitemap](https://astro-eclipse-docs.vercel.app/sitemap.xml): Every indexable page URL with its last-modified date.