@riebeckite/theme-minimal 0.0.14 → 0.0.16

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
@@ -81,7 +81,9 @@ attribute reports `minimal`.
81
81
  | `userCss` | `string[]` | `[]` | Extra user stylesheets |
82
82
 
83
83
  See the [`@riebeckite/theme-default`](../default/README.md) README for the
84
- full token list — the token contract is identical.
84
+ full token list. Colors, fonts, spacing, layout widths, and rule widths use the
85
+ same tokens in every theme; corner radius is written directly in each theme's
86
+ CSS instead of being exposed as a token.
85
87
 
86
88
  ## Light and dark
87
89
 
@@ -132,9 +134,10 @@ is distributed here under the license stated in the package `LICENSE` file.
132
134
 
133
135
  ## See also
134
136
 
135
- - [Theme authoring contract](../../../docs/en/reference/theme-api.md)
137
+ - [Theme authoring contract](../../../docs/en/docs/reference/theme-api.md)
136
138
  - [`@riebeckite/theme-default`](../default/README.md)
137
139
  - [`@riebeckite/theme-sakura`](../sakura/README.md)
138
140
  - [`@riebeckite/theme-tokyonight`](../tokyonight/README.md)
139
141
  - [`@riebeckite/theme-gruvbox`](../gruvbox/README.md)
140
142
  - [`@riebeckite/theme-rerurate`](../rerurate/README.md)
143
+
package/README_ja.md CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  `minimalTheme()` は名前が `minimal` のテーマを作ります。完全な `--rb-*` トークンを `@theme` に対応させたうえで、安定した構造フック(`.rb-article-*`、`.rb-sidebar`、`.prose`)とプラグインのルート(`rr-*`)にタイポグラフィの個性を重ねます。指定はすべて `[data-theme-name="minimal"]` にスコープし、`@layer base` の外に置いています。
10
10
 
11
- [Minimal for Obsidian](https://github.com/kepano/obsidian-minimal) の設計思想——内容が主役、静かな操作画面、強いタイポグラフィ、控えめなアクセント、詰まっていても読みやすいクローム——を、Riebeckite のセマンティックトークンと安定フックに置き換えて実装したものです。Obsidian デスクトップアプリの見た目を模したり、Obsidian の変数や DOM があることを前提にしたりはしません。
11
+ [Minimal for Obsidian](https://github.com/kepano/obsidian-minimal) の設計思想(内容が主役、静かな操作画面、強いタイポグラフィ、控えめなアクセント、詰まっていても読みやすいクローム)を、Riebeckite のセマンティックトークンと安定フックに置き換えて実装したものです。Obsidian デスクトップアプリの見た目を模したり、Obsidian の変数や DOM があることを前提にしたりはしません。
12
12
 
13
13
  個性は引き算にあります。
14
14
 
@@ -56,7 +56,7 @@ export default defineConfig({
56
56
  | `tokens` | `{}` | 色、フォント、余白、レイアウト幅のトークンを上書きする |
57
57
  | `userCss` | `[]` | 追加のスタイルシート |
58
58
 
59
- トークンの意味と一覧は [`@riebeckite/theme-default`](../default/README_ja.md) を参照してください。トークン契約は同じです。
59
+ トークンの意味と一覧は [`@riebeckite/theme-default`](../default/README_ja.md) を参照してください。色、フォント、余白、レイアウト幅、罫線幅のトークンはどのテーマでも共通です。角丸だけは各テーマの CSS に直接書いていて、トークンにはしていません。
60
60
 
61
61
  ## ライトとダーク
62
62
 
@@ -69,7 +69,7 @@ export default defineConfig({
69
69
 
70
70
  ## 背景コントラストのバリエーション
71
71
 
72
- 本家 Minimal には背景コントラストのバリエーション(既定、低コントラスト、高コントラスト、トゥルーブラック)があります。いまの Riebeckite の Theme API にはバリエーションの概念がないため、このテーマは通常の見た目を既定として提供し、サーフェスの階層をセマンティックトークン(`--rb-color-paper`、`--rb-color-surface`、`--rb-color-surface-hover`、`--rb-color-code-background`)で表現しています。`tokens` オプションでサイトごとに上書きすることはすでに可能です。背景コントラストのバリエーションは、独自属性で見せかけるのではなく、将来 Theme API に追加できる拡張候補です。
72
+ 本家 Minimal には背景コントラストのバリエーション(既定、低コントラスト、高コントラスト、トゥルーブラック)があります。現在の Riebeckite の Theme API にはバリエーションの概念がないため、このテーマは通常の見た目を既定として提供し、サーフェスの階層をセマンティックトークン(`--rb-color-paper`、`--rb-color-surface`、`--rb-color-surface-hover`、`--rb-color-code-background`)で表現しています。`tokens` オプションでサイトごとに上書きすることはすでに可能です。背景コントラストのバリエーションは、独自属性で見せかけるのではなく、将来 Theme API に追加できる拡張候補です。
73
73
 
74
74
  ## 主なエクスポート
75
75
 
@@ -84,13 +84,14 @@ Riebeckite theme based on the design principles of Minimal for Obsidian by Steph
84
84
  - 原典: <https://github.com/kepano/obsidian-minimal>
85
85
  - 原典のライセンス: MIT
86
86
 
87
- このパッケージは、これらの設計思想を Riebeckite のセマンティックトークンと安定フックで独立に実装したものです。Obsidian Minimal の公式配布物ではなく、Obsidian デスクトップアプリを模したものでもありません。配布条件はパッケージの `LICENSE` ファイルに記載しています。
87
+ 配布条件はパッケージの `LICENSE` ファイルに記載しています。
88
88
 
89
89
  ## 関連資料
90
90
 
91
- - [テーマシステム](../../../docs/ja/reference/theme-api.md)
91
+ - [テーマシステム](../../../docs/ja/docs/reference/theme-api.md)
92
92
  - [`@riebeckite/theme-default`](../default/README_ja.md)
93
93
  - [`@riebeckite/theme-sakura`](../sakura/README_ja.md)
94
94
  - [`@riebeckite/theme-tokyonight`](../tokyonight/README_ja.md)
95
95
  - [`@riebeckite/theme-gruvbox`](../gruvbox/README_ja.md)
96
96
  - [`@riebeckite/theme-rerurate`](../rerurate/README_ja.md)
97
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riebeckite/theme-minimal",
3
- "version": "0.0.14",
3
+ "version": "0.0.16",
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.14"
19
+ "@riebeckite/core": "0.0.16"
20
20
  },
21
21
  "publishConfig": {
22
22
  "access": "public"
package/styles/theme.css CHANGED
@@ -312,7 +312,9 @@
312
312
  }
313
313
 
314
314
  /* ---- Tables: hairlines and a quiet, weighted header. ---- */
315
- :is(:root, .rb-theme-root)[data-theme-name="minimal"] .rb-article-body table {
315
+ :is(:root, .rb-theme-root)[data-theme-name="minimal"]
316
+ .rb-article-body
317
+ table:not(:where(.rr-diff-history *)) {
316
318
  margin: 2rem 0;
317
319
  border: 0;
318
320
  font-size: 0.95em;