Skip to content

Classic Theme

The Classic theme provides a traditional, understated select appearance with subtle enhancements. It is designed for applications where the select should blend in with standard native form controls.

Usage

CDN

html
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/dot-select@latest/dist/css/themes/classic.min.css">

npm

js
import 'dot-select/dist/css/themes/classic.min.css';

SCSS

scss
@import 'dot-select/src/scss/themes/classic';

Characteristics

The Classic theme differs from the Default theme in several ways:

FeatureDefault ThemeClassic Theme
Border radius6px3px
Focus indicatorBlue ringBlue bottom border
Selected itemsPill-shaped badgesFlat inline text
Dropdown shadowElevatedSubtle
Font size0.875remInherits from parent
Arrow iconChevron SVGCSS triangle

Example

Multiple Select (Classic Style)

In multiple mode, the Classic theme displays selected items as a comma-separated list rather than individual badges:

This renders as: Engineering, Design in the control, rather than individual badge elements.

Variables

VariableValueDescription
$ds-primary-color#2563ebPrimary accent
$ds-border-color#c6c6c6Border color
$ds-border-radius3pxBorder radius
$ds-font-familyinheritInherits from parent
$ds-font-sizeinheritInherits from parent
$ds-dropdown-shadow0 2px 4px rgba(0,0,0,0.08)Subtle shadow
$ds-focus-border-color#2563ebBottom border on focus

Customizing

scss
$ds-primary-color: #059669;
$ds-border-radius: 0;

@import 'dot-select/src/scss/themes/classic';

TIP

The Classic theme is a good choice for enterprise applications, content management systems, and any project where a minimal, traditional form appearance is preferred.

MIT Licensed