nextjs-slides 0.2.0 → 0.3.0
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/slides.css +25 -7
- package/package.json +1 -1
package/dist/slides.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* nextjs-slides — Slide transition animations and code theme tokens */
|
|
2
2
|
|
|
3
|
-
/*
|
|
3
|
+
/* Default code theme — override --sh-* and --nxs-code-* in :root or .dark */
|
|
4
4
|
:root {
|
|
5
5
|
--nxs-code-bg: #ffffff;
|
|
6
6
|
--nxs-code-border: #eaeaea;
|
|
@@ -17,20 +17,38 @@
|
|
|
17
17
|
--sh-sign: #24292e;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
@media (prefers-color-scheme: dark) {
|
|
21
|
+
:root {
|
|
22
|
+
--nxs-code-bg: #0a0a0a;
|
|
23
|
+
--nxs-code-border: #262626;
|
|
24
|
+
--nxs-code-text: #ededed;
|
|
25
|
+
--sh-keyword: #ff7b72;
|
|
26
|
+
--sh-string: #a5d6ff;
|
|
27
|
+
--sh-property: #79c0ff;
|
|
28
|
+
--sh-class: #d2a8ff;
|
|
29
|
+
--sh-entity: #d2a8ff;
|
|
30
|
+
--sh-tag: #7ee787;
|
|
31
|
+
--sh-identifier: #ededed;
|
|
32
|
+
--sh-literal: #79c0ff;
|
|
33
|
+
--sh-comment: #7a7a7a;
|
|
34
|
+
--sh-sign: #ededed;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
20
38
|
.dark {
|
|
21
|
-
--nxs-code-bg: #
|
|
22
|
-
--nxs-code-border: #
|
|
23
|
-
--nxs-code-text: #
|
|
39
|
+
--nxs-code-bg: #0a0a0a;
|
|
40
|
+
--nxs-code-border: #262626;
|
|
41
|
+
--nxs-code-text: #ededed;
|
|
24
42
|
--sh-keyword: #ff7b72;
|
|
25
43
|
--sh-string: #a5d6ff;
|
|
26
44
|
--sh-property: #79c0ff;
|
|
27
45
|
--sh-class: #d2a8ff;
|
|
28
46
|
--sh-entity: #d2a8ff;
|
|
29
47
|
--sh-tag: #7ee787;
|
|
30
|
-
--sh-identifier: #
|
|
48
|
+
--sh-identifier: #ededed;
|
|
31
49
|
--sh-literal: #79c0ff;
|
|
32
|
-
--sh-comment: #
|
|
33
|
-
--sh-sign: #
|
|
50
|
+
--sh-comment: #7a7a7a;
|
|
51
|
+
--sh-sign: #ededed;
|
|
34
52
|
}
|
|
35
53
|
|
|
36
54
|
/* Map highlight.js to theme variables (all overwritable via --sh-*) */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nextjs-slides",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Composable slide deck primitives for Next.js — powered by React 19 ViewTransitions, Tailwind CSS, and highlight.js syntax highlighting.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|