Vueless Docs
ComponentsGitHubWebsite
  • Getting Started
  • Installation
    • Quick start (Vue)
    • Quick start (Nuxt)
    • Class autocompletion
    • Minimal requirements
    • Storybook docs
  • Global customization
    • General
    • Colors
    • Design system
    • Rounding
    • Focus Outline
    • Font Size
    • Disabled Opacity
    • Dark mode
    • Custom tailwind classes
  • Component customization
    • General
    • Styling
    • Unstyled mode
    • Conditional styling
    • Extends styling from keys
    • Nested components styling
    • 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
  • Other
    • Vueless Vite Plugins
Powered by GitBook
On this page
  • Colors
  • Rounding
  • Focus Outline
  • Font Size
  • Disabled Opacity
  • Dark mode
  1. Global customization

General

Last updated 5 days 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 of your project.


Colors

Components are based on a primary color and neutral color.

vueless.config.{js,ts}
export default {
  primary: "blue",
  neutral: "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

Use the rounding key to simultaneously apply a border radius to all components.

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

See chapter for more details.


Focus Outline

Use the outline key to simultaneously apply a focus outline ring to all components.

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

Font Size

Use the fontSize key to simultaneously apply a font size to all components.

vueless.config.{js,ts}
export default {
  fontSize: 16, /* px */
}

Disabled Opacity

You can set the components disabled state opacity globally for related Vueless components.

vueless.config.{js,ts}
export default {
  disabledOpacity: 40, /* percent, % */
}

Dark mode

Use the colorMode key to define dark / light modes for all 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.

See chapter for more details.

Tailwind CSS colors
Colors
Rounding
Font Size
Disabled Opacity
Dark mode
Focus Outline