Skip to content

Commit 9646f30

Browse files
committed
Color Theming
1 parent 88f1eaf commit 9646f30

File tree

6 files changed

+21
-17
lines changed

6 files changed

+21
-17
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
stable/*/
44
nightly/*/
55
.obsidian/
6-
logo/logo.html
6+
logo/*

documentation.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<head>
55
<title>ZephyrJS | Documentation</title>
6-
<link rel="preload" as="style" href="style.css" onload="this.rel='stylesheet'">
6+
<link rel="stylesheet" href="style.css">
77
</head>
88

99
<body>

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<meta property="og:url" content="https://ottcs.github.io/ZephyrJS/" />
99
<meta property="og:image" content="/logo/banner.png" />
1010
<title>ZephyrJS | Home</title>
11-
<link rel="preload" as="style" href="style.css" onload="this.rel='stylesheet'">
11+
<link rel="stylesheet" href="/style.css">
1212
</head>
1313

1414
<body>

keyName.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
input.value = e.code;
1111
}
1212
</script>
13-
<link rel="preload" as="style" href="style.css" onload="this.rel='stylesheet'">
13+
<link rel="stylesheet" href="style.css">
1414
<style>
1515
body {
1616
width: 80vw;

logo/banner.png

135 KB
Loading

style.css

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
:root {
2-
--accent: #EF6F6C;
3-
--deprecated: #f0cf6b;
4-
--highlight: #6C6FEF;
5-
--nightly: #a36cef;
2+
/* Main Colors*/
3+
--primary: #ef6f6c;
4+
--warning: #f0cf6b;
5+
--success: #6bf097;
6+
--message: #6c6fef;
7+
--advance: #a36cef;
8+
/* Specific Colors*/
9+
--pixi: #ea1e63;
10+
/* FORMAT */
611
--anim-list: border-color 0.2s, color 0.2s;
712
--scale: 32px;
813
}
@@ -39,7 +44,7 @@ h5,
3944
h6 {
4045
margin-top: var(--scale);
4146
font-weight: 600;
42-
color: var(--accent);
47+
color: var(--primary);
4348
}
4449

4550
p {
@@ -65,8 +70,8 @@ a {
6570
}
6671

6772
a:hover {
68-
border-color: var(--accent);
69-
color: var(--accent);
73+
border-color: var(--primary);
74+
color: var(--primary);
7075
}
7176

7277
dt {
@@ -81,23 +86,22 @@ dd {
8186
}
8287

8388
strong {
84-
color: var(--accent);
89+
color: var(--primary);
8590
}
8691

8792
.return {
88-
color: var(--highlight);
93+
color: var(--message);
8994
}
9095

9196
.deprecated {
92-
color: var(--deprecated);
97+
color: var(--warning);
9398
text-decoration: line-through;
9499
}
95100

96101
.nightly {
97-
color: var(--nightly);
102+
color: var(--advance);
98103
}
99104

100105
.pixi {
101-
color: #ea1e63;
102-
border-color: #ea1e63;
106+
color: var(--pixi);
103107
}

0 commit comments

Comments
 (0)