Remove supra brand from design system
Supra (VivoKey MD3 theme) has been extracted into a standalone Dangerous-Pi theme plugin. Remove all supra references from tokens, web CSS, showcase apps, and documentation. - Delete supra brand tokens and elevation.css - Update ThemeBrand type to "dt" | "classic" - Remove supra from CSS generation, imports, and bevels - Update CLAUDE.md and package READMEs Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -10,13 +10,12 @@ npm install @dangerousthings/tokens
|
||||
|
||||
## Brands
|
||||
|
||||
Three brand themes are included:
|
||||
Two brand themes are included:
|
||||
|
||||
| Brand | Description |
|
||||
|-------|-------------|
|
||||
| **dt** | Neon cyberpunk — Tektur font, beveled corners, cyan/yellow/magenta palette |
|
||||
| **classic** | Dark navy with magenta accents, standard border radius |
|
||||
| **supra** | Material Design 3 — VivoKey blue, rounded corners, elevation shadows |
|
||||
|
||||
Each brand provides dark and light mode values.
|
||||
|
||||
@@ -37,7 +36,7 @@ Import all brands at once:
|
||||
```ts
|
||||
import { brands } from "@dangerousthings/tokens";
|
||||
|
||||
Object.keys(brands); // ["dt", "classic", "supra"]
|
||||
Object.keys(brands); // ["dt", "classic"]
|
||||
```
|
||||
|
||||
### Types
|
||||
@@ -63,10 +62,8 @@ This provides custom properties like `--color-primary`, `--color-primary-rgb`, `
|
||||
| `@dangerousthings/tokens` | All brands, theme definitions, and types |
|
||||
| `@dangerousthings/tokens/brands/dt` | DT brand tokens |
|
||||
| `@dangerousthings/tokens/brands/classic` | Classic brand tokens |
|
||||
| `@dangerousthings/tokens/brands/supra` | Supra brand tokens |
|
||||
| `@dangerousthings/tokens/css/dt.css` | DT CSS custom properties |
|
||||
| `@dangerousthings/tokens/css/classic.css` | Classic CSS custom properties |
|
||||
| `@dangerousthings/tokens/css/supra.css` | Supra CSS custom properties |
|
||||
|
||||
## Token Categories
|
||||
|
||||
|
||||
@@ -1,66 +0,0 @@
|
||||
import type { BrandTokens } from "../types.js";
|
||||
|
||||
export const supra: BrandTokens = {
|
||||
id: "supra",
|
||||
name: "VivoKey Supra",
|
||||
description: "Material Design 3 with VivoKey blue, rounded corners, elevation shadows",
|
||||
|
||||
dark: {
|
||||
bg: "#000000",
|
||||
surface: "#28292E",
|
||||
surfaceHover: "#303136",
|
||||
border: "#42667E",
|
||||
|
||||
textPrimary: "#ffffff",
|
||||
textSecondary: "#e2e8f0",
|
||||
textMuted: "#94a3b8",
|
||||
|
||||
primary: "#42667E",
|
||||
primaryDim: "#385872",
|
||||
secondary: "#8BAEC7",
|
||||
accent: "#8BAEC7",
|
||||
other: "#F67448",
|
||||
|
||||
success: "#8BB174",
|
||||
warning: "#F67448",
|
||||
error: "#ED4337",
|
||||
info: "#42667E",
|
||||
},
|
||||
|
||||
light: {
|
||||
bg: "#ffffff",
|
||||
surface: "#AFB8C2",
|
||||
surfaceHover: "#C5CCD4",
|
||||
border: "#000000",
|
||||
|
||||
textPrimary: "#000000",
|
||||
textSecondary: "#374151",
|
||||
textMuted: "#6b7280",
|
||||
|
||||
primary: "#000000",
|
||||
primaryDim: "#1f2937",
|
||||
secondary: "#F67448",
|
||||
accent: "#FDFE1B",
|
||||
other: "#F67448",
|
||||
|
||||
success: "#8BB174",
|
||||
warning: "#F67448",
|
||||
error: "#ED4337",
|
||||
info: "#42667E",
|
||||
},
|
||||
|
||||
typography: {
|
||||
heading: "var(--font-sans)",
|
||||
body: "var(--font-sans)",
|
||||
mono: "'SF Mono', Monaco, 'Cascadia Code', monospace",
|
||||
},
|
||||
|
||||
shape: {
|
||||
bevelSm: "0px",
|
||||
bevelMd: "0px",
|
||||
bevelLg: "0px",
|
||||
radiusSm: "0.5rem",
|
||||
radius: "0.625rem",
|
||||
radiusLg: "0.75rem",
|
||||
},
|
||||
};
|
||||
@@ -10,15 +10,13 @@ export type {
|
||||
|
||||
export { dt } from "./brands/dt.js";
|
||||
export { classic } from "./brands/classic.js";
|
||||
export { supra } from "./brands/supra.js";
|
||||
|
||||
import { dt } from "./brands/dt.js";
|
||||
import { classic } from "./brands/classic.js";
|
||||
import { supra } from "./brands/supra.js";
|
||||
import type { BrandTokens, ThemeDefinition } from "./types.js";
|
||||
|
||||
/** All brand tokens keyed by id */
|
||||
export const brands: Record<string, BrandTokens> = { dt, classic, supra };
|
||||
export const brands: Record<string, BrandTokens> = { dt, classic };
|
||||
|
||||
/** Theme registry for UI selectors */
|
||||
export const themes: ThemeDefinition[] = [
|
||||
@@ -36,11 +34,4 @@ export const themes: ThemeDefinition[] = [
|
||||
supportsModes: ["dark", "light", "auto"],
|
||||
defaultMode: "dark",
|
||||
},
|
||||
{
|
||||
id: "supra",
|
||||
name: supra.name,
|
||||
description: supra.description,
|
||||
supportsModes: ["dark", "light", "auto"],
|
||||
defaultMode: "dark",
|
||||
},
|
||||
];
|
||||
|
||||
@@ -9,7 +9,6 @@ import { fileURLToPath } from "node:url";
|
||||
import type { BrandTokens, ColorTokens } from "../types.js";
|
||||
import { dt } from "../brands/dt.js";
|
||||
import { classic } from "../brands/classic.js";
|
||||
import { supra } from "../brands/supra.js";
|
||||
|
||||
const __dirname = dirname(fileURLToPath(import.meta.url));
|
||||
const outDir = join(__dirname, "..", "css");
|
||||
@@ -119,7 +118,7 @@ function generateBrandCSS(brand: BrandTokens): string {
|
||||
// --- Main ---
|
||||
mkdirSync(outDir, { recursive: true });
|
||||
|
||||
for (const brand of [dt, classic, supra]) {
|
||||
for (const brand of [dt, classic]) {
|
||||
const css = generateBrandCSS(brand);
|
||||
const path = join(outDir, `${brand.id}.css`);
|
||||
writeFileSync(path, css, "utf-8");
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/** Brand identifiers */
|
||||
export type ThemeBrand = "dt" | "classic" | "supra";
|
||||
export type ThemeBrand = "dt" | "classic";
|
||||
|
||||
/** Color mode */
|
||||
export type ThemeMode = "dark" | "light" | "auto";
|
||||
|
||||
Reference in New Issue
Block a user