A flexible container component matching the CodeSignal Design System.
Import the CSS file in your HTML or CSS:
<link rel="stylesheet" href="/design-system/components/boxes/boxes.css">or
@import url('/design-system/components/boxes/boxes.css');.box: The base class required for all box containers. Provides default padding, radius, and background.
.box.selected: Selected state with a primary color border..box.emphasized: Emphasized state with a neutral border (useful for active states)..box.shadowed: Adds a soft shadow (--Colors-Shadow-Soft)..box.card: Adds a card-style shadow (--Colors-Shadow-Card)..box.input-group: Input group variant with reduced padding and gap spacing, designed for grouping input elements together..box.non-interactive: Disables hover, focus, and active state changes. Useful for containers that are not clickable/interactive. Can be combined with other variants (e.g.,.box.card.non-interactive).
The component supports standard pseudo-classes (:hover, :focus, :active) and utility classes for manual state application:
.hover.focus.selected(acts as active/checked state)
Note: The .non-interactive class overrides all interactive states, preventing visual changes on hover, focus, or active.
<!-- Default Box -->
<div class="box">
Content
</div>
<!-- Selected Box -->
<div class="box selected">
Selected Content
</div>
<!-- Card Style Box -->
<div class="box card">
Card Content
</div>
<!-- Input Group Box -->
<div class="box input-group">
<input type="text" class="input" placeholder="Input 1">
<input type="text" class="input" placeholder="Input 2">
</div>
<!-- Non-Interactive Card Box -->
<div class="box card non-interactive">
This box maintains its card styling but doesn't change on hover/focus.
</div>This component relies on variables from:
design-system/colors/colors.cssdesign-system/spacing/spacing.css