About this set
Switches drawn with paired light and dark shadows instead of borders, in the soft or neumorphic style, on a matched #e6e9ef grey ground. The soft pill has an inset track and a raised knob that turns blue as it slides across. The push button is a 64 pixel round button with a power glyph that looks raised when off and pressed in when on, with the glyph turning blue. The inset track is a slim 22 pixel groove with an oversized 34 pixel knob that turns green, a shape that reads well on touch devices. Use them in dashboards, smart home and music interfaces that already use the soft style, since the shadows only work on the matching background colour. Each control is a visually hidden checkbox followed by an element whose box shadows change with :checked. In Bootstrap the pill is a .form-switch with an SVG knob and the push button is a .btn-check with a .btn, and in Tailwind the shadows are theme tokens.
What’s included
- Soft pill, push button and slim inset track
- Raised and pressed states drawn with paired shadows
- Power glyph darkened so it reaches 4.5:1 on the grey ground
- Knob colour marks the on state, not only the shadow
- Shadow values stored as Tailwind theme tokens
Accessibility
The switches use role="switch" and the push buttons are checkboxes named Power, each with an aria-label. Tab and Space work as for any checkbox, and focus draws a 2px blue outline around the visible control, widened on the inset track so it clears the large knob. The soft style keeps low-contrast edges by design, so the on state is also shown by the knob or glyph colour. Transitions are removed under prefers-reduced-motion.
Customise it
The ground colour #e6e9ef and the shadow colours #c5c9d1 and white must change together; they are in .nb, .np and .ns (plain CSS and Bootstrap) and in the --color-soft and --shadow-soft-* theme tokens (Tailwind). The on colours are #2563eb, #1d4ed8 and #15803d.






