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
  1. Global customization

Base Classes

You can define a list of classes that will be applied to all Vueless components. This can be useful for adjusting text color based on light and dark themes, customizing text selection color, etc..

vueless.config.{js,ts}
export default {
  baseClasses: `
    text-gray-800 dark:text-gray-200
    selection:bg-brand-300 dark:selection:bg-brand-700
  `,
}

// Default Vueless base classes:
// text-gray-900 dark:text-gray-100

Last updated 3 months ago