Define default UI layout, spacing, and styling conventions
Source: target-root/usr/local/lib/solidgroundux/styles/00-style-default.sh
Define default UI layout, spacing, and styling conventions
Description
Provides the default layout and styling rules used by the SolidGroundUX UI layer.
The library:
- Defines spacing, padding, and alignment conventions
- Sets default widths for labels and columns
- Provides style constants for borders, separators, and layout elements
- Complements the color palette with structural presentation rules
- Ensures consistent visual composition across all console tools
Design principles
- Separate layout (style) from color (palette)
- Keep styling declarative and easy to override
- Favor readability and alignment over compactness
- Maintain consistency across all rendered output
Role in framework
- Structural styling layer used by ui.sh and related modules
- Works alongside default-ui-palette.sh to define the full UI theme
- Enables consistent layout behavior across scripts and tools
Non-goals
- Rendering logic or user interaction handling
- Terminal capability detection
- Dynamic layout adaptation beyond simple width awareness
say() global defaults
| Variable | Value | Notes |
|---|---|---|
SAY_DATE_DEFAULT | 0 | 0 = no date, 1 = add date |
SAY_SHOW_DEFAULT | "label" | label\ |
SAY_COLORIZE_DEFAULT | "label" | none\ |
SAY_DATE_FORMAT | "%Y-%m-%d %H:%M:%S" |
Say prefixes
Labels
Status indicators
| Group {rowspan} | Label | Icon | Symbol |
|---|---|---|---|
| CNCL | CANCEL | $'âšī¸' | (-) |
| EMPTY | $'' | ||
| END | END | $'đ' | <<< |
| FAIL | ERROR | $'â' | (X) |
| INFO | INFO | $'âšī¸' | (+) |
| OK | SUCCESS | $'â ' | (â) |
| STRT | START | $'âļī¸' | >>> |
| WARN | WARNING | $'â ī¸' | (!) |
| DEBUG | DEBUG | $'đ' | (~) |
Colors
By message type
Colors â Messages
| Variable | Value | Notes |
|---|---|---|
MSG_CLR_INFO | $SILVER | |
MSG_CLR_STRT | $BRIGHT_GREEN | |
MSG_CLR_OK | $BRIGHT_GREEN | |
MSG_CLR_WARN | $BRIGHT_ORANGE | |
MSG_CLR_FAIL | $BRIGHT_RED | |
MSG_CLR_CNCL | $YELLOW | |
MSG_CLR_END | $BRIGHT_GREEN | |
MSG_CLR_EMPTY | $DARK_SILVER | |
MSG_CLR_DEBUG | $BRIGHT_MAGENTA |
Colors â Progress indicators
| Variable | Value | Notes |
|---|---|---|
PROG_BAR_CLR | $BRIGHT_CYAN | |
PROG_IND_CLR | $BRIGHT_CYAN | |
PROG_TEXT_CLR | $SILVER |
Colors â Console UI
| Variable | Value | Notes |
|---|---|---|
SGND_UI_BORDER | $BRIGHT_CYAN | |
SGND_UI_LABEL | $SILVER | |
SGND_UI_VALUE | $YELLOW | |
SGND_UI_COMMIT | $ORANGE | |
SGND_UI_DRYRUN | $GREEN | |
SGND_UI_ENABLED | $BRIGHT_WHITE | |
SGND_UI_DISABLED | $DARK_WHITE | |
SGND_UI_ON | $BRIGHT_GREEN | |
SGND_UI_OFF | $DARK_SILVER | |
SGND_UI_INPUT | $YELLOW | |
SGND_UI_PROMPT | $BRIGHT_CYAN | |
SGND_UI_INVALID | $ORANGE | |
SGND_UI_VALID | $GREEN | |
SGND_UI_SUCCESS | $BRIGHT_GREEN | |
SGND_UI_ERROR | $BRIGHT_RED | |
SGND_UI_TEXT | $SILVER | |
SGND_UI_BOLD | "$(sgnd_sgr "$SGND_UI_TEXT" "" "$FX_BOLD")" | |
SGND_UI_FAINT | "$(sgnd_sgr "$SGND_UI_TEXT" "" "$FX_FAINT")" | |
SGND_UI_ITALIC | "$(sgnd_sgr "$SGND_UI_TEXT" "" "$FX_ITALIC")" |
Colors â Title bar
| Variable | Value | Notes |
|---|---|---|
SGND_TITLE_TEXTCLR | "$(sgnd_sgr "$SGND_UI_TEXT" "" "$FX_BOLD")" | |
SGND_TITLE_BORDER | $DL_H | |
SGND_TITLE_SUBTEXTCLR | "$(sgnd_sgr "$SGND_UI_TEXT" "" "$FX_ITALIC")" | |
SGND_TITLE_RIGHTCLR | $SGND_TITLE_TEXTCLR | |
SGND_TITLE_BORDERCLR | $SGND_UI_BORDER |
Colors â Section headers
| Variable | Value | Notes |
|---|---|---|
SGND_SECTION_TEXTCLR | "$(sgnd_sgr "$SGND_UI_TEXT" "" "$FX_BOLD")" | |
SGND_SECTION_BORDER | $LN_H | |
SGND_SECTION_BORDERCLR | $SGND_UI_BORDER |
Colors â DataTable
| Variable | Value | Notes |
|---|---|---|
SGND_DT_HEADERLINE_CLR | $SGND_UI_BORDER | |
SGND_DT_COLUMNNAME_CLR | "$(sgnd_sgr "$SGND_UI_LABEL" "" "$FX_BOLD")" | |
SGND_DT_DATACOLOR_CLR | $SGND_UI_TEXT |
Colors â Default
| Variable | Value | Notes |
|---|---|---|
SGND_UI_DEFAULT | $DARK_SILVER |
