@gusnips/vite 0.8.44 → 0.8.45

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.
@@ -0,0 +1,32 @@
1
+ /* The same palette with both dark blocks wrapped in @media. */
2
+ :root {
3
+ --ground: #ffffff;
4
+ --ink: #1a1a1a;
5
+ --muted: #555555;
6
+ --line: #767676;
7
+ --accent: #0b5cad;
8
+ --accent-ink: #fff;
9
+ --radius: 8px;
10
+ }
11
+
12
+ @media screen {
13
+ :root[data-theme="dark"] {
14
+ --ground: #121212;
15
+ --ink: #f2f2f2;
16
+ --muted: #b3b3b3;
17
+ --line: #8a8a8a;
18
+ --accent: #7ab7ff;
19
+ --accent-ink: #0a1a2b;
20
+ }
21
+
22
+ @media (prefers-color-scheme: dark) {
23
+ :root:not([data-theme]) {
24
+ --ground: #121212;
25
+ --ink: #f2f2f2;
26
+ --muted: #b3b3b3;
27
+ --line: #8a8a8a;
28
+ --accent: #7ab7ff;
29
+ --accent-ink: #0a1a2b;
30
+ }
31
+ }
32
+ }
@@ -0,0 +1,30 @@
1
+ /* Flat colour blocks, written the way a plain-CSS app writes them. A {brace} in a comment is no block. */
2
+ :root {
3
+ --ground: #ffffff;
4
+ --ink: #1a1a1a;
5
+ --muted: #555555;
6
+ --line: #767676;
7
+ --accent: #0b5cad;
8
+ --accent-ink: #fff;
9
+ --radius: 8px;
10
+ }
11
+
12
+ :root[data-theme="dark"] {
13
+ --ground: #121212;
14
+ --ink: #f2f2f2;
15
+ --muted: #b3b3b3;
16
+ --line: #8a8a8a;
17
+ --accent: #7ab7ff;
18
+ --accent-ink: #0a1a2b;
19
+ }
20
+
21
+ @media (prefers-color-scheme: dark) {
22
+ :root:not([data-theme]) {
23
+ --ground: #121212;
24
+ --ink: #f2f2f2;
25
+ --muted: #b3b3b3;
26
+ --line: #8a8a8a;
27
+ --accent: #7ab7ff;
28
+ --accent-ink: #0a1a2b;
29
+ }
30
+ }
package/src/index.ts CHANGED
@@ -13,7 +13,7 @@
13
13
  * otherwise force on everyone: the vite config preset at `@gusnips/vite/preset` (the React and
14
14
  * Tailwind plugins), `renderTree` at `@gusnips/vite/render`, the theme pre-paint plugin at
15
15
  * `@gusnips/vite/theme` (both React itself), the catalog check at `@gusnips/vite/i18n`, and the
16
- * contrast gate at `@gusnips/vite/contrast` (tailwindcss). The last two run in CI and never in a
16
+ * contrast gate at `@gusnips/vite/contrast` (tailwindcss, for the class reading only). The last two run in CI and never in a
17
17
  * build. Nothing here imports React, vite or tailwindcss, so a prerender script, an OG generator
18
18
  * and a repo that only wants a sitemap all install exactly what they use.
19
19
  */