Focus Outline
You can set the focus outline width globally for all Vueless components.
vueless.config.{js,ts}
For outline
, outlineSm
and outlineLg
you can use any value in pixels.
If you define only the outline
value, outlineSm
and outlineLg
will be automatically calculated. The expected values are listed in the table below:
outlineLg
outline
outlineLg
0
0
0
0
1
2
1
2
3
2
3
4
3
4
5
4
5
6
5
6
7
Custom tailwind classes
To implement global ring styling, Vueless provides custom Tailwind CSS classes: outline-dynamic
, outline-dynamic-sm
and outline-dynamic-lg
. Feel free to use these classes in your components whenever you need consistent ring styling throughout your project.
CSS variables
You can also use the corresponding CSS variables directly:
--vl-outline
,--vl-outline-sm
,--vl-outline-lg
.
Last updated