Skip to content

GroundPastel Palette Config Module ​

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

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

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

Module Code ​

ts
// ./src/configs/palettes/GroundPastel.ts

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

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

Released under the MIT License