@riebeckite/theme-rerurate 0.0.26 → 0.0.28

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_ja.md CHANGED
@@ -80,8 +80,8 @@ Rerurate の視覚表現をもとにした Theme です。
80
80
  npm install @riebeckite/theme-rerurate
81
81
  ```
82
82
 
83
- Theme の factory 名と設定項目は、実装とこの正本ページを一次情報として確認してください。`riebeckite.config.ts` の `theme` に設定して利用します。
83
+ Theme の factory 名と設定項目は、実装とこのページを一次情報として確認してください。`riebeckite.config.ts` の `theme` に設定して利用します。
84
84
 
85
85
  ## 詳細仕様
86
86
 
87
- 設定項目や Theme 固有の仕様は この正本ページを参照してください。Theme の仕組みは [Theme System](https://github.com/Rerurate514/riebeckite/blob/main/docs/docs/framework/theme-system.ja.md)、Theme を作る場合は [Writing a Theme](https://github.com/Rerurate514/riebeckite/blob/main/docs/docs/themes/writing-a-theme.ja.md) を参照してください。
87
+ 設定項目や Theme 固有の仕様は このページを参照してください。Theme の仕組みは [Theme System](https://github.com/Rerurate514/riebeckite/blob/main/docs/docs/framework/theme-system.ja.md)、Theme を作る場合は [Writing a Theme](https://github.com/Rerurate514/riebeckite/blob/main/docs/docs/themes/writing-a-theme.ja.md) を参照してください。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riebeckite/theme-rerurate",
3
- "version": "0.0.26",
3
+ "version": "0.0.28",
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.26"
19
+ "@riebeckite/core": "0.0.28"
20
20
  },
21
21
  "publishConfig": {
22
22
  "access": "public"
package/styles/theme.css CHANGED
@@ -38,7 +38,6 @@
38
38
  var(--rb-color-ink) 8%,
39
39
  transparent
40
40
  );
41
- --rb-color-code-surface: #1c1a17;
42
41
  --rb-color-overlay: rgb(0 0 0 / 0.4);
43
42
  --rb-font-body:
44
43
  Futura, "Futura PT", "Helvetica Neue", Helvetica, Arial, "Hiragino Sans",
@@ -75,11 +74,6 @@
75
74
  var(--rb-color-ink) 12%,
76
75
  transparent
77
76
  );
78
- --rb-color-code-surface: color-mix(
79
- in srgb,
80
- var(--rb-color-ink) 12%,
81
- var(--rb-color-paper)
82
- );
83
77
  --rb-color-overlay: rgb(0 0 0 / 0.6);
84
78
  }
85
79
 
@@ -99,11 +93,6 @@
99
93
  var(--rb-color-ink) 12%,
100
94
  transparent
101
95
  );
102
- --rb-color-code-surface: color-mix(
103
- in srgb,
104
- var(--rb-color-ink) 12%,
105
- var(--rb-color-paper)
106
- );
107
96
  --rb-color-overlay: rgb(0 0 0 / 0.6);
108
97
  }
109
98
  }
@@ -596,14 +585,34 @@
596
585
  padding: 0.85rem 1rem;
597
586
  border: 1px solid var(--rb-color-border);
598
587
  border-radius: 0;
599
- background: #1c1a17;
600
- color: #f6efe2;
588
+ background: var(--rb-color-ink);
589
+ color: var(--rb-color-paper);
601
590
  font-family: var(--rb-font-mono);
602
591
  font-size: 0.85rem;
603
592
  line-height: 1.65;
604
593
  overflow-x: auto;
605
594
  }
606
595
 
596
+ :where(
597
+ :is(:root, .rb-theme-root)[data-theme-name="rerurate"][data-theme="dark"]
598
+ .rb-article-content
599
+ pre:not(:where(.rr-code *))
600
+ ) {
601
+ background: var(--rb-color-paper);
602
+ color: var(--rb-color-ink);
603
+ }
604
+
605
+ @media (prefers-color-scheme: dark) {
606
+ :where(
607
+ :is(:root, .rb-theme-root)[data-theme-name="rerurate"]:not([data-theme])
608
+ .rb-article-content
609
+ pre:not(:where(.rr-code *))
610
+ ) {
611
+ background: var(--rb-color-paper);
612
+ color: var(--rb-color-ink);
613
+ }
614
+ }
615
+
607
616
  :is(:root, .rb-theme-root)[data-theme-name="rerurate"]
608
617
  .rb-article-content
609
618
  pre:not(:where(.rr-code *)):has(+ :is(h1, h2)) {
@@ -657,7 +666,6 @@
657
666
  /* ---- Article chrome: flat rules, square corners. ---- */
658
667
  :is(:root, .rb-theme-root)[data-theme-name="rerurate"] .rb-article-footer {
659
668
  margin-top: 3rem;
660
- padding-top: 1.25rem;
661
669
  border-top: 1px solid var(--rb-color-border);
662
670
  font-size: 0.9rem;
663
671
  }
@@ -685,52 +693,6 @@
685
693
  border-radius: 0;
686
694
  }
687
695
 
688
- :is(:root, .rb-theme-root)[data-theme-name="rerurate"]
689
- .rr-code:not([data-terminal="true"]) {
690
- --rr-code-paper: var(--rb-color-code-surface);
691
- --rr-code-ink: #f6efe2;
692
- }
693
-
694
- :is(:root, .rb-theme-root)[data-theme-name="rerurate"]
695
- .rr-code:not([data-terminal="true"])
696
- .rr-code__code,
697
- :is(:root, .rb-theme-root)[data-theme-name="rerurate"]
698
- .rr-code:not([data-terminal="true"])
699
- .rr-code__code
700
- span {
701
- color: var(--shiki-dark, inherit);
702
- }
703
-
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
- ) {
709
- background: var(--rb-color-code-background);
710
- color: var(--rb-color-ink);
711
- }
712
-
713
- :is(:root, .rb-theme-root)[data-theme-name="rerurate"][data-theme="dark"]
714
- .rr-code:not([data-terminal="true"]) {
715
- --rr-code-ink: var(--rb-color-ink);
716
- }
717
-
718
- @media (prefers-color-scheme: dark) {
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
- ) {
724
- background: var(--rb-color-code-background);
725
- color: var(--rb-color-ink);
726
- }
727
-
728
- :is(:root, .rb-theme-root)[data-theme-name="rerurate"]:not([data-theme])
729
- .rr-code:not([data-terminal="true"]) {
730
- --rr-code-ink: var(--rb-color-ink);
731
- }
732
- }
733
-
734
696
  :is(:root, .rb-theme-root)[data-theme-name="rerurate"] .rr-code pre {
735
697
  margin: 0;
736
698
  border: 0;
@@ -750,6 +712,13 @@
750
712
 
751
713
  /* Callouts: flat Paper/Ink, 1px rule, Orange left rule, ALL CAPS title. */
752
714
  :is(:root, .rb-theme-root)[data-theme-name="rerurate"] .rr-callout {
715
+ --rr-callout-title-color: var(--rb-color-ink);
716
+ --rr-callout-title-font-family: var(--rb-font-heading);
717
+ --rr-callout-title-font-size: 0.72rem;
718
+ --rr-callout-title-font-weight: 600;
719
+ --rr-callout-title-letter-spacing: 0.16em;
720
+ --rr-callout-title-text-transform: uppercase;
721
+ --rr-callout-icon-color: var(--rb-color-accent);
753
722
  padding: 1rem 1.25rem;
754
723
  border: 1px solid var(--rb-color-border);
755
724
  border-left: 3px solid var(--rb-color-accent);
@@ -763,39 +732,14 @@
763
732
  color: var(--rb-color-ink);
764
733
  }
765
734
 
766
- :is(:root, .rb-theme-root)[data-theme-name="rerurate"]
767
- .rr-callout
768
- .rr-callout__title {
769
- font-family: var(--rb-font-heading);
770
- font-size: 0.72rem;
771
- font-weight: 600;
772
- letter-spacing: 0.16em;
773
- text-transform: uppercase;
774
- color: var(--rb-color-ink);
775
- }
776
-
777
- :is(:root, .rb-theme-root)[data-theme-name="rerurate"]
778
- .rr-callout
779
- .rr-callout__icon {
780
- color: var(--rb-color-accent);
781
- }
782
-
783
735
  :is(:root, .rb-theme-root)[data-theme-name="rerurate"] .rr-table-of-contents {
736
+ --rr-table-of-contents-eyebrow-font-size: 1rem;
737
+ --rr-table-of-contents-eyebrow-margin-block-end: 1rem;
738
+ --rr-table-of-contents-item-line-height: 22px;
784
739
  padding: 1rem 1.15rem;
785
740
  font-size: 0.9rem;
786
741
  }
787
742
 
788
- :is(:root, .rb-theme-root)[data-theme-name="rerurate"]
789
- .rr-table-of-contents__eyebrow {
790
- font-size: 1rem;
791
- margin-bottom: 1rem;
792
- }
793
-
794
- :is(:root, .rb-theme-root)[data-theme-name="rerurate"]
795
- .rr-table-of-contents__item {
796
- line-height: 22;
797
- }
798
-
799
743
  :is(:root, .rb-theme-root)[data-theme-name="rerurate"] .rr-backlinks {
800
744
  margin-top: 3.5rem;
801
745
  padding-top: 1.5rem;
@@ -838,8 +782,8 @@
838
782
  border-radius: 0;
839
783
  }
840
784
 
841
- :is(:root, .rb-theme-root)[data-theme-name="rerurate"] .rr-lightbox__image {
842
- border-radius: 0;
785
+ :is(:root, .rb-theme-root)[data-theme-name="rerurate"] .rr-lightbox {
786
+ --rr-lightbox-image-border-radius: 0;
843
787
  }
844
788
 
845
789
  /* ---- Page-load composition: rule draw-in, title rise, rule -> diagram.