@riebeckite/theme-minimal 0.0.20 → 0.0.22

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
@@ -1,5 +1,7 @@
1
1
  # @riebeckite/theme-minimal
2
2
 
3
+ <!-- Generated from docs/docs/themes/minimal.md. Edit the canonical documentation in docs/docs/themes and run `pnpm docs:sync`. -->
4
+
3
5
  A content-first, near-chromeless typographic theme for Riebeckite: "nothing but
4
6
  type and space". Monochrome paper/ink, system fonts only, no bundled fonts and
5
7
  no JavaScript.
@@ -134,10 +136,25 @@ is distributed here under the license stated in the package `LICENSE` file.
134
136
 
135
137
  ## See also
136
138
 
137
- - [Theme authoring contract](../../../docs/docs/reference/theme-api.md)
139
+ - [Theme authoring contract](https://github.com/Rerurate514/riebeckite/blob/main/docs/docs/reference/theme-api.md)
138
140
  - [`@riebeckite/theme-default`](../default/README.md)
139
141
  - [`@riebeckite/theme-sakura`](../sakura/README.md)
140
142
  - [`@riebeckite/theme-tokyonight`](../tokyonight/README.md)
141
143
  - [`@riebeckite/theme-gruvbox`](../gruvbox/README.md)
142
144
  - [`@riebeckite/theme-rerurate`](../rerurate/README.md)
143
145
 
146
+ ## Documentation site
147
+
148
+ A Theme that keeps decoration restrained so the content stays at the center.
149
+
150
+ ## Installation
151
+
152
+ ```bash
153
+ npm install @riebeckite/theme-minimal
154
+ ```
155
+
156
+ Check the implementation and this canonical page as the source of truth for the Theme's factory name and configuration options. Use it by assigning it to `theme` in `riebeckite.config.ts`.
157
+
158
+ ## Detailed specification
159
+
160
+ For configuration options and Theme-specific behavior, see this canonical page. For how Themes work, see [Theme System](https://github.com/Rerurate514/riebeckite/blob/main/docs/docs/framework/theme-system.md). To create a Theme, see [Writing a Theme](https://github.com/Rerurate514/riebeckite/blob/main/docs/docs/themes/writing-a-theme.md).
package/README_ja.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # @riebeckite/theme-minimal
2
2
 
3
+ <!-- Generated from docs/docs/themes/minimal.ja.md. Edit the canonical documentation in docs/docs/themes and run `pnpm docs:sync`. -->
4
+
3
5
  内容が主役で、装飾をほとんど持たないタイポグラフィ主体のテーマです。「文字と余白だけ」を方針に、モノクロの紙とインクで構成します。使うのはシステムフォントだけ、同梱フォントも JavaScript もありません。
4
6
 
5
7
  [English](./README.md)
@@ -88,10 +90,25 @@ Riebeckite theme based on the design principles of Minimal for Obsidian by Steph
88
90
 
89
91
  ## 関連資料
90
92
 
91
- - [テーマシステム](../../../docs/docs/reference/theme-api.ja.md)
93
+ - [テーマシステム](https://github.com/Rerurate514/riebeckite/blob/main/docs/docs/reference/theme-api.ja.md)
92
94
  - [`@riebeckite/theme-default`](../default/README_ja.md)
93
95
  - [`@riebeckite/theme-sakura`](../sakura/README_ja.md)
94
96
  - [`@riebeckite/theme-tokyonight`](../tokyonight/README_ja.md)
95
97
  - [`@riebeckite/theme-gruvbox`](../gruvbox/README_ja.md)
96
98
  - [`@riebeckite/theme-rerurate`](../rerurate/README_ja.md)
97
99
 
100
+ ## Documentation site
101
+
102
+ 装飾を抑え、コンテンツを中心に見せるための Theme です。
103
+
104
+ ## 導入
105
+
106
+ ```bash
107
+ npm install @riebeckite/theme-minimal
108
+ ```
109
+
110
+ Theme の factory 名と設定項目は、実装とこの正本ページを一次情報として確認してください。`riebeckite.config.ts` の `theme` に設定して利用します。
111
+
112
+ ## 詳細仕様
113
+
114
+ 設定項目や 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-minimal",
3
- "version": "0.0.20",
3
+ "version": "0.0.22",
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.20"
19
+ "@riebeckite/core": "0.0.22"
20
20
  },
21
21
  "publishConfig": {
22
22
  "access": "public"
package/styles/theme.css CHANGED
@@ -28,6 +28,9 @@
28
28
  --rb-color-border-strong: color-mix(in srgb, currentColor 28%, transparent);
29
29
  --rb-color-danger: #b42318;
30
30
  --rb-color-success: #047857;
31
+ --rb-color-info: #2563eb;
32
+ --rb-color-warning: #b45309;
33
+ --rb-color-callout-special: #7c3aed;
31
34
  --rb-color-code-background: #f2f2f2;
32
35
  --rb-color-overlay: rgb(0 0 0 / 0.4);
33
36
  --rb-font-body: ui-sans-serif, system-ui, sans-serif;
@@ -56,6 +59,9 @@
56
59
  --rb-color-accent: #e5e5e5;
57
60
  --rb-color-danger: #e5484d;
58
61
  --rb-color-success: #30a46c;
62
+ --rb-color-info: #70b8ff;
63
+ --rb-color-warning: #f5a524;
64
+ --rb-color-callout-special: #c4a7e7;
59
65
  --rb-color-code-background: #262626;
60
66
  --rb-color-overlay: rgb(0 0 0 / 0.6);
61
67
  }
@@ -71,6 +77,9 @@
71
77
  --rb-color-accent: #e5e5e5;
72
78
  --rb-color-danger: #e5484d;
73
79
  --rb-color-success: #30a46c;
80
+ --rb-color-info: #70b8ff;
81
+ --rb-color-warning: #f5a524;
82
+ --rb-color-callout-special: #c4a7e7;
74
83
  --rb-color-code-background: #262626;
75
84
  --rb-color-overlay: rgb(0 0 0 / 0.6);
76
85
  }
@@ -461,10 +470,15 @@
461
470
  :is(:root, .rb-theme-root)[data-theme-name="minimal"] .rr-callout {
462
471
  margin: 2rem 0;
463
472
  padding: 1rem 1.25rem;
464
- border: 1px solid var(--rb-color-border);
465
- border-left: 1px solid var(--rb-color-border-strong);
473
+ border: 1px solid
474
+ color-mix(in srgb, var(--rr-callout-tone) 32%, var(--rb-color-border));
475
+ border-left: 2px solid var(--rr-callout-tone);
466
476
  border-radius: 0;
467
- background: none;
477
+ background: color-mix(
478
+ in srgb,
479
+ var(--rr-callout-tone) 4%,
480
+ var(--rb-color-surface)
481
+ );
468
482
  box-shadow: none;
469
483
  color: var(--rb-color-ink);
470
484
  }
@@ -472,7 +486,7 @@
472
486
  :is(:root, .rb-theme-root)[data-theme-name="minimal"]
473
487
  .rr-callout
474
488
  .rr-callout__title {
475
- color: var(--rb-color-muted);
489
+ color: var(--rr-callout-tone);
476
490
  font-family: var(--rb-font-body);
477
491
  font-size: 0.8125rem;
478
492
  font-weight: 600;
@@ -483,7 +497,7 @@
483
497
  :is(:root, .rb-theme-root)[data-theme-name="minimal"]
484
498
  .rr-callout
485
499
  .rr-callout__icon {
486
- color: var(--rb-color-muted);
500
+ color: var(--rr-callout-tone);
487
501
  }
488
502
 
489
503
  :is(:root, .rb-theme-root)[data-theme-name="minimal"] .rr-callout p:last-child {