MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / cloneTheme

Function cloneTheme

packages/core/src/theme/__tests__/theme.extend.test.ts:8–10  ·  view source on GitHub ↗
(theme: ThemeDefinition)

Source from the content-addressed store, hash-verified

6import type { ThemeDefinition } from "../tokens.js";
7
8function cloneTheme(theme: ThemeDefinition): ThemeDefinition {
9 return JSON.parse(JSON.stringify(theme)) as ThemeDefinition;
10}
11
12describe("theme.extend", () => {
13 test("single token override updates only that token", () => {

Callers 1

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected