@riebeckite/theme-rerurate 0.0.19 → 0.0.20

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/README.md CHANGED
@@ -122,7 +122,7 @@ Red and Green also back the functional `danger` / `success` tokens.
122
122
 
123
123
  ## See also
124
124
 
125
- - [Plugin guide](../../../docs/docs/reference/plugin-api.en.md)
125
+ - [Plugin guide](../../../docs/docs/reference/plugin-api.md)
126
126
  - [`@riebeckite/theme-default`](../default/README.md)
127
127
  - [`@riebeckite/theme-sakura`](../sakura/README.md)
128
128
  - [`@riebeckite/theme-tokyonight`](../tokyonight/README.md)
package/README_ja.md CHANGED
@@ -62,7 +62,7 @@ export default defineConfig({
62
62
 
63
63
  ## 関連資料
64
64
 
65
- - [テーマシステム](../../../docs/docs/reference/theme-api.md)
65
+ - [テーマシステム](../../../docs/docs/reference/theme-api.ja.md)
66
66
  - [`@riebeckite/theme-default`](../default/README_ja.md)
67
67
  - [`@riebeckite/theme-sakura`](../sakura/README_ja.md)
68
68
  - [`@riebeckite/theme-tokyonight`](../tokyonight/README_ja.md)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riebeckite/theme-rerurate",
3
- "version": "0.0.19",
3
+ "version": "0.0.20",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "main": "./dist/src/index.js",
@@ -16,7 +16,7 @@
16
16
  "./styles/theme.css": "./styles/theme.css"
17
17
  },
18
18
  "dependencies": {
19
- "@riebeckite/core": "0.0.19"
19
+ "@riebeckite/core": "0.0.20"
20
20
  },
21
21
  "publishConfig": {
22
22
  "access": "public"
package/styles/theme.css CHANGED
@@ -38,6 +38,7 @@
38
38
  var(--rb-color-ink) 8%,
39
39
  transparent
40
40
  );
41
+ --rb-color-code-surface: #1c1a17;
41
42
  --rb-color-overlay: rgb(0 0 0 / 0.4);
42
43
  --rb-font-body:
43
44
  Futura, "Futura PT", "Helvetica Neue", Helvetica, Arial, "Hiragino Sans",
@@ -74,6 +75,11 @@
74
75
  var(--rb-color-ink) 12%,
75
76
  transparent
76
77
  );
78
+ --rb-color-code-surface: color-mix(
79
+ in srgb,
80
+ var(--rb-color-ink) 12%,
81
+ var(--rb-color-paper)
82
+ );
77
83
  --rb-color-overlay: rgb(0 0 0 / 0.6);
78
84
  }
79
85
 
@@ -93,6 +99,11 @@
93
99
  var(--rb-color-ink) 12%,
94
100
  transparent
95
101
  );
102
+ --rb-color-code-surface: color-mix(
103
+ in srgb,
104
+ var(--rb-color-ink) 12%,
105
+ var(--rb-color-paper)
106
+ );
96
107
  --rb-color-overlay: rgb(0 0 0 / 0.6);
97
108
  }
98
109
  }
@@ -576,9 +587,11 @@
576
587
  font-size: 0.85em;
577
588
  }
578
589
 
579
- :is(:root, .rb-theme-root)[data-theme-name="rerurate"]
580
- .rb-article-content
581
- pre:not(:where(.rr-code *)) {
590
+ :where(
591
+ :is(:root, .rb-theme-root)[data-theme-name="rerurate"]
592
+ .rb-article-content
593
+ pre:not(:where(.rr-code *))
594
+ ) {
582
595
  margin: 1.75rem 0 0;
583
596
  padding: 0.85rem 1rem;
584
597
  border: 1px solid var(--rb-color-border);
@@ -674,7 +687,7 @@
674
687
 
675
688
  :is(:root, .rb-theme-root)[data-theme-name="rerurate"]
676
689
  .rr-code:not([data-terminal="true"]) {
677
- --rr-code-paper: #1c1a17;
690
+ --rr-code-paper: var(--rb-color-code-surface);
678
691
  --rr-code-ink: #f6efe2;
679
692
  }
680
693
 
@@ -688,30 +701,32 @@
688
701
  color: var(--shiki-dark, inherit);
689
702
  }
690
703
 
691
- :is(:root, .rb-theme-root)[data-theme-name="rerurate"][data-theme="dark"]
692
- .rb-article-content
693
- pre:not(:where(.rr-code *)) {
704
+ :where(
705
+ :is(:root, .rb-theme-root)[data-theme-name="rerurate"][data-theme="dark"]
706
+ .rb-article-content
707
+ pre:not(:where(.rr-code *))
708
+ ) {
694
709
  background: var(--rb-color-code-background);
695
710
  color: var(--rb-color-ink);
696
711
  }
697
712
 
698
713
  :is(:root, .rb-theme-root)[data-theme-name="rerurate"][data-theme="dark"]
699
714
  .rr-code:not([data-terminal="true"]) {
700
- --rr-code-paper: var(--rb-color-code-background);
701
715
  --rr-code-ink: var(--rb-color-ink);
702
716
  }
703
717
 
704
718
  @media (prefers-color-scheme: dark) {
705
- :is(:root, .rb-theme-root)[data-theme-name="rerurate"]:not([data-theme])
706
- .rb-article-content
707
- pre:not(:where(.rr-code *)) {
719
+ :where(
720
+ :is(:root, .rb-theme-root)[data-theme-name="rerurate"]:not([data-theme])
721
+ .rb-article-content
722
+ pre:not(:where(.rr-code *))
723
+ ) {
708
724
  background: var(--rb-color-code-background);
709
725
  color: var(--rb-color-ink);
710
726
  }
711
727
 
712
728
  :is(:root, .rb-theme-root)[data-theme-name="rerurate"]:not([data-theme])
713
729
  .rr-code:not([data-terminal="true"]) {
714
- --rr-code-paper: var(--rb-color-code-background);
715
730
  --rr-code-ink: var(--rb-color-ink);
716
731
  }
717
732
  }
@@ -728,6 +743,11 @@
728
743
  border-radius: 0;
729
744
  }
730
745
 
746
+ :is(:root, .rb-theme-root)[data-theme-name="rerurate"] .rr-code-tabs .rr-code {
747
+ margin-block: 0;
748
+ border: 0;
749
+ }
750
+
731
751
  /* Callouts: flat Paper/Ink, 1px rule, Orange left rule, ALL CAPS title. */
732
752
  :is(:root, .rb-theme-root)[data-theme-name="rerurate"] .rr-callout {
733
753
  padding: 1rem 1.25rem;
@@ -766,13 +786,13 @@
766
786
  }
767
787
 
768
788
  :is(:root, .rb-theme-root)[data-theme-name="rerurate"]
769
- .table-of-contents__eyebrow {
789
+ .rr-table-of-contents__eyebrow {
770
790
  font-size: 1rem;
771
791
  margin-bottom: 1rem;
772
792
  }
773
793
 
774
794
  :is(:root, .rb-theme-root)[data-theme-name="rerurate"]
775
- .table-of-contents__item {
795
+ .rr-table-of-contents__item {
776
796
  line-height: 22;
777
797
  }
778
798