aboutsummaryrefslogtreecommitdiff
path: root/src/components/badge.style.js
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2024-02-15 20:20:27 +0200
committerHenry Jameson <me@hjkos.com>2024-02-15 20:20:27 +0200
commit96e3a1593ab6b45b2b6794e353623d0e87a7d8ff (patch)
treed4cd8d68368e3a04032ccd35e3c45f1705781449 /src/components/badge.style.js
parent34e4dd0a79cdc03976c4137969beb4259ecdf500 (diff)
more optimizations, execution is now split into eager (for main UI) and
lazy (for modals, popovers etc) parts
Diffstat (limited to 'src/components/badge.style.js')
-rw-r--r--src/components/badge.style.js25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/components/badge.style.js b/src/components/badge.style.js
new file mode 100644
index 00000000..3ac7d8c0
--- /dev/null
+++ b/src/components/badge.style.js
@@ -0,0 +1,25 @@
+export default {
+ name: 'Badge',
+ selector: '.badge',
+ validInnerComponents: [
+ 'Text',
+ 'Icon'
+ ],
+ variants: {
+ normal: '.neutral',
+ notification: '.notification'
+ },
+ defaultRules: [
+ {
+ directives: {
+ background: '--cGreen'
+ }
+ },
+ {
+ variant: 'notification',
+ directives: {
+ background: '--cRed'
+ }
+ }
+ ]
+}