Skip to content

Commit 9fd48a3

Browse files
committed
feat(ui): terminal themes
1 parent 89fbf3f commit 9fd48a3

File tree

5 files changed

+138
-136
lines changed

5 files changed

+138
-136
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<pre class="window-terminal-container dracula-ansi-theme" [ngClass]="{ large: options.size === 'large' }" slimScroll [options]="scrollOptions" [scrollEvents]="scrollEvents"></pre>
1+
<pre class="window-terminal-container batman-ansi-theme" [ngClass]="{ large: options.size === 'large' }" slimScroll [options]="scrollOptions" [scrollEvents]="scrollEvents"></pre>

src/app/styles/dracula-ansi.scss

Lines changed: 0 additions & 130 deletions
This file was deleted.

src/app/styles/terminal.sass

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
@import 'dracula-ansi'
1+
@import 'terminal/material-dark-ansi'
2+
@import 'terminal/batman-ansi'
23

34
.window-terminal-container
45
position: relative
56
display: block
6-
color: #f8f8f2
7+
color: #e5e5e5
78
margin: 0
89
font-family: monaco, monospace
910
font-size: 12px
1011
padding: 0
1112
height: 400px
12-
background: darken(#282a36, 10)
13+
background: #111111
1314
border-radius: 4px
1415
box-shadow: 1px 2px 10px rgba($background, 0.7)
1516
border: 1px solid $divider
16-
overflow-x: hidden
17-
overflow-y: scroll
17+
overflow: hidden
1818

1919
&.large
2020
height: 700px
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
.batman-ansi-theme {
2+
3+
.ansi-black-fg, .ansi-black-bg {
4+
color: #1b1d1e;
5+
}
6+
7+
.ansi-red-fg, .ansi-red-bg {
8+
color: #e6dc44;
9+
}
10+
11+
.ansi-green-fg, .ansi-green-bg {
12+
color: #c8be46;
13+
}
14+
15+
.ansi-yellow-fg, .ansi-yellow-bg {
16+
color: #f4fd22;
17+
}
18+
19+
.ansi-blue-fg, .ansi-blue-bg {
20+
color: #737174;
21+
}
22+
23+
.ansi-magenta-fg, .ansi-magenta-bg {
24+
color: #747271;
25+
}
26+
27+
.ansi-cyan-fg, .ansi-cyan-bg {
28+
color: #62605f;
29+
}
30+
31+
.ansi-white-fg, .ansi-white-bg {
32+
color: #c6c5bf;
33+
}
34+
35+
.ansi-bright-black-fg, .ansi-bright-black-bg {
36+
color: #505354;
37+
}
38+
39+
.ansi-bright-red-fg, .ansi-bright-red-bg {
40+
color: #fff78e;
41+
}
42+
43+
.ansi-bright-green-fg, .ansi-bright-green-bg {
44+
color: #fff27d;
45+
}
46+
47+
.ansi-bright-yellow-fg, .ansi-bright-yellow-bg {
48+
color: #feed6c;
49+
}
50+
51+
.ansi-bright-blue-fg, .ansi-bright-blue-bg {
52+
color: #919495;
53+
}
54+
55+
.ansi-bright-magenta-fg, .ansi-bright-magenta-bg {
56+
color: #9a9a9d;
57+
}
58+
59+
.ansi-bright-cyan-fg, .ansi-bright-cyan-bg {
60+
color: #a3a3a6;
61+
}
62+
63+
.ansi-bright-white-fg, .ansi-bright-white-bg {
64+
color: #dadbd6;
65+
}
66+
}
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
.material-dark-ansi-theme {
2+
3+
.ansi-black-fg, .ansi-black-bg {
4+
color: #212121;
5+
}
6+
7+
.ansi-red-fg, .ansi-red-bg {
8+
color: #b7141f;
9+
}
10+
11+
.ansi-green-fg, .ansi-green-bg {
12+
color: #457b24;
13+
}
14+
15+
.ansi-yellow-fg, .ansi-yellow-bg {
16+
color: #f6981e;
17+
}
18+
19+
.ansi-blue-fg, .ansi-blue-bg {
20+
color: #134eb2;
21+
}
22+
23+
.ansi-magenta-fg, .ansi-magenta-bg {
24+
color: #560088;
25+
}
26+
27+
.ansi-cyan-fg, .ansi-cyan-bg {
28+
color: #0e717c;
29+
}
30+
31+
.ansi-white-fg, .ansi-white-bg {
32+
color: #efefef;
33+
}
34+
35+
.ansi-bright-black-fg, .ansi-bright-black-bg {
36+
color: #424242;
37+
}
38+
39+
.ansi-bright-red-fg, .ansi-bright-red-bg {
40+
color: #e83b3f;
41+
}
42+
43+
.ansi-bright-green-fg, .ansi-bright-green-bg {
44+
color: #7aba3a;
45+
}
46+
47+
.ansi-bright-yellow-fg, .ansi-bright-yellow-bg {
48+
color: #ffea2e;
49+
}
50+
51+
.ansi-bright-blue-fg, .ansi-bright-blue-bg {
52+
color: #54a4f3;
53+
}
54+
55+
.ansi-bright-magenta-fg, .ansi-bright-magenta-bg {
56+
color: #aa4dbc;
57+
}
58+
59+
.ansi-bright-cyan-fg, .ansi-bright-cyan-bg {
60+
color: #26bbd1;
61+
}
62+
63+
.ansi-bright-white-fg, .ansi-bright-white-bg {
64+
color: #d9d9d9;
65+
}
66+
}

0 commit comments

Comments
 (0)