Before we move on to more complicated stuff, I wanted to show you the design we have in mind for the generic text styling with the Bootstrap 4 typography
We decided to divide the options in basic and advanced:
Basic options
This covers to most common options like colors, alignment, font weight and style:
A few options that might need more explanations:
- Highlighted text - Lead text - Small text
Also the color picker drops down a menu with the current Bootstrap 4 colors only to choose from:
Advanced Options
When you toggle the “advanced” switch you will get:
You see here more advanced options like text transforms, text overflow handling and additional styles like mono type and abbreviations (n/a). Those won’t be used that often so that is why we put them all under advanced.
So that’s all about the new text display options that will be visible on all Bootstrap 4 elements dealing with text.
What colours will be shown if a custom theme is used - ie neither the default Bootstrap colours, nor one of the Bootswatch options? Will Wappler look at the CSS to decide what colours are available ?
Currently the colours in the property panels don’t necessarily reflect the actual colours according to the defined styles. Eg here I’ve customised the default styles in the recommended way (redefining variables in custom.scss etc.), so my primary colour is now dark red. However the colours which appear in Wapper are still the default Bootstrap colours, in this case blue instead of red:
It would be good if this could be improved. Obviously sites developed in Wappler shouldn’t be restricted to either the default Bootstrap theme or one of the Bootswatch selection.
Yes I understand what you mean. Currently we already show the different colors used by the default bootstrap or the bootswatch themes, but we don’t pick custom colors. We will hover do so soon as well.
Will there be a way to adjust text size globally? One issue I have with BS4 is the text (paragraph and in tables) is so large for dashboards. Would be nice to be able to resize text.
Currently those theme colors are the default bootstrap 4 colors, or if you use one of the supplied bootswatch themes - then they show the theme colors.
we will soon indeed pick up the live bootstrap theme colors, so if you have a custom theme those can be picked up as well.