
Security News
US Government Forces Anthropic to Pull Claude Fable Days After Launch
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.
@pie-players/pie-theme
Advanced tools
Shared PIE theme tokens, css variables, and theme custom element
Shared PIE theming primitives and the pie-theme custom element.
pie-theme resolves canonical PIE variables (--pie-*) with this precedence:
theme=light|dark|auto)scheme)variables overridesimport "@pie-players/pie-theme";
import "@pie-players/pie-theme/tokens.css";
import "@pie-players/pie-theme/color-schemes.css";
import "@pie-players/pie-theme/font-sizes.css";
<pie-theme theme="auto" scope="document">
<pie-section-player></pie-section-player>
</pie-theme>
theme: light | dark | autoscope: self | documentprovider: provider id or auto (default)scheme: color scheme id (default by default)variables: JSON object of CSS variable overridesimport {
registerPieThemeProvider,
type ThemeProviderAdapter,
} from "@pie-players/pie-theme";
const myProvider: ThemeProviderAdapter = {
id: "district-theme",
canRead: (target) => Boolean(getComputedStyle(target).getPropertyValue("--district-primary").trim()),
read: (target) => ({
"--pie-primary": getComputedStyle(target).getPropertyValue("--district-primary").trim(),
}),
};
registerPieThemeProvider(myProvider);
Register consumer-defined schemes without modifying framework source:
import { registerPieColorSchemes } from "@pie-players/pie-theme";
registerPieColorSchemes([
{
id: "district-high-contrast",
name: "District High Contrast",
description: "District accessibility palette",
variables: {
"--pie-background": "#000000",
"--pie-text": "#ffffff",
"--pie-primary": "#00ffff",
},
preview: {
bg: "#000000",
text: "#ffffff",
primary: "#00ffff",
},
},
]);
Then activate with scheme="district-high-contrast" on pie-theme.
pie-theme uses the built-in daisyui provider adapter.variables.--pie-* variables are the stable runtime contract for all components.--pie-* internally; variables inherit across shadow boundaries through the host.Use @pie-players/pie-theme/components.css for shared visual styles that are intentionally reused across multiple PIE custom elements.
pie-* class families include:
pie-section-player-tools-pnp-debugger*pie-section-player-tools-session-debugger*pie-answer-eliminator-* and pie-answer-masked-*pie-* / data-pie-* hooks in component markup; avoid introducing new generic class contracts.FAQs
Shared PIE theme tokens, css variables, and theme custom element
We found that @pie-players/pie-theme demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.

Security News
A network of 152 Chrome live wallpaper extensions hid ad tracking and made extension-driven traffic look like Google search clicks.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.