Vueless Docs
ComponentsGitHubWebsite
  • Installation
    • Quick start (Vue)
    • Quick start (Nuxt)
    • Class autocompletion
    • Minimal requirements
    • Storybook docs
  • Global customization
    • General
    • Colors
    • Rounding
    • Focus Outline
    • Dark mode
    • Base Classes
    • Custom tailwind classes
  • Component customization
    • General
    • Styling
    • Conditional styling
    • Extends styling from keys
    • Nested components styling
    • Classes smart merging
    • Props defaults
    • Redefining props
    • Defining custom props
    • Internationalization (i18n)
  • Creating own components
    • Vueless file structure
    • Create new component
    • Copy existing component
  • Svg Icons
    • General usage
    • Custom icons
    • Dynamic import
    • Advanced settings
  • Helpers
    • Change settings in runtime
Powered by GitBook
On this page
  • Custom tailwind classes
  • CSS variables
  1. Global customization

Focus Outline

You can set the focus outline width globally for all Vueless components.

vueless.config.{js,ts}
export default {
  outlineSm: 2,
  outline: 4, /* default -> 2 (pixels) */
  outlineLg: 6,
}

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 3 months ago