Skip to content

Commit 0f8118b

Browse files
feat(themes): add tui theme
1 parent 1a9953a commit 0f8118b

3 files changed

Lines changed: 136 additions & 0 deletions

File tree

oranda-css/css/main.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@
1010
@import "themes/axo.css";
1111
@import "themes/hacker.css";
1212
@import "themes/cupcake.css";
13+
@import "themes/tui.css";

oranda-css/css/themes/tui.css

Lines changed: 133 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
1+
@import url('https://unpkg.com/fixedsys-css/css/fixedsys.css');
2+
3+
html.tui ::selection {
4+
@apply text-axo-black;
5+
background-color: white;
6+
7+
-webkit-text-fill-color: var(--color-axo-black);
8+
}
9+
10+
html.tui body {
11+
@apply bg-axo-black text-zinc-100;
12+
font-family: "fixedsys", monospace;
13+
}
14+
15+
html.tui code,
16+
html.tui pre {
17+
@apply text-zinc-300;
18+
font-family: "fixedsys", monospace;
19+
}
20+
21+
html.tui .button {
22+
@apply rounded-none;
23+
box-shadow: 10px 10px 10px #000;
24+
}
25+
26+
html.tui blockquote {
27+
@apply bg-zinc-100 p-2 border-double border-axo-black border-8;
28+
box-shadow: 0 0 0 8px #f4f4f5;
29+
}
30+
31+
html.tui blockquote p {
32+
@apply text-axo-black p-0 m-0;
33+
}
34+
35+
html.tui h2,
36+
html.tui h3,
37+
html.tui h4,
38+
html.tui h5,
39+
html.tui h6 {
40+
@apply text-zinc-100;
41+
text-transform: uppercase;
42+
}
43+
44+
html.tui .repo_banner > a,
45+
html.tui footer {
46+
@apply text-zinc-100;
47+
}
48+
49+
html.tui p,
50+
html.tui table {
51+
@apply text-zinc-100;
52+
}
53+
54+
html.tui p {
55+
@apply pl-8;
56+
}
57+
58+
html.tui .title {
59+
@apply text-left text-zinc-100 relative inline-block ml-8;
60+
}
61+
62+
@keyframes blink-animation {
63+
to {
64+
visibility: hidden;
65+
}
66+
}
67+
68+
html.tui .title:after {
69+
content: "";
70+
height: 70px;
71+
animation: blink-animation 1s steps(5, start) infinite;
72+
@apply block absolute left-full ml-3 w-4 top-3 bg-cyan-700;
73+
}
74+
75+
html.tui .title::before {
76+
content: "> ";
77+
@apply block text-zinc-800 text-5xl absolute top-1/2 -translate-y-1/2 -left-8 mt-2;
78+
}
79+
80+
html.tui div.table .th,
81+
html.tui h1 {
82+
@apply text-cyan-700;
83+
}
84+
85+
html.tui a {
86+
@apply text-cyan-700 hover:decoration-cyan-700 p-2;
87+
}
88+
89+
html.tui a:focus,
90+
html.tui .button.primary:focus {
91+
@apply text-axo-black bg-zinc-100 p-2;
92+
}
93+
94+
html.tui .detect {
95+
@apply p-2;
96+
}
97+
98+
html.tui .axo-gradient {
99+
background: none;
100+
}
101+
102+
html.tui .nav ul {
103+
@apply justify-start;
104+
}
105+
106+
html.tui .button.primary {
107+
@apply text-zinc-100 bg-cyan-700 hover:bg-zinc-100 hover:text-axo-black;
108+
}
109+
110+
html.tui .artifact-header > h4,
111+
html.tui .artifact-header>div:not(.install-code-wrapper) {
112+
@apply text-left items-start justify-start;
113+
}
114+
115+
html.tui .releases-nav ul li a {
116+
@apply text-cyan-700;
117+
}
118+
119+
html.hacker .releases-nav ul li:before {
120+
@apply bg-gray-600;
121+
}
122+
123+
html.hacker .releases-nav ul {
124+
@apply border-l-gray-600;
125+
}
126+
127+
html.hacker .prereleases-toggle input:checked {
128+
@apply bg-orange-500;
129+
}
130+
131+
html.hacker .releases-nav ul li a {
132+
@apply hover:decoration-orange-500;
133+
}

src/config/theme.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@ pub enum Theme {
77
Dark,
88
Hacker,
99
Cupcake,
10+
Tui,
1011
}
1112

1213
pub fn css_class(theme: &Theme) -> &'static str {
1314
match theme {
1415
Theme::Dark => "dark",
16+
Theme::Tui => "tui",
1517
Theme::Hacker => "hacker",
1618
Theme::Cupcake => "cupcake",
1719
_ => "light",

0 commit comments

Comments
 (0)