better virtual components and stuff
This commit is contained in:
parent
ff2db7a247
commit
53a4b1f9a6
17 changed files with 354 additions and 137 deletions
|
|
@ -1,7 +1,43 @@
|
|||
export default {
|
||||
name: 'Text',
|
||||
selector: '/*text*/',
|
||||
virtual: true,
|
||||
variants: {
|
||||
greentext: '.greentext'
|
||||
},
|
||||
states: {
|
||||
faint: '.faint'
|
||||
}
|
||||
},
|
||||
defaultRules: [
|
||||
{
|
||||
component: 'Text',
|
||||
directives: {
|
||||
textColor: '--text'
|
||||
}
|
||||
},
|
||||
{
|
||||
component: 'Text',
|
||||
state: ['faint'],
|
||||
directives: {
|
||||
textColor: '--text',
|
||||
textOpacity: 0.5
|
||||
}
|
||||
},
|
||||
{
|
||||
component: 'Text',
|
||||
variant: 'greentext',
|
||||
directives: {
|
||||
textColor: '--cGreen'
|
||||
}
|
||||
},
|
||||
{
|
||||
component: 'Text',
|
||||
variant: 'greentext',
|
||||
state: ['faint'],
|
||||
directives: {
|
||||
textColor: '--cGreen',
|
||||
textOpacity: 0.5
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue