About this set
Four dark buttons whose border is the effect. Conic border rotates an indigo, cyan and rose conic gradient behind a 2 pixel gap, animating a registered –bd-angle custom property. Gradient inset draws a cyan to violet border with two backgrounds, one clipped to the padding box and one to the border box, and flips the gradient’s direction on hover. Drawn outline sits in a grey frame and traces a cyan line all the way round it on hover or keyboard focus. Dashed march has a dashed indigo border whose dashes travel round the button while it is hovered. The last two draw their line with an SVG rect laid over the border, stroke-dasharray and stroke-dashoffset, so the line follows the rounded corners exactly. Use Conic border for a single standout action, Gradient inset where the motion would distract, and the drawn and dashed styles for secondary actions on dark landing pages. The Bootstrap version restyles .btn through the –bs-btn-* variables and keeps the border effects in a small stylesheet, and the Tailwind version registers the angle property and keyframes in its theme and uses group-hover on the SVG.
What’s included
- Rotating conic-gradient border using a registered custom property
- Gradient border from padding-box and border-box backgrounds
- Outline traced around all four sides on hover and focus
- Dashed border whose dashes travel on hover
- Every animation stops under reduced motion
Accessibility
All four are native buttons with visible text, and the SVG frames are aria-hidden. Label contrast is at least 11:1, the grey frame of the drawn outline was lightened to #646d82 and the dashes to #6366f1 so both reach 3:1 against the page. Keyboard focus draws a 2px light indigo outline, and the drawn outline also traces on focus. Under prefers-reduced-motion the conic rotation, the drawing transition and the marching dashes are all switched off.
Customise it
Change the gradient stops in .bd-conic::before and .bd-grad, the stroke colours in .bd-draw rect and .bd-march rect, and the timing in the bd-spin and bd-march animations. In Bootstrap the fill and text colours are --bs-btn-bg and --bs-btn-color on .bd; in Tailwind edit the stroke- utilities and the animations in the @theme block.

















