better virtual components and stuff

This commit is contained in:
Henry Jameson 2024-01-31 17:39:51 +02:00
commit 53a4b1f9a6
17 changed files with 354 additions and 137 deletions

View file

@ -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
}
}
]
}