This component displays a banner at the top of every page. Any valid CSS colours can be used. If you are planning to use discourse theme variables, wrap them in var(), so you’ll get something like var(--tertiary-very-low).
it would be nice to control that border size and color.
perhaps options for placement with different plugin outlets, like below-site-header and above-main-containter?
while the use of enum list vs text input for color choices is convenient, it also limits admins from using the color pallet variables that work with dark / light modes, or for being more granular with hex color values.
I would suggest making the banner string text input setting with the textarea: true property, then you will get a multi-line textbox that the user can expand. Then it’s easier to do this:
UPDATE:
I have simplified the .gjs file by moving the if statements of checking if the banner text is empty and the visibility of the banner to the .scss file.