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
  • Colors
  • Rounding
  • Focus Outline
  • Dark mode
  1. Global customization

General

Last updated 3 months ago

To customize the look and feel of Vueless and modify the default library configuration, use the vueless.config.{js,ts} file, which should be placed in the root folder of your project.


Colors

Components are based on a brand color and gray color.

vueless.config.{js,ts}
export default {
  brand: "blue",
  gray: "stone",
}

Vueless uses Tailwind CSS under the hood, so you can use any of the or your own custom colors. See chapter for more details.


Rounding

You can set the border-radiuses globally for all Vueless components.

vueless.config.{js,ts}
export default {
  roundingSm: 4, /* px */
  rounding: 6,   /* px */
  roundingLg: 8, /* px */
}

Focus Outline

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

vueless.config.{js,ts}
export default {
  outlineSm: 2, /* px */
  outline: 4, /* px */
  outlineLg: 6, /* px */
}

Dark mode

You can set the dark mode globally for all Vueless components.

vueless.config.{js,ts}
export default {
  colorMode: "dark", /* dark | light | auto */
}

See chapter for more details.

See chapter for more details.

See chapter for more details.

Tailwind CSS colors
Colors
Rounding
Dark mode
Focus Outline