|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
813 bytes
|
| Line | |
|---|
| 1 | // Originally by: Rogier Schouten <https://github.com/rogierschouten>
|
|---|
| 2 | // Adapted by: Madhav Varshney <https://github.com/madhavarshney>
|
|---|
| 3 | declare namespace kleur {
|
|---|
| 4 | interface Color {
|
|---|
| 5 | (x: string | number): string;
|
|---|
| 6 | (): Kleur;
|
|---|
| 7 | }
|
|---|
| 8 |
|
|---|
| 9 | interface Kleur {
|
|---|
| 10 | // Colors
|
|---|
| 11 | black: Color;
|
|---|
| 12 | red: Color;
|
|---|
| 13 | green: Color;
|
|---|
| 14 | yellow: Color;
|
|---|
| 15 | blue: Color;
|
|---|
| 16 | magenta: Color;
|
|---|
| 17 | cyan: Color;
|
|---|
| 18 | white: Color;
|
|---|
| 19 | gray: Color;
|
|---|
| 20 | grey: Color;
|
|---|
| 21 |
|
|---|
| 22 | // Backgrounds
|
|---|
| 23 | bgBlack: Color;
|
|---|
| 24 | bgRed: Color;
|
|---|
| 25 | bgGreen: Color;
|
|---|
| 26 | bgYellow: Color;
|
|---|
| 27 | bgBlue: Color;
|
|---|
| 28 | bgMagenta: Color;
|
|---|
| 29 | bgCyan: Color;
|
|---|
| 30 | bgWhite: Color;
|
|---|
| 31 |
|
|---|
| 32 | // Modifiers
|
|---|
| 33 | reset: Color;
|
|---|
| 34 | bold: Color;
|
|---|
| 35 | dim: Color;
|
|---|
| 36 | italic: Color;
|
|---|
| 37 | underline: Color;
|
|---|
| 38 | inverse: Color;
|
|---|
| 39 | hidden: Color;
|
|---|
| 40 | strikethrough: Color;
|
|---|
| 41 | }
|
|---|
| 42 | }
|
|---|
| 43 |
|
|---|
| 44 | declare let kleur: kleur.Kleur & { enabled: boolean };
|
|---|
| 45 | export = kleur;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.