Skip to content

Commit 7257e74

Browse files
committed
Add github-from-css theme
1 parent 087a41e commit 7257e74

16 files changed

+851
-71
lines changed

.changeset/purple-years-scream.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@code-hike/lighter": patch
3+
---
4+
5+
Support css variables

lib/dist/browser.esm.mjs

+1
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ const THEME_NAMES = [
344344
"dracula",
345345
"github-dark",
346346
"github-dark-dimmed",
347+
"github-from-css",
347348
"github-light",
348349
"light-plus",
349350
"material-darker",

lib/dist/index.cjs.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/dist/index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ type FinalTheme = {
2727
[key: string]: string;
2828
};
2929
};
30-
declare const THEME_NAMES: readonly ["dark-plus", "dracula-soft", "dracula", "github-dark", "github-dark-dimmed", "github-light", "light-plus", "material-darker", "material-default", "material-from-css", "material-lighter", "material-ocean", "material-palenight", "min-dark", "min-light", "monokai", "nord", "one-dark-pro", "poimandres", "slack-dark", "slack-ochin", "solarized-dark", "solarized-light"];
30+
declare const THEME_NAMES: readonly ["dark-plus", "dracula-soft", "dracula", "github-dark", "github-dark-dimmed", "github-from-css", "github-light", "light-plus", "material-darker", "material-default", "material-from-css", "material-lighter", "material-ocean", "material-palenight", "min-dark", "min-light", "monokai", "nord", "one-dark-pro", "poimandres", "slack-dark", "slack-ochin", "solarized-dark", "solarized-light"];
3131
type NamesTuple$1 = typeof THEME_NAMES;
3232
type StringTheme = NamesTuple$1[number];
3333
type Theme = StringTheme | RawTheme;

lib/dist/index.esm.mjs

+1
Original file line numberDiff line numberDiff line change
@@ -692,6 +692,7 @@ const THEME_NAMES = [
692692
"dracula",
693693
"github-dark",
694694
"github-dark-dimmed",
695+
"github-from-css",
695696
"github-light",
696697
"light-plus",
697698
"material-darker",

lib/src/theme.ts

+1
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ export const THEME_NAMES = [
163163
"dracula",
164164
"github-dark",
165165
"github-dark-dimmed",
166+
"github-from-css",
166167
"github-light",
167168
"light-plus",
168169
"material-darker",

lib/themes/github-from-css.css

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
:root {
2+
--ch-0: dark;
3+
--ch-1: #8b949e;
4+
--ch-2: #79c0ff;
5+
--ch-3: #ffa657;
6+
--ch-4: #c9d1d9;
7+
--ch-5: #d2a8ff;
8+
--ch-6: #7ee787;
9+
--ch-7: #ff7b72;
10+
--ch-8: #a5d6ff;
11+
--ch-9: #ffa198;
12+
--ch-10: #f0f6fc;
13+
--ch-11: #490202;
14+
--ch-12: #04260f;
15+
--ch-13: #5a1e02;
16+
--ch-14: #161b22;
17+
--ch-15: #8b949e;
18+
--ch-16: #0d1117;
19+
--ch-17: #264f78;
20+
--ch-18: #3794ff;
21+
--ch-19: #ffffff0b;
22+
--ch-20: #6e7681;
23+
--ch-21: #010409;
24+
--ch-22: #30363d;
25+
--ch-23: #f78166;
26+
--ch-24: #6e768166;
27+
--ch-25: #6e76811a;
28+
}
29+
30+
[data-theme="light"] {
31+
--ch-0: light;
32+
--ch-1: #6e7781;
33+
--ch-2: #0550ae;
34+
--ch-3: #953800;
35+
--ch-4: #24292f;
36+
--ch-5: #8250df;
37+
--ch-6: #116329;
38+
--ch-7: #cf222e;
39+
--ch-8: #0a3069;
40+
--ch-9: #82071e;
41+
--ch-10: #f6f8fa;
42+
--ch-11: #ffebe9;
43+
--ch-12: #dafbe1;
44+
--ch-13: #ffd8b5;
45+
--ch-14: #eaeef2;
46+
--ch-15: #57606a;
47+
--ch-16: #ffffff;
48+
--ch-17: #add6ff;
49+
--ch-18: #1a85ff;
50+
--ch-19: #fdff0033;
51+
--ch-20: #8c959f;
52+
--ch-21: #f6f8fa;
53+
--ch-22: #d0d7de;
54+
--ch-23: #fd8c73;
55+
--ch-24: #afb8c133;
56+
--ch-25: #eaeef280;
57+
}

0 commit comments

Comments
 (0)