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:
michael
2026-03-04 10:36:04 -08:00
parent da84736b4b
commit baf8cd3b2a
11 changed files with 308 additions and 197 deletions

View File

@@ -126,7 +126,7 @@
}
[data-brand="dt"] .btn-secondary:hover::before {
background: rgba(var(--color-primary-rgb), 0.1);
background: var(--color-surface-hover);
}
/* ============================================================================
@@ -187,6 +187,18 @@
--badge-fill: rgba(var(--color-info-rgb), 0.25);
}
/* ============================================================================
Badge text override for Classic — ensure readable text in light mode
Status-color text on 25% opacity backgrounds fails WCAG AA on light bg.
Use primary text color instead (same approach as DT badges above).
============================================================================ */
[data-brand="classic"] .badge-success,
[data-brand="classic"] .badge-error,
[data-brand="classic"] .badge-warning,
[data-brand="classic"] .badge-info {
color: var(--color-text-primary);
}
/* ============================================================================
Opt-in Bevel Utility Classes
Use these for custom elements that need bevel shapes

View File

@@ -1,96 +0,0 @@
/* dt-web-theme: Supra Elevation & MD3 Styles */
/* Source: react-native-supra-theme/src/theme/paperTheme.ts */
/* Rounded Material Design 3 aesthetic with elevation shadows */
/* ============================================================================
Card Elevation
============================================================================ */
[data-brand="supra"] .card {
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);
border-radius: var(--radius-lg);
}
[data-brand="supra"] .card:hover {
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.22);
}
/* ============================================================================
Button — Dual-layer inset shadow (hardware button feel)
Source: SupraButton.tsx — inner shadow for tactile appearance
============================================================================ */
[data-brand="supra"] .btn-primary {
box-shadow:
inset -2px -2px 4px rgba(0, 0, 0, 0.18),
inset 2px 2px 4px rgba(255, 255, 255, 0.25);
border-radius: var(--radius);
}
[data-brand="supra"] .btn-primary:hover {
box-shadow:
inset -2px -2px 6px rgba(0, 0, 0, 0.22),
inset 2px 2px 6px rgba(255, 255, 255, 0.3);
transform: translateY(-1px);
}
[data-brand="supra"] .btn-secondary {
border-radius: var(--radius);
}
[data-brand="supra"] .btn-danger {
border-radius: var(--radius);
}
/* ============================================================================
Badge — Rounded pill (MD3 chip style)
============================================================================ */
[data-brand="supra"] .badge {
border-radius: 8px;
}
/* ============================================================================
Input — Rounded with standard focus ring
============================================================================ */
[data-brand="supra"] .input,
[data-brand="supra"] input,
[data-brand="supra"] textarea,
[data-brand="supra"] select {
border-radius: var(--radius);
}
[data-brand="supra"] .input:focus,
[data-brand="supra"] input:focus,
[data-brand="supra"] textarea:focus,
[data-brand="supra"] select:focus {
box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.2);
}
/* ============================================================================
Terminal — Rounded with subtle elevation
============================================================================ */
[data-brand="supra"] .terminal {
border-radius: var(--radius);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);
}
/* ============================================================================
Elevation Utility Classes
============================================================================ */
.supra-elevation-1 {
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
.supra-elevation-2 {
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);
}
.supra-elevation-3 {
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.22);
}
.supra-elevation-4 {
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}
.supra-elevation-5 {
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}