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:
| Feature | Default Theme | Classic Theme |
|---|---|---|
| Border radius | 6px | 3px |
| Focus indicator | Blue ring | Blue bottom border |
| Selected items | Pill-shaped badges | Flat inline text |
| Dropdown shadow | Elevated | Subtle |
| Font size | 0.875rem | Inherits from parent |
| Arrow icon | Chevron SVG | CSS 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
| Variable | Value | Description |
|---|---|---|
$ds-primary-color | #2563eb | Primary accent |
$ds-border-color | #c6c6c6 | Border color |
$ds-border-radius | 3px | Border radius |
$ds-font-family | inherit | Inherits from parent |
$ds-font-size | inherit | Inherits from parent |
$ds-dropdown-shadow | 0 2px 4px rgba(0,0,0,0.08) | Subtle shadow |
$ds-focus-border-color | #2563eb | Bottom 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.