Skip to content

GroundDefault Palette Config Module

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

app.vv.ts Use

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

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

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

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

Module Code

ts
// ./src/configs/palettes/GroundDefault.ts

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

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

Released under the MIT License