Skip to content

CheckboxDefault Palette Config Module

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

app.vv.ts Use

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

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

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

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

Module Code

ts
// ./src/configs/palettes/CheckboxDefault.ts

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

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

Released under the MIT License