|
| 1 | +// Shared ANSI color classes for LogViewer with useAnsiClasses |
| 2 | +// Import this mixin in any SCSS file that wraps a LogViewer component |
| 3 | + |
| 4 | +@mixin ansi-log-colors { |
| 5 | + // Foreground colors (optimized for dark/black background) |
| 6 | + .ansi-black-fg { |
| 7 | + color: #6e6e6e; |
| 8 | + } |
| 9 | + .ansi-red-fg { |
| 10 | + color: #f14c4c; |
| 11 | + } |
| 12 | + .ansi-green-fg { |
| 13 | + color: #23d18b; |
| 14 | + } |
| 15 | + .ansi-yellow-fg { |
| 16 | + color: #f5f543; |
| 17 | + } |
| 18 | + .ansi-blue-fg { |
| 19 | + color: #3b8eea; |
| 20 | + } |
| 21 | + .ansi-magenta-fg { |
| 22 | + color: #d670d6; |
| 23 | + } |
| 24 | + .ansi-cyan-fg { |
| 25 | + color: #29b8db; |
| 26 | + } |
| 27 | + .ansi-white-fg { |
| 28 | + color: #e5e5e5; |
| 29 | + } |
| 30 | + |
| 31 | + // Bright foreground colors |
| 32 | + .ansi-bright-black-fg { |
| 33 | + color: #a0a0a0; |
| 34 | + } |
| 35 | + .ansi-bright-red-fg { |
| 36 | + color: #f14c4c; |
| 37 | + } |
| 38 | + .ansi-bright-green-fg { |
| 39 | + color: #23d18b; |
| 40 | + } |
| 41 | + .ansi-bright-yellow-fg { |
| 42 | + color: #f5f543; |
| 43 | + } |
| 44 | + .ansi-bright-blue-fg { |
| 45 | + color: #73c3ff; |
| 46 | + } |
| 47 | + .ansi-bright-magenta-fg { |
| 48 | + color: #ff7eff; |
| 49 | + } |
| 50 | + .ansi-bright-cyan-fg { |
| 51 | + color: #5ff; |
| 52 | + } |
| 53 | + .ansi-bright-white-fg { |
| 54 | + color: #fff; |
| 55 | + } |
| 56 | + |
| 57 | + // Background colors |
| 58 | + .ansi-black-bg { |
| 59 | + background-color: #000; |
| 60 | + } |
| 61 | + .ansi-red-bg { |
| 62 | + background-color: #bb0000; |
| 63 | + } |
| 64 | + .ansi-green-bg { |
| 65 | + background-color: #00bb00; |
| 66 | + } |
| 67 | + .ansi-yellow-bg { |
| 68 | + background-color: #bbbb00; |
| 69 | + } |
| 70 | + .ansi-blue-bg { |
| 71 | + background-color: #0000bb; |
| 72 | + } |
| 73 | + .ansi-magenta-bg { |
| 74 | + background-color: #bb00bb; |
| 75 | + } |
| 76 | + .ansi-cyan-bg { |
| 77 | + background-color: #00bbbb; |
| 78 | + } |
| 79 | + .ansi-white-bg { |
| 80 | + background-color: #fff; |
| 81 | + } |
| 82 | + |
| 83 | + // Bright background colors |
| 84 | + .ansi-bright-black-bg { |
| 85 | + background-color: #555; |
| 86 | + } |
| 87 | + .ansi-bright-red-bg { |
| 88 | + background-color: #f55; |
| 89 | + } |
| 90 | + .ansi-bright-green-bg { |
| 91 | + background-color: #0f0; |
| 92 | + } |
| 93 | + .ansi-bright-yellow-bg { |
| 94 | + background-color: #ff5; |
| 95 | + } |
| 96 | + .ansi-bright-blue-bg { |
| 97 | + background-color: #55f; |
| 98 | + } |
| 99 | + .ansi-bright-magenta-bg { |
| 100 | + background-color: #f5f; |
| 101 | + } |
| 102 | + .ansi-bright-cyan-bg { |
| 103 | + background-color: #5ff; |
| 104 | + } |
| 105 | + .ansi-bright-white-bg { |
| 106 | + background-color: #fff; |
| 107 | + } |
| 108 | + |
| 109 | + // Text styles |
| 110 | + .ansi-bold { |
| 111 | + font-weight: bold; |
| 112 | + } |
| 113 | + .ansi-faint { |
| 114 | + opacity: 0.5; |
| 115 | + } |
| 116 | + .ansi-italic { |
| 117 | + font-style: italic; |
| 118 | + } |
| 119 | + .ansi-underline { |
| 120 | + text-decoration: underline; |
| 121 | + } |
| 122 | +} |
0 commit comments