readthedocs / ext-theme

Read the Docs drop in replacement site templates
2 stars 1 forks source link

Styles: continue altering base message styles #316

Open agjohnson opened 5 months ago

agjohnson commented 5 months ago

I have had a number of issues with the default FUI theme styles for .ui.message class elements and would like to unify around two styles: a normal message style for subtle messages to the user and a solid color background for bringing direct attention to errors, warnings, and important information.

Issues

The issues with FUI base styles are:

image

Normal

A light version of .ui.message with a colored icon and bold header. Using a light background and color on some of the text allows the message to stand out just enough, without calling for immediate user attention:

A tip notification using the normal styles

For example, a message reworked:

image

An example replacement info message

Inverted

In FUI terms, this is .ui.inverted.message. These blocks are used for more important messages -- errors, warning, and important information -- places we always want the user to notice and read the notification. These don't fit in well in form prose content, but do work really well as alerts:

image

Changes

To look like a purposeful change, the existing examples of .ui.info.message will need to be reworked a little bit:

We can do this incrementally by using the .ui.info.notification.message variant for all existing .ui.info.message instances.

agjohnson commented 1 month ago

Note for ourselves later: all of the above is about extending the message styling used in notification messages to all .ui.messages.