@t8/docsgen 0.1.7 → 0.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/css/base.css CHANGED
@@ -47,9 +47,6 @@ html {
47
47
  background-color: var(--b0);
48
48
  background-position: 50% 0;
49
49
  }
50
- html[data-theme="t8"] {
51
- --color-scheme: #410fcd;
52
- }
53
50
  body {
54
51
  color: inherit;
55
52
  background-color: transparent;
@@ -1,24 +1,27 @@
1
- html[data-theme="t8"] {
2
- background:
3
- linear-gradient(to bottom right, #90eec6, #9a70ce) 50% 50% / cover no-repeat;
4
- }
5
- @media (max-width: 840px) {
6
- html[data-theme="t8"] {
7
- background:
8
- linear-gradient(to bottom, #90eec6, #9a70ce) 50% 50% / cover no-repeat;
9
- }
1
+ :root {
2
+ --g0: color(
3
+ from var(--b1) srgb calc(0.5 * r + 0.5) calc(0.5 * g + 0.5)
4
+ calc(0.5 * b + 0.5)
5
+ );
6
+ --g1: color(from var(--g0) xyz calc(0.25 * x) calc(1.5 * y) calc(0.5 * z));
10
7
  }
11
8
  @media (prefers-color-scheme: dark) {
12
- html[data-theme="t8"] {
13
- background:
14
- linear-gradient(to bottom right, #14a482, #6649b5) 50% 50% / cover
15
- no-repeat;
9
+ :root {
10
+ --g0: color(
11
+ from var(--b1) srgb calc(0.5 * r + 0.3) calc(0.5 * g + 0.3)
12
+ calc(0.5 * b + 0.3)
13
+ );
16
14
  }
17
15
  }
18
- @media (max-width: 840px) and (prefers-color-scheme: dark) {
19
- html[data-theme="t8"] {
16
+ html {
17
+ background:
18
+ linear-gradient(to bottom right, var(--g1), var(--g0)) 50% 50% / cover
19
+ no-repeat;
20
+ }
21
+ @media (max-width: 840px) {
22
+ html {
20
23
  background:
21
- linear-gradient(to bottom, #14a482, #6649b5) 50% 50% / cover no-repeat;
24
+ linear-gradient(to bottom, var(--g1), var(--g0)) 50% 50% / cover no-repeat;
22
25
  }
23
26
  }
24
27
  body {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@t8/docsgen",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "description": "",
5
5
  "main": "dist/bin.js",
6
6
  "bin": {
package/src/css/base.css CHANGED
@@ -47,9 +47,6 @@ html {
47
47
  background-color: var(--b0);
48
48
  background-position: 50% 0;
49
49
  }
50
- html[data-theme="t8"] {
51
- --color-scheme: #410fcd;
52
- }
53
50
  body {
54
51
  color: inherit;
55
52
  background-color: transparent;
package/src/css/index.css CHANGED
@@ -1,24 +1,27 @@
1
- html[data-theme="t8"] {
2
- background:
3
- linear-gradient(to bottom right, #90eec6, #9a70ce) 50% 50% / cover no-repeat;
4
- }
5
- @media (max-width: 840px) {
6
- html[data-theme="t8"] {
7
- background:
8
- linear-gradient(to bottom, #90eec6, #9a70ce) 50% 50% / cover no-repeat;
9
- }
1
+ :root {
2
+ --g0: color(
3
+ from var(--b1) srgb calc(0.5 * r + 0.5) calc(0.5 * g + 0.5)
4
+ calc(0.5 * b + 0.5)
5
+ );
6
+ --g1: color(from var(--g0) xyz calc(0.25 * x) calc(1.5 * y) calc(0.5 * z));
10
7
  }
11
8
  @media (prefers-color-scheme: dark) {
12
- html[data-theme="t8"] {
13
- background:
14
- linear-gradient(to bottom right, #14a482, #6649b5) 50% 50% / cover
15
- no-repeat;
9
+ :root {
10
+ --g0: color(
11
+ from var(--b1) srgb calc(0.5 * r + 0.3) calc(0.5 * g + 0.3)
12
+ calc(0.5 * b + 0.3)
13
+ );
16
14
  }
17
15
  }
18
- @media (max-width: 840px) and (prefers-color-scheme: dark) {
19
- html[data-theme="t8"] {
16
+ html {
17
+ background:
18
+ linear-gradient(to bottom right, var(--g1), var(--g0)) 50% 50% / cover
19
+ no-repeat;
20
+ }
21
+ @media (max-width: 840px) {
22
+ html {
20
23
  background:
21
- linear-gradient(to bottom, #14a482, #6649b5) 50% 50% / cover no-repeat;
24
+ linear-gradient(to bottom, var(--g1), var(--g0)) 50% 50% / cover no-repeat;
22
25
  }
23
26
  }
24
27
  body {