TextDefault Palette Config Module
A default palette of text colors with properties/values with the keys of default
, error
, primary
, secondary
, and success
.
app.vv.ts Use
You'll usually work with the TextDefault 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 text palette colors individually
appVv.text.palettes.default.default = '...'
appVv.text.palettes.default.error = '...'
appVv.text.palettes.default.primary = '...'
appVv.text.palettes.default.secondary = '...'
appVv.text.palettes.default.success = '...'
appVv.text.palettes.default.neutral = '...'
// Add a new custom app anchor color name & value
// to the default VvConfig text palette
appVv.text.palettes.default.newAppColor = '...'
// Add a new custom app anchor palette
appVv.text.palettes.myCustomAppPalette = {
default: '...',
error: '...',
primary: '...',
secondary: '...',
success: '...',
neutral: '...',
// 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 TextDefault Palette Config Module, you can use:
javascript
import { TextDefault } from '@obewds/vueventus'
Module Code
ts
// ./src/configs/palettes/TextDefault.ts
import type { DefaultPaletteColors } from '../../types/DefaultPaletteColors'
export default <DefaultPaletteColors>{
'default': '',
error: 'text-rose-500 dark:text-rose-300',
primary: 'text-blue-500 dark:text-blue-300',
secondary: 'text-violet-500 dark:text-violet-300',
success: 'text-green-600 dark:text-green-300',
neutral: 'dark:text-gray-100 text-gray-900',
}