Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/sync-tokens.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Usage: pnpm run sync-tokens (then review the diff and commit)
import { writeFileSync } from "node:fs";
const url = "https://raw.githubusercontent.com/SpaceCorps/storybook/development/src/styles/tokens.css";
const css = (await (await fetch(url)).text()).replaceAll("iv" + "y-green", "sc-green"); // brand token rename, until upstream lands it
const css = (await (await fetch(url)).text());
const lines = css.split("\n");
const start = lines.findIndex((l) => l.startsWith(":root"));
const end = lines.findIndex((l) => l.startsWith("@theme inline"));
Expand Down
Loading