pkg.re/essentialkaos/ek.10@v12.41.0+incompatible/fmtc/README.md (about)

     1  ### `fmtc` color tags
     2  
     3  #### Modificators
     4  
     5  | Name      | Tag   | Code |
     6  |-----------|-------|------|
     7  | Reset     | `{!}` | `0`  |
     8  | Bold      | `{*}` | `1`  |
     9  | Dim       | `{^}` | `2`  |
    10  | Underline | `{_}` | `4`  |
    11  | Blink     | `{~}` | `5`  |
    12  | Reverse   | `{@}` | `7`  |
    13  
    14  #### 8/16 Colors
    15  
    16  ##### Foreground (Text)
    17  
    18  | Name          | Tag   | Code  | Color Preview |
    19  |---------------|-------|-------|---------------|
    20  | Black         | `{d}` |  `30` | ![#color](https://via.placeholder.com/100x16/000000/000000?text=+) |
    21  | Red           | `{r}` |  `31` | ![#color](https://via.placeholder.com/100x16/CC0000/000000?text=+) |
    22  | Green         | `{g}` |  `32` | ![#color](https://via.placeholder.com/100x16/4D9A05/000000?text=+) |
    23  | Yellow        | `{y}` |  `33` | ![#color](https://via.placeholder.com/100x16/C4A000/000000?text=+) |
    24  | Blue          | `{b}` |  `34` | ![#color](https://via.placeholder.com/100x16/3465A4/000000?text=+) |
    25  | Magenta       | `{m}` |  `35` | ![#color](https://via.placeholder.com/100x16/754F7B/000000?text=+) |
    26  | Cyan          | `{c}` |  `36` | ![#color](https://via.placeholder.com/100x16/069899/000000?text=+) |
    27  | Light gray    | `{s}` |  `37` | ![#color](https://via.placeholder.com/100x16/D3D7CE/000000?text=+) |
    28  | Dark gray     | `{s-}`|  `90` | ![#color](https://via.placeholder.com/100x16/555752/000000?text=+) |
    29  | Light red     | `{r-}`|  `91` | ![#color](https://via.placeholder.com/100x16/EE2828/000000?text=+) |
    30  | Light green   | `{g-}`|  `92` | ![#color](https://via.placeholder.com/100x16/8AE234/000000?text=+) |
    31  | Light yellow  | `{y-}`|  `93` | ![#color](https://via.placeholder.com/100x16/FCE94F/000000?text=+) |
    32  | Light blue    | `{b-}`|  `94` | ![#color](https://via.placeholder.com/100x16/729FCE/000000?text=+) |
    33  | Light magenta | `{m-}`|  `95` | ![#color](https://via.placeholder.com/100x16/AD7EA8/000000?text=+) |
    34  | Light cyan    | `{c-}`|  `96` | ![#color](https://via.placeholder.com/100x16/34E1E1/000000?text=+) |
    35  | White         | `{w-}`|  `97` | ![#color](https://via.placeholder.com/100x16/EEEEEC/000000?text=+) |
    36  
    37  ##### Background
    38  
    39  | Name          | Tag   | Code   | Color Preview |
    40  |---------------|-------|--------|---------------|
    41  | Black         | `{D}` |  `40`  | ![#color](https://via.placeholder.com/100x16/000000/000000?text=+) |
    42  | Red           | `{R}` |  `41`  | ![#color](https://via.placeholder.com/100x16/CC0000/000000?text=+) |
    43  | Green         | `{G}` |  `42`  | ![#color](https://via.placeholder.com/100x16/4D9A05/000000?text=+) |
    44  | Yellow        | `{Y}` |  `43`  | ![#color](https://via.placeholder.com/100x16/C4A000/000000?text=+) |
    45  | Blue          | `{B}` |  `44`  | ![#color](https://via.placeholder.com/100x16/3465A4/000000?text=+) |
    46  | Magenta       | `{M}` |  `45`  | ![#color](https://via.placeholder.com/100x16/754F7B/000000?text=+) |
    47  | Cyan          | `{C}` |  `46`  | ![#color](https://via.placeholder.com/100x16/069899/000000?text=+) |
    48  | Light gray    | `{S}` |  `47`  | ![#color](https://via.placeholder.com/100x16/D3D7CE/000000?text=+) |
    49  | Dark gray     | `{S-}`|  `100` | ![#color](https://via.placeholder.com/100x16/555752/000000?text=+) |
    50  | Light red     | `{R-}`|  `101` | ![#color](https://via.placeholder.com/100x16/EE2828/000000?text=+) |
    51  | Light green   | `{G-}`|  `102` | ![#color](https://via.placeholder.com/100x16/8AE234/000000?text=+) |
    52  | Light yellow  | `{Y-}`|  `103` | ![#color](https://via.placeholder.com/100x16/FCE94F/000000?text=+) |
    53  | Light blue    | `{B-}`|  `104` | ![#color](https://via.placeholder.com/100x16/729FCE/000000?text=+) |
    54  | Light magenta | `{M-}`|  `105` | ![#color](https://via.placeholder.com/100x16/AD7EA8/000000?text=+) |
    55  | Light cyan    | `{C-}`|  `106` | ![#color](https://via.placeholder.com/100x16/34E1E1/000000?text=+) |
    56  | White         | `{W-}`|  `107` | ![#color](https://via.placeholder.com/100x16/EEEEEC/000000?text=+) |
    57  
    58  #### 88/256 Colors
    59  
    60  ##### Foreground (Text)
    61  
    62  Tag: `{#code}`
    63  
    64  ![#colors](../.github/images/256_colors_fg.png)
    65  
    66  _Image from [FLOZz' MISC](https://misc.flogisoft.com/bash/tip_colors_and_formatting) website_
    67  
    68  ##### Background
    69  
    70  Tag: `{%code}`
    71  
    72  ![#colors](../.github/images/256_colors_bg.png)
    73  
    74  _Image from [FLOZz' MISC](https://misc.flogisoft.com/bash/tip_colors_and_formatting) website_
    75  
    76  #### 24-bit Colors (_TrueColor_)
    77  
    78  ##### Foreground (Text)
    79  
    80  Tag: `{#hex}`
    81  
    82  ##### Background
    83  
    84  Tag: `{%hex}`
    85  
    86  #### Examples
    87  
    88  ```
    89  {r*}Important!{!*} File deleted!{!}
    90   ┬             ┬─                ┬
    91   │             │                 │
    92   │             │                 └ Reset everything
    93   │             │
    94   │             └ Unset bold modificator
    95   │
    96   └ Bold, red text 
    97  ```
    98  
    99  ```
   100  {rG*}OMG!{!} Check your mail{!}
   101   ┬──                         ┬
   102   │                           │
   103   │                           └ Reset everything
   104   │
   105   └ Bold, red text with green background
   106  ```
   107  
   108  ```
   109  {r}File {_}file.log{!_} deleted{!}
   110   ┬       ┬          ┬─          ┬
   111   │       │          │           │ 
   112   │       │          │           └ Reset everything
   113   │       │          │
   114   │       │          └ Unset underline modificator
   115   │       │
   116   │       └ Set underline modificator
   117   │
   118   └ Set text color to red
   119  ```
   120  
   121  ```
   122  {*@y}Warning!{!@} Can't find user bob.{!}
   123   ┬──          ┬─                       ┬
   124   │            │                        │
   125   │            │                        └ Reset everything
   126   │            │
   127   │            └ Unset reverse modificator (keep yellow color)
   128   │
   129   └ Bold text with yellow background (due to reverse modificator)
   130  ```
   131  
   132  ```
   133  {#213}{%240}Hi all!{!}
   134   ┬───  ┬───         ┬
   135   │     │            │
   136   │     │            └ Reset everything
   137   │     │
   138   │     └ Set background color to grey
   139   │
   140   └ Set text color to pink
   141  ```
   142  
   143  ```
   144  {#ff1493}{%191970}Hi all!{!}
   145   ┬──────  ┬──────         ┬
   146   │        │               │
   147   │        │               └ Reset everything
   148   │        │
   149   │        └ Set background color to midnightblue
   150   │
   151   └ Set text color to deeppink
   152  ```