Skip to content

FillDefault Palette Config Module

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

app.vv.ts Use

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

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

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

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

Module Code

ts
// ./src/configs/palettes/FillDefault.ts

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

export default <DefaultPaletteColors>{
    'default': 'dark:fill-gray-100 fill-gray-900',
    error: 'fill-rose-500 dark:fill-rose-300',
    primary: 'fill-blue-500 dark:fill-blue-300',
    secondary: 'fill-violet-500 dark:fill-violet-300',
    success: 'fill-green-600 dark:fill-green-300',
}

Released under the MIT License