36 lines
577 B
JavaScript
36 lines
577 B
JavaScript
export default {
|
|
name: 'Text',
|
|
selector: '/*text*/',
|
|
virtual: true,
|
|
variants: {
|
|
greentext: '.greentext'
|
|
},
|
|
states: {
|
|
faint: '.faint'
|
|
},
|
|
defaultRules: [
|
|
{
|
|
component: 'Text',
|
|
directives: {
|
|
textColor: '--text',
|
|
textAuto: 'no-preserve'
|
|
}
|
|
},
|
|
{
|
|
component: 'Text',
|
|
state: ['faint'],
|
|
directives: {
|
|
textOpacity: 0.5
|
|
}
|
|
},
|
|
{
|
|
component: 'Text',
|
|
variant: 'greentext',
|
|
directives: {
|
|
textColor: '--cGreen',
|
|
textAuto: 'preserve'
|
|
}
|
|
}
|
|
]
|
|
}
|