Skip to content

ListDefault Palette Config Module ​

A default palette of marker colors (IE bullets and numbered markers for list items) with properties/values with the keys of default, error, primary, secondary, and success.

app.vv.ts Use ​

You'll usually work with the ListDefault 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 lists palette colors individually
appVv.lists.palettes.default.default = '...'
appVv.lists.palettes.default.error = '...'
appVv.lists.palettes.default.secondary = '...'


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


// Add a new custom app anchor palette
appVv.lists.palettes.myCustomAppPalette = {
    default: '...',
    error: '...',
    success: '...',
    secondary: '...',
    // 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 ListDefault Palette Config Module, you can use:

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

Module Code ​

ts
// ./src/configs/palettes/ListDefault.ts

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

export default <DefaultPaletteColors>{
    'default': '',
    error: 'marker:text-rose-500 dark:marker:text-rose-300',
    primary: 'marker:text-blue-500 dark:marker:text-blue-300',
    secondary: 'marker:text-violet-500 dark:marker:text-violet-300',
    success: 'marker:text-green-600 dark:marker:text-green-300',
}

Released under the MIT License