Skip to content

AnchorDefault Palette Config Module

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

app.vv.ts Use

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

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

// Add a new custom app anchor palette
appVv.anchors.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 AnchorDefault Palette Config Module, you can use:

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

Module Code

ts
// ./src/configs/palettes/AnchorDefault.ts

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

export default <DefaultPaletteColors>{
    'default': 'text-gray-500 hover:text-gray-600 dark:text-gray-300 dark:hover:text-gray-200',
    error: 'text-rose-500 hover:text-rose-600 dark:text-rose-300 dark:hover:text-rose-200',
    primary: 'text-blue-500 hover:text-blue-600 dark:text-blue-300 dark:hover:text-blue-200',
    secondary: 'text-teal-500 hover:text-teal-600 dark:text-teal-300 dark:hover:text-teal-200',
    success: 'text-green-600 hover:text-green-700 dark:text-green-300 dark:hover:text-green-200',
}

Released under the MIT License