Skip to content

Commit ee4ecce

Browse files
authored
feat: Added a Tokyonight for ST terminal (work on 0.9ver) (#262)
* Added a Tokyonight for ST terminal (work on 0.9ver) * fix README.md
1 parent b3cda0b commit ee4ecce

File tree

5 files changed

+170
-0
lines changed

5 files changed

+170
-0
lines changed

extras/st/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<h3 align="center">
2+
Tokyonight for <a href="https://st.suckless.org/">st</a>
3+
</h3>
4+
5+
### About
6+
7+
This port offers the colors needed for ST's header file.
8+
9+
### Usage
10+
11+
1. Choose your flavour.
12+
2. Copy the contents of `flavor.h` and replace into your st build's `config.h`.
13+
3. Then `make install` it in st folder.

extras/st/tokyonight_day.h

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/* Terminal colors (16 first used in escape sequence) */
2+
static const char *colorname[] = {
3+
/* 8 normal colors */
4+
"#e9e9ed",
5+
"#f52a65",
6+
"#587539",
7+
"#8c6c3e",
8+
"#2e7de9",
9+
"#9854f1",
10+
"#007197",
11+
"#6172b0",
12+
13+
/* 8 bright colors */
14+
"#a1a6c5",
15+
"#f52a65",
16+
"#587539",
17+
"#8c6c3e",
18+
"#2e7de9",
19+
"#9854f1",
20+
"#007197",
21+
"#3760bf",
22+
23+
[255] = 0,
24+
25+
/* more colors can be added after 255 to use with DefaultXX */
26+
"#3760bf",
27+
"#99a7df",
28+
"#3760bf", /* default foreground colour */
29+
"#e1e2e7", /* default background colour */
30+
};
31+
32+
/*
33+
* Default colors (colorname index)
34+
* foreground, background, cursor, reverse cursor
35+
*/
36+
unsigned int defaultfg = 258;
37+
unsigned int defaultbg = 259;
38+
unsigned int defaultcs = 256;
39+
static unsigned int defaultrcs = 257;

extras/st/tokyonight_moon.h

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/* Terminal colors (16 first used in escape sequence) */
2+
static const char *colorname[] = {
3+
/* 8 normal colors */
4+
"#1b1d2b",
5+
"#ff757f",
6+
"#c3e88d",
7+
"#ffc777",
8+
"#82aaff",
9+
"#c099ff",
10+
"#86e1fc",
11+
"#828bb8",
12+
13+
/* 8 bright colors */
14+
"#444a73",
15+
"#ff757f",
16+
"#c3e88d",
17+
"#ffc777",
18+
"#82aaff",
19+
"#c099ff",
20+
"#86e1fc",
21+
"#c8d3f5",
22+
23+
[255] = 0,
24+
25+
/* more colors can be added after 255 to use with DefaultXX */
26+
"#c8d3f5",
27+
"#3654a7",
28+
"#c8d3f5", /* default foreground colour */
29+
"#222436", /* default background colour */
30+
};
31+
32+
/*
33+
* Default colors (colorname index)
34+
* foreground, background, cursor, reverse cursor
35+
*/
36+
unsigned int defaultfg = 258;
37+
unsigned int defaultbg = 259;
38+
unsigned int defaultcs = 256;
39+
static unsigned int defaultrcs = 257;

extras/st/tokyonight_night.h

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/* Terminal colors (16 first used in escape sequence) */
2+
static const char *colorname[] = {
3+
/* 8 normal colors */
4+
"#15161e",
5+
"#f7768e",
6+
"#9ece6a",
7+
"#e0af68",
8+
"#7aa2f7",
9+
"#bb9af7",
10+
"#7dcfff",
11+
"#a9b1d6",
12+
13+
/* 8 bright colors */
14+
"#414868",
15+
"#f7768e",
16+
"#9ece6a",
17+
"#e0af68",
18+
"#7aa2f7",
19+
"#bb9af7",
20+
"#7dcfff",
21+
"#c0caf5",
22+
23+
[255] = 0,
24+
25+
/* more colors can be added after 255 to use with DefaultXX */
26+
"#c0caf5",
27+
"#33467c",
28+
"#c0caf5", /* default foreground colour */
29+
"#1a1b26", /* default background colour */
30+
};
31+
32+
/*
33+
* Default colors (colorname index)
34+
* foreground, background, cursor, reverse cursor
35+
*/
36+
unsigned int defaultfg = 258;
37+
unsigned int defaultbg = 259;
38+
unsigned int defaultcs = 256;
39+
static unsigned int defaultrcs = 257;

extras/st/tokyonight_storm.h

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
/* Terminal colors (16 first used in escape sequence) */
2+
static const char *colorname[] = {
3+
/* 8 normal colors */
4+
"#1d202f",
5+
"#f7768e",
6+
"#9ece6a",
7+
"#e0af68",
8+
"#7aa2f7",
9+
"#bb9af7",
10+
"#7dcfff",
11+
"#a9b1d6",
12+
13+
/* 8 bright colors */
14+
15+
"#414868",
16+
"#f7768e",
17+
"#9ece6a",
18+
"#e0af68",
19+
"#7aa2f7",
20+
"#bb9af7",
21+
"#7dcfff",
22+
"#c0caf5",
23+
24+
[255] = 0,
25+
26+
/* more colors can be added after 255 to use with DefaultXX */
27+
"#c0caf5",
28+
"#364a82",
29+
"#c0caf5", /* default foreground colour */
30+
"#24283b", /* default background colour */
31+
};
32+
33+
/*
34+
* Default colors (colorname index)
35+
* foreground, background, cursor, reverse cursor
36+
*/
37+
unsigned int defaultfg = 258;
38+
unsigned int defaultbg = 259;
39+
unsigned int defaultcs = 256;
40+
static unsigned int defaultrcs = 257;

0 commit comments

Comments
 (0)