Skip to content

ListboxButtonUnderlined Palette Config Module ​

A validation focused palette of a variety of color class types for use with listbox components via properties/values with the keys of default, error, and success.

app.vv.ts Use ​

You'll usually work with the ListboxButtonUnderlined Palette Config Module after it's already been merged into VueVentus VvConfig data.

Here's what that generally looks like in practice in a real world app context:

javascript
// ./src/app.vv.ts

import { VvConfig } from '@obewds/vueventus'
import type { ConfigVv, DefaultPaletteColors } from '@obewds/vueventus'

let appVv: ConfigVv = VvConfig

// ...

// Override the default VvConfig listboxes buttonPalettes colors individually
appVv.listboxes.buttonPalettes.underlined.default = '...'
appVv.listboxes.buttonPalettes.underlined.error = '...'
appVv.listboxes.buttonPalettes.underlined.success = '...'


// Add a new custom app listboxes buttonPalettes color name & value
// to the default VvConfig listboxes palette
appVv.listboxes.buttonPalettes.underlined.newAppColor = '...'


// Add a new custom app anchor palette
appVv.listboxes.buttonPalettes.myCustomAppPalette = {
    default: '...',
    error: '...',
    success: '...',
    // Add a new custom app anchor color name & value
    anotherAppColor: '...',
} as DefaultPaletteColors

// ...

export default appVv

Import ​

However, if you need to import the compiled library version of the ListboxButtonUnderlined Palette Config Module, you can use:

javascript
import { ListboxButtonUnderlined } from '@obewds/vueventus'

Module Code ​

ts
// ./src/configs/palettes/ListboxButtonUnderlined.ts

import type { DefaultValidationPaletteColors } from '../../types/DefaultValidationPaletteColors'

export default <DefaultValidationPaletteColors> {
    'default': 'focus:ring-0 border-x-0 border-t-0 border-b-2 focus:border-b-blue-500 focus:border-x-gray-700 dark:focus:border-b-blue-400 border-b-gray-300 dark:border-b-gray-600 bg-gray-50 focus:bg-white hover:bg-white dark:bg-gray-800 dark:focus:bg-gray-700 dark:hover:bg-gray-700 border-gray-500',
    error: 'text-rose-700 dark:text-rose-200 focus:ring-0 border-x-0 border-t-0 border-b-2 text-rose-700 dark:text-rose-200 focus:border-b-rose-500 focus:border-x-gray-700 dark:focus:border-b-rose-400 border-b-rose-300 dark:border-b-rose-700 bg-gray-50 focus:bg-white hover:bg-white dark:bg-gray-800 dark:focus:bg-gray-700 dark:hover:bg-gray-700 border-gray-500',
    success: 'text-green-700 dark:text-green-200 focus:ring-0 border-x-0 border-t-0 border-b-2 text-green-700 dark:text-green-200 focus:border-b-green-500 focus:border-x-gray-700 dark:focus:border-b-green-400 border-b-green-300 dark:border-b-green-700 bg-gray-50 focus:bg-white hover:bg-white dark:bg-gray-800 dark:focus:bg-gray-700 dark:hover:bg-gray-700 border-gray-500',
}

Released under the MIT License