Files
dt-design-system/packages/web
michael 766266b799 Apply inner bevel clip-path to model-viewer and iframe elements
Extend the .dt-bevel-media inner clip-path selector to cover
model-viewer and iframe children, matching the existing treatment
for img and video. Without this, 3D viewers and embedded video
iframes filled edge-to-edge and covered the neon bevel border.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-11 13:26:48 -07:00
..
2026-03-03 17:59:56 -08:00
2026-03-07 18:44:38 +00:00

@dangerousthings/web

Web CSS themes and components for the Dangerous Things design system — bevels, animations, and form styles powered by CSS custom properties.

Install

npm install @dangerousthings/web

Usage

Import the full bundle (base tokens + all components):

@import "@dangerousthings/web";

Or import individual pieces:

/* Brand tokens */
@import "@dangerousthings/web/tokens/dt.css";

/* Individual components */
@import "@dangerousthings/web/components/bevels.css";
@import "@dangerousthings/web/components/forms-dt.css";

Switching Brands

Swap the token import to change the entire look:

/* Neon cyberpunk */
@import "@dangerousthings/web/tokens/dt.css";

/* Dark navy + magenta */
@import "@dangerousthings/web/tokens/classic.css";

Theme Registry (JS)

For runtime theme switching:

import { themes, brands } from "@dangerousthings/web/theme-registry";

CSS Modules

File Description
bevels.css Angular clip-path bevels for cards, buttons, labels, modals, drawers. Card color modes, selected states, progress bars, badge overlays, interactive bevel buttons
forms-dt.css Text inputs, checkboxes, switches, radio buttons, progress bars, accordions, steppers, menu items, filter headers, filter overlays
animations.css Entrance animations (scale-in, fade-in, slide-up), interactive animations (pulse, ping, spin), stagger container, transition utilities
scrollbar.css Thin neon scrollbar styling scoped under [data-brand="dt"]
feature-legend.css Product feature grid with icons and rotated labels, state-based coloring

Key Classes

Bevels.dt-bevel-card, .dt-bevel-btn, .dt-bevel-label, .dt-bevel-modal, .dt-bevel-drawer-left, .dt-bevel-drawer-right, .dt-bevel-sm

Card Modes.mode-normal, .mode-emphasis, .mode-warning, .mode-success, .mode-other, .card.selected, .dt-card-progress, .dt-badge-overlay

Interactive Buttons.dt-btn (outlined rectangle, bevels on hover/select)

Animations.dt-animate-scale-in, .dt-animate-fade-in, .dt-animate-slide-up, .dt-animate-pulse, .dt-animate-ping, .dt-animate-spin, .dt-stagger-container

Scrollbar.dt-scrollbar, .dt-scrollbar-mode

Filters.dt-menu-item, .dt-filter-header, .dt-filter-overlay

Exports

Path Description
@dangerousthings/web Full CSS bundle (base + all components)
@dangerousthings/web/tokens/* Per-brand CSS custom properties
@dangerousthings/web/components/* Individual CSS component modules
@dangerousthings/web/fonts/* Tektur font files
@dangerousthings/web/theme-registry JS theme definitions for runtime switching

License

MIT