From 96e3a1593ab6b45b2b6794e353623d0e87a7d8ff Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Thu, 15 Feb 2024 20:20:27 +0200 Subject: more optimizations, execution is now split into eager (for main UI) and lazy (for modals, popovers etc) parts --- src/components/alert.style.js | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 src/components/alert.style.js (limited to 'src/components/alert.style.js') diff --git a/src/components/alert.style.js b/src/components/alert.style.js new file mode 100644 index 00000000..081031d7 --- /dev/null +++ b/src/components/alert.style.js @@ -0,0 +1,42 @@ +export default { + name: 'Alert', + selector: '.alert', + validInnerComponents: [ + 'Text', + 'Icon', + 'Link', + 'Border' + ], + variants: { + normal: '.neutral', + error: '.error', + warning: '.warning', + success: '.success' + }, + defaultRules: [ + { + directives: { + background: '--text', + opacity: 0.8 + } + }, + { + variant: 'error', + directives: { + background: '--cRed' + } + }, + { + variant: 'warning', + directives: { + background: '--cOrange' + } + }, + { + variant: 'success', + directives: { + background: '--cGreen' + } + } + ] +} -- cgit v1.2.3-70-g09d2