aboutsummaryrefslogtreecommitdiff
path: root/src/components/text.style.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/text.style.js')
-rw-r--r--src/components/text.style.js38
1 files changed, 37 insertions, 1 deletions
diff --git a/src/components/text.style.js b/src/components/text.style.js
index 050194cb..e52b6f68 100644
--- a/src/components/text.style.js
+++ b/src/components/text.style.js
@@ -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
+ }
+ }
+ ]
}