Skip to content

BorderDefault Palette Config Module

A default palette of border colors with properties/values with the keys of default, error, primary, secondary, and success.

app.vv.ts Use

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

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

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

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

Module Code

ts
// ./src/configs/palettes/BorderDefault.ts

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

export default <DefaultPaletteColors>{
    '': '',
    'default': 'border-gray-200 dark:border-gray-600',
    error: 'border-rose-600 dark:border-rose-300',
    primary: 'border-blue-600 dark:border-blue-300',
    secondary: 'border-violet-600 dark:border-violet-300',
    success: 'border-green-600 dark:border-green-300',
}

Released under the MIT License