Appearance
@obewds/tw-text-palette-default
Welcome to the docs page for OBE:WDS's twTextPaletteDefault
component for Vue.js!
Installation
bash
npm install @obewds/tw-text-palette-default --save-dev
1
Object Schema
The object returned when importing Tailwind CSS background default color palette has the following schema:
javascript
{
'default': {
colors: {
'default': '',
'error': '...',
'primary': '...',
'secondary': '...',
'success': '...',
},
},
}
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
Use Example
html
<script setup lang="ts">
import { twTextPaletteDefault } from '@obewds/tw-text-palette-default'
const props = defineProps({
textClasses: {
type: String,
default: twTextPaletteDefault.default.colors.primary,
},
})
</script>
<template>
<div :class="textClasses">
{{ textClasses }}
</div>
</template>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Uninstall
bash
npm uninstall @obewds/tw-text-palette-default
1