aboutsummaryrefslogtreecommitdiff
path: root/src/components/alert.style.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/alert.style.js')
-rw-r--r--src/components/alert.style.js53
1 files changed, 53 insertions, 0 deletions
diff --git a/src/components/alert.style.js b/src/components/alert.style.js
new file mode 100644
index 00000000..abbeb5ba
--- /dev/null
+++ b/src/components/alert.style.js
@@ -0,0 +1,53 @@
+export default {
+ name: 'Alert',
+ selector: '.alert',
+ validInnerComponents: [
+ 'Text',
+ 'Icon',
+ 'Link',
+ 'Border',
+ 'ButtonUnstyled'
+ ],
+ variants: {
+ normal: '.neutral',
+ error: '.error',
+ warning: '.warning',
+ success: '.success'
+ },
+ defaultRules: [
+ {
+ directives: {
+ background: '--text',
+ opacity: 0.5,
+ blur: '9px'
+ }
+ },
+ {
+ parent: {
+ component: 'Alert'
+ },
+ component: 'Border',
+ directives: {
+ textColor: '--parent'
+ }
+ },
+ {
+ variant: 'error',
+ directives: {
+ background: '--cRed'
+ }
+ },
+ {
+ variant: 'warning',
+ directives: {
+ background: '--cOrange'
+ }
+ },
+ {
+ variant: 'success',
+ directives: {
+ background: '--cGreen'
+ }
+ }
+ ]
+}