separate greentext into "fun text" and make Post/Notification related components

This commit is contained in:
Henry Jameson 2024-02-12 19:17:17 +02:00
commit 48f106b438
13 changed files with 134 additions and 29 deletions

View file

@ -2,34 +2,21 @@ 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'
}
}
]
}