Skip to content

GroundMonochromatic Palette Config Module

A monochromatic themed 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 GroundMonochromatic 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.monochromatic.default = '...'
appVv.grounds.palettes.monochromatic.error = '...'
appVv.grounds.palettes.monochromatic.primary = '...'
appVv.grounds.palettes.monochromatic.secondary = '...'
appVv.grounds.palettes.monochromatic.success = '...'

// Add a new custom app anchor color name & value
// to the default VvConfig grounds palette
appVv.grounds.palettes.monochromatic.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 GroundMonochromatic Palette Config Module, you can use:

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

Module Code

ts
// ./src/configs/palettes/GroundMonochromatic.ts

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

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

Released under the MIT License