Catalog npm
PACKAGE EXPLORERView in registry

@0rbt/theme

npm

Theme state controller.

darklightorbittheme
Versions collected1
Direct dependencies8From release 0.1.0-beta.2
Last observed20 Oct, 22:14 UTC

README

Current package documentation

Theme controller

A controller for managing the theming for applications.

Installation

pnpm add @0rbt/theme

Usage

import { Controller } from "@0rbt/theme";
import { Button } from "@0rbt/theme/adapters";

const ctl = new Controller(document, {
	// all configs are optional
	storage: { key: "theme" },
	attribute: "data-theme",
	initial: "dark",
	dark: "dark",
	light: "light",
	system: "system",
});

ctl.use(Button); // use adapters

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.0-beta.2Registry latest11 Feb 20268

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
0rbt/theme

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:14 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:581524b4df9a2f3ea2386007357736183a5349be7e4da32b1f8b1ffe40bb3cdf