Border Radius
Consistent corner radius values that create a cohesive and modern feel across Virtual Labs interfaces.
Stable
Border Radius Principles
Scientific Precision
Subtle radius values that don't distract from scientific data and measurements.
Hierarchy
Different radius values create visual hierarchy and component distinction.
Consistency
Standardized values ensure consistent appearance across all lab interfaces.
Border Radius Scale
Base Scale
Standard border radius tokens for all components
rounded-none
0px
Sharp edges, data tables
rounded-sm
2px
Small elements, badges
rounded
4px
Buttons, inputs
rounded-md
6px
Cards, panels
rounded-lg
8px
Modals, large cards
rounded-xl
12px
Hero sections
rounded-2xl
16px
Large containers
rounded-3xl
24px
Special elements
rounded-full
9999px
Pills, tags
Semantic Usage
Component Mapping
Recommended radius values for common components
button6px
card8px
input4px
modal12px
badge9999px
Lab-Specific Guidelines
Data Visualization
Use minimal radius (2-4px) for charts and graphs to maintain data precision.
Control Panels
Medium radius (6-8px) for control elements to balance usability and aesthetics.
Equipment Simulation
Varied radius to match real equipment shapes and maintain authenticity.
Status Indicators
Full radius for circular indicators, small radius for rectangular badges.
Visual Examples
Lab Interface Components
Large Card (rounded-lg)
Button (rounded)
Input (rounded-sm)
Status Badge (rounded-full)
Tag (rounded)
Data Display
Data Table (rounded-md)
Temperature25.4°C
Pressure1.2 atm
Alert Panel (rounded-xl)
Important lab safety information
Implementation
Tailwind CSS Classes
Border radius utility classes
/* All corners */
rounded-none /* 0px */
rounded-sm /* 2px */
rounded /* 4px */
rounded-md /* 6px */
rounded-lg /* 8px */
rounded-xl /* 12px */
rounded-2xl /* 16px */
rounded-3xl /* 24px */
rounded-full /* 9999px */
/* Individual corners */
rounded-t-lg /* top corners */
rounded-r-lg /* right corners */
rounded-b-lg /* bottom corners */
rounded-l-lg /* left corners */
/* Single corners */
rounded-tl-lg /* top-left */
rounded-tr-lg /* top-right */
rounded-bl-lg /* bottom-left */
rounded-br-lg /* bottom-right */CSS Custom Properties
Custom properties for border radius
:root {
/* Base radius scale */
--vl-radius-none: 0px;
--vl-radius-sm: 2px;
--vl-radius: 4px;
--vl-radius-md: 6px;
--vl-radius-lg: 8px;
--vl-radius-xl: 12px;
--vl-radius-2xl: 16px;
--vl-radius-3xl: 24px;
--vl-radius-full: 9999px;
/* Component-specific radius */
--vl-button-radius: var(--vl-radius-md);
--vl-card-radius: var(--vl-radius-lg);
--vl-input-radius: var(--vl-radius);
--vl-modal-radius: var(--vl-radius-xl);
--vl-badge-radius: var(--vl-radius-full);
}