diff options
| author | Henry Jameson <me@hjkos.com> | 2024-02-15 20:20:27 +0200 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2024-02-15 20:20:27 +0200 |
| commit | 96e3a1593ab6b45b2b6794e353623d0e87a7d8ff (patch) | |
| tree | d4cd8d68368e3a04032ccd35e3c45f1705781449 /src/components/alert.style.js | |
| parent | 34e4dd0a79cdc03976c4137969beb4259ecdf500 (diff) | |
more optimizations, execution is now split into eager (for main UI) and
lazy (for modals, popovers etc) parts
Diffstat (limited to 'src/components/alert.style.js')
| -rw-r--r-- | src/components/alert.style.js | 42 |
1 files changed, 42 insertions, 0 deletions
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' + } + } + ] +} |
