theme-elements

Theme Switcher Elements

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "theme-elements" with this command: npx skills add crafter-station/elements/crafter-station-elements-theme-elements

Theme Switcher Elements

6 theme switcher variants. Requires next-themes (auto-installed).

Install Pattern

npx shadcn@latest add @elements/theme-switcher-{variant}

Variants

Variant Install Description

Button @elements/theme-switcher-button

Simple icon button

Classic @elements/theme-switcher-classic

Classic toggle with label

Dropdown @elements/theme-switcher-dropdown

Dropdown menu with options

Multi-Button @elements/theme-switcher-multi-button

Button group (Light/Dark/System)

Switch @elements/theme-switcher-switch

Toggle switch

Toggle @elements/theme-switcher-toggle

Animated toggle

Quick Patterns

Minimal (navbar icon)

npx shadcn@latest add @elements/theme-switcher-button

Full control

npx shadcn@latest add @elements/theme-switcher-dropdown

Settings page

npx shadcn@latest add @elements/theme-switcher-multi-button

Setup

Requires ThemeProvider from next-themes wrapping your app in the root layout:

import { ThemeProvider } from "next-themes";

export default function Layout({ children }) { return ( <ThemeProvider attribute="class" defaultTheme="system" enableSystem> {children} </ThemeProvider> ); }

All variants are hydration-safe by default.

Discovery

Browse https://tryelements.dev/docs/theme

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

tech-logos

No summary provided by upstream source.

Repository SourceNeeds Review
General

logo-with-variants

No summary provided by upstream source.

Repository SourceNeeds Review
General

create-element

No summary provided by upstream source.

Repository SourceNeeds Review
General

sfx-elements

No summary provided by upstream source.

Repository SourceNeeds Review