@riebeckite/theme-rerurate 0.0.33 → 0.0.35
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 +43 -106
- package/README_ja.md +40 -43
- package/dist/src/index.d.ts +89 -10
- package/dist/src/index.js +68 -24
- package/package.json +2 -2
- package/styles/theme.css +242 -124
package/README.md
CHANGED
|
@@ -2,66 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
<!-- Generated from docs/docs/themes/rerurate.md. Edit the canonical documentation in docs/docs/themes and run `pnpm docs:sync`. -->
|
|
4
4
|
|
|
5
|
-
A Rerurate theme for Riebeckite, built on the Rerurate Visual Grammar: warm
|
|
6
|
-
Paper / Ink flat surfaces, a signature Orange accent, 1px rules, and an 8px
|
|
7
|
-
grid.
|
|
8
|
-
|
|
9
5
|
[日本語](./README_ja.md)
|
|
10
6
|
|
|
11
7
|
## Overview
|
|
12
8
|
|
|
13
|
-
`
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
- **Light** — warm Paper (`#f6efe2`), Ink (`#171717`), and the signature
|
|
22
|
-
Orange (`#f66620`)
|
|
23
|
-
- **Dark** — a warm charcoal paper (`#1c1a17`) with Paper-toned ink
|
|
24
|
-
(`#f6efe2`); Orange (`#f66620`) stays as the accent
|
|
25
|
-
|
|
26
|
-
Rerurate grammar decisions baked into the stylesheet:
|
|
27
|
-
|
|
28
|
-
- **Flat surfaces** — no shadows, no blur, no glassmorphism
|
|
29
|
-
- **1px rules** — `--rb-rule-width: 1px` and thin scrollbars
|
|
30
|
-
- **Typography as graphic** — geometric Latin headings set by size, weight
|
|
31
|
-
and whitespace; sparse ALL CAPS metadata led by a short Orange rule; a
|
|
32
|
-
readable body that stays off the display treatment
|
|
33
|
-
- **Multi-colour rule motif** — a short segmented rule split into three
|
|
34
|
-
equal parts (dark red → yellow `#b98430` → muted green) is the sanctioned
|
|
35
|
-
replacement for a gradient. Orange is excluded from the motif. It appears
|
|
36
|
-
in the article header and again as an h2 accent, using only the secondary
|
|
37
|
-
palette as thin rule segments
|
|
38
|
-
- **Page-load motion** — a ~460ms composition that draws the header rule,
|
|
39
|
-
lifts the title, and turns the rule into a geometric diagram. There is no
|
|
40
|
-
scroll reveal. Disabled by `prefers-reduced-motion` or the `motion` option
|
|
41
|
-
- **CSS-embedded SVG** — the rule motif, a precise vector mark, and the
|
|
42
|
-
blockquote quote chevrons are inline `data:` URIs, so no extra markup is
|
|
43
|
-
added and the graphics stay valid when motion is off
|
|
44
|
-
- **Selection** — Orange + Paper per brand (`background: orange; color: paper`)
|
|
45
|
-
- **Focus** — a clear Orange `:focus-visible` outline, plus an Ink → Orange
|
|
46
|
-
underline expansion on link hover
|
|
47
|
-
- **8px grid** — `--rb-space-*` tokens follow the 8px base unit
|
|
48
|
-
- **Futura / Helvetica-family** Latin stacks with system Japanese fallbacks
|
|
49
|
-
- Semantic `--rr-*` tokens (`--rr-color-*`, `--rr-space-1..4`,
|
|
50
|
-
`--rr-rule-width`, plus motion and SVG tokens) are also exposed for the
|
|
51
|
-
design layer
|
|
52
|
-
- **Orange initial** — a strong Rerurate signature, but never applied
|
|
53
|
-
mechanically to every page (opt in via the `initial` option, which also
|
|
54
|
-
selects a `"small" | "medium" | "large"` size)
|
|
55
|
-
- **Heading scale** — a restrained default size for the article title and body
|
|
56
|
-
headings; `largeHeadings` opts into a slightly larger scale
|
|
57
|
-
- **Orange article title** — the article title is set in the Orange accent
|
|
58
|
-
(`#f66620`) rather than Ink, so the masthead reads as brand
|
|
59
|
-
- **Markdown heading marks** — on by default, `#` … `#####` sit inline before
|
|
60
|
-
h1–h5 so each heading reads as if the marks were typed from the start; they
|
|
61
|
-
take the heading's own size, colour and font (h6 is left unmarked).
|
|
62
|
-
`headingMarks: false` removes them
|
|
63
|
-
- **Callouts** — a flat Paper/Ink surface with a 1px rule, an Orange left rule,
|
|
64
|
-
and an ALL CAPS title
|
|
9
|
+
`@riebeckite/theme-rerurate` provides the official **Rerurate** theme. Its theme identity is `rerurate`. Rerurate's paper-and-ink reading theme with optional celestial details.
|
|
10
|
+
|
|
11
|
+
## Installation
|
|
12
|
+
|
|
13
|
+
```sh
|
|
14
|
+
npm install @riebeckite/theme-rerurate
|
|
15
|
+
```
|
|
65
16
|
|
|
66
17
|
## Usage
|
|
67
18
|
|
|
@@ -70,62 +21,48 @@ import { defineConfig } from "@riebeckite/core";
|
|
|
70
21
|
import { rerurateTheme } from "@riebeckite/theme-rerurate";
|
|
71
22
|
|
|
72
23
|
export default defineConfig({
|
|
73
|
-
// ...
|
|
74
24
|
theme: rerurateTheme({
|
|
75
25
|
colorMode: "system",
|
|
76
|
-
|
|
77
|
-
articleLayout: "article",
|
|
78
|
-
initial: "large",
|
|
79
|
-
motion: true,
|
|
80
|
-
userCss: [],
|
|
26
|
+
settings: { initial: "off" },
|
|
81
27
|
}),
|
|
82
28
|
});
|
|
83
29
|
```
|
|
84
30
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
`
|
|
92
|
-
the
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
|
100
|
-
|
|
|
101
|
-
| `
|
|
102
|
-
| `
|
|
103
|
-
| `
|
|
104
|
-
| `
|
|
105
|
-
| `
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
`
|
|
110
|
-
`
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
## Exports
|
|
120
|
-
|
|
121
|
-
- `rerurateTheme(options?)` — theme factory
|
|
122
|
-
- Type: `RerurateThemeOptions`
|
|
123
|
-
- Styles: `@riebeckite/theme-rerurate/style.css`
|
|
31
|
+
## Common options
|
|
32
|
+
|
|
33
|
+
| Property | Values | Description |
|
|
34
|
+
| --- | --- | --- |
|
|
35
|
+
| `colorMode` | `"light"`, `"dark"`, `"system"` | Chooses the color mode. `"system"` follows the browser preference. |
|
|
36
|
+
| `layout` | `"article"`, `"sidebar"`, `"full-width"` | Chooses the page layout. |
|
|
37
|
+
| `preset` | — | This theme does not define presets. |
|
|
38
|
+
| `settings` | object | Overrides the settings listed below. Unknown keys and invalid values are rejected. |
|
|
39
|
+
| `stylesheets` | string array | Loads site-owned stylesheets after the theme CSS. |
|
|
40
|
+
|
|
41
|
+
Resolution order is schema defaults, then the selected preset, then explicit `settings`.
|
|
42
|
+
|
|
43
|
+
## Theme settings
|
|
44
|
+
|
|
45
|
+
| Property | Type | Default and allowed values | Effect |
|
|
46
|
+
| --- | --- | --- | --- |
|
|
47
|
+
| `initial` | select | `"off"` — `off`, `small`, `medium`, `large` | Selects the size of the article initial. |
|
|
48
|
+
| `largeHeadings` | boolean | `false` | Uses larger article headings. |
|
|
49
|
+
| `headingMarks` | boolean | `true` | Shows marks beside headings. |
|
|
50
|
+
| `motion` | boolean | `true` | Enables theme motion effects. |
|
|
51
|
+
| `stars` | boolean | `false` | Scatter a low-contrast starfield across the article header. |
|
|
52
|
+
| `constellation` | boolean | `false` | Connect the header stars into a thin constellation. |
|
|
53
|
+
| `orbit` | boolean | `false` | Draw a faint orbital ring around the article header. |
|
|
54
|
+
| `typography` | select | `"system"` — `system`, `serif`, `sans`, `mono` | Selects the article typeface. |
|
|
55
|
+
| `fontSize` | slider | `1` — 0.9375–1.25, step 0.0625 | Article text size in rem. |
|
|
56
|
+
| `lineHeight` | slider | `1.75` — 1.5–2.1, step 0.05 | Article line height. |
|
|
57
|
+
|
|
58
|
+
## Presets
|
|
59
|
+
|
|
60
|
+
This theme does not define presets.
|
|
61
|
+
|
|
62
|
+
## CSS and attributes
|
|
63
|
+
|
|
64
|
+
The root receives `data-rb-theme="rerurate"`, `data-rb-mode` for an explicit light or dark mode, and `data-rb-layout`. Every setting is reflected as `data-rb-setting-<name>`; color, number, and slider settings are also available as safe `--rb-setting-<name>` custom properties.
|
|
124
65
|
|
|
125
66
|
## See also
|
|
126
67
|
|
|
127
|
-
|
|
128
|
-
- [`@riebeckite/theme-default`](../default/README.md)
|
|
129
|
-
- [`@riebeckite/theme-sakura`](../sakura/README.md)
|
|
130
|
-
- [`@riebeckite/theme-tokyonight`](../tokyonight/README.md)
|
|
131
|
-
- [`@riebeckite/theme-gruvbox`](../gruvbox/README.md)
|
|
68
|
+
[Theme API](https://github.com/Rerurate514/riebeckite/blob/main/docs/docs/reference/theme-api.md) and [Writing a theme](https://github.com/Rerurate514/riebeckite/blob/main/docs/docs/themes/writing-a-theme.md).
|
package/README_ja.md
CHANGED
|
@@ -2,70 +2,67 @@
|
|
|
2
2
|
|
|
3
3
|
<!-- Generated from docs/docs/themes/rerurate.ja.md. Edit the canonical documentation in docs/docs/themes and run `pnpm docs:sync`. -->
|
|
4
4
|
|
|
5
|
-
Paper、Ink、Orange を軸にした Rerurate のテーマです。フラットな面、1px の罫線、8px を基準にした余白で、情報の境界をはっきり見せます。
|
|
6
|
-
|
|
7
5
|
[English](./README.md)
|
|
8
6
|
|
|
9
|
-
##
|
|
7
|
+
## 概要
|
|
8
|
+
|
|
9
|
+
`@riebeckite/theme-rerurate` は公式テーマ **Rerurate** を提供します。テーマ ID は `rerurate` です。紙とインクを基調に、天体装飾を任意で加えられる Rerurate のテーマです。
|
|
10
|
+
|
|
11
|
+
## インストール
|
|
12
|
+
|
|
13
|
+
```sh
|
|
14
|
+
npm install @riebeckite/theme-rerurate
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## 使い方
|
|
10
18
|
|
|
11
19
|
```ts
|
|
12
20
|
import { defineConfig } from "@riebeckite/core";
|
|
13
21
|
import { rerurateTheme } from "@riebeckite/theme-rerurate";
|
|
14
22
|
|
|
15
23
|
export default defineConfig({
|
|
16
|
-
// ...
|
|
17
24
|
theme: rerurateTheme({
|
|
18
25
|
colorMode: "system",
|
|
19
|
-
initial: "
|
|
20
|
-
motion: true,
|
|
26
|
+
settings: { initial: "off" },
|
|
21
27
|
}),
|
|
22
28
|
});
|
|
23
29
|
```
|
|
24
30
|
|
|
25
|
-
|
|
31
|
+
## 共通オプション
|
|
26
32
|
|
|
27
|
-
|
|
33
|
+
| プロパティ | 値 | 説明 |
|
|
34
|
+
| --- | --- | --- |
|
|
35
|
+
| `colorMode` | `"light"`、`"dark"`、`"system"` | カラーモードを選びます。`"system"` はブラウザの設定に従います。 |
|
|
36
|
+
| `layout` | `"article"`、`"sidebar"`、`"full-width"` | ページレイアウトを選びます。 |
|
|
37
|
+
| `preset` | — | このテーマにはプリセットがありません。 |
|
|
38
|
+
| `settings` | object | 下記の設定を上書きします。不明なキーや不正な値は拒否されます。 |
|
|
39
|
+
| `stylesheets` | string array | テーマ CSS の後にサイト固有のスタイルシートを読み込みます。 |
|
|
28
40
|
|
|
29
|
-
|
|
41
|
+
設定スキーマの既定値、選択したプリセット、明示した `settings` の順に適用されます。
|
|
30
42
|
|
|
31
|
-
|
|
43
|
+
## テーマ設定
|
|
32
44
|
|
|
33
|
-
|
|
45
|
+
| プロパティ | 型 | 既定値と選択値 | 効果 |
|
|
46
|
+
| --- | --- | --- | --- |
|
|
47
|
+
| `initial` | select | 既定値 `"off"` — `off`、`small`、`medium`、`large` | 記事冒頭の頭文字の大きさを選びます。 |
|
|
48
|
+
| `largeHeadings` | boolean | 既定値 `false` | 記事の見出しを大きく表示します。 |
|
|
49
|
+
| `headingMarks` | boolean | 既定値 `true` | 見出しの横にマークを表示します。 |
|
|
50
|
+
| `motion` | boolean | 既定値 `true` | テーマの動きを有効にします。 |
|
|
51
|
+
| `stars` | boolean | 既定値 `false` | 記事ヘッダーに控えめな星空を表示します。 |
|
|
52
|
+
| `constellation` | boolean | 既定値 `false` | ヘッダーの星を星座のように結びます。 |
|
|
53
|
+
| `orbit` | boolean | 既定値 `false` | 記事ヘッダーに軌道リングを描きます。 |
|
|
54
|
+
| `typography` | select | 既定値 `"system"` — `system`、`serif`、`sans`、`mono` | 本文の書体を選びます。 |
|
|
55
|
+
| `fontSize` | slider | 既定値 `1` — 0.9375–1.25、刻み 0.0625 | 本文の文字サイズを rem で設定します。 |
|
|
56
|
+
| `lineHeight` | slider | 既定値 `1.75` — 1.5–2.1、刻み 0.05 | 本文の行間を設定します。 |
|
|
34
57
|
|
|
35
|
-
|
|
58
|
+
## プリセット
|
|
36
59
|
|
|
37
|
-
|
|
60
|
+
このテーマにはプリセットがありません。
|
|
38
61
|
|
|
39
|
-
|
|
62
|
+
## CSS と属性
|
|
40
63
|
|
|
41
|
-
|
|
64
|
+
ルートには `data-rb-theme="rerurate"`、明示的にライトまたはダークを選んだ場合は `data-rb-mode`、そして `data-rb-layout` が設定されます。すべての設定は `data-rb-setting-<name>` 属性に反映されます。color、number、slider 型の設定は安全な `--rb-setting-<name>` カスタムプロパティとしても利用できます。
|
|
42
65
|
|
|
43
|
-
##
|
|
66
|
+
## 関連情報
|
|
44
67
|
|
|
45
|
-
|
|
46
|
-
| --- | --- | --- |
|
|
47
|
-
| `initial` | `false` | 記事本文の最初の文字を Orange の頭文字にする。`true` は `"medium"` 相当。`"small"`、`"medium"`、`"large"` で大きさを選べる。`data-rerurate-initial="on"` と `data-rerurate-initial-size` に反映する |
|
|
48
|
-
| `largeHeadings` | `false` | 見出しを少しだけ大きくする。`true` で `data-rerurate-headings="large"` を付ける |
|
|
49
|
-
| `headingMarks` | `true` | h1〜h5 の見出しの先頭に Markdown 風の `#`〜`#####` をインラインで添える(見出しと同じサイズ・色・フォント。h6 には付けない)。`false` で `data-rerurate-heading-marks="off"` を付けて外す |
|
|
50
|
-
| `motion` | `true` | 読み込み時のアニメーション(罫線の描画、タイトルの上昇、罫線から図形への変化)を再生する。`false` は `data-rerurate-motion="off"` を付け、完成した状態をそのまま表示する。`prefers-reduced-motion` が有効な環境でも再生しない |
|
|
51
|
-
| `colorMode` | `"system"` | `"light"`、`"dark"`、`"system"` |
|
|
52
|
-
| `typography` | `"system"` | `"system"`、`"serif"`、`"sans"` |
|
|
53
|
-
| `articleLayout` | `"article"` | 記事レイアウトの値 |
|
|
54
|
-
| `tokens` | `{}` | 共通デザイントークンの上書き |
|
|
55
|
-
| `userCss` | `[]` | 追加のスタイルシート |
|
|
56
|
-
|
|
57
|
-
頭文字の装飾は本文の冒頭にだけ使われます。すべての記事で必要とは限らないため、`initial` は既定で無効です。属性を直接指定する場合は、`attributes: { "data-rerurate-initial": "on", "data-rerurate-motion": "off" }` のように `data-rerurate-initial`、`data-rerurate-headings`、`data-rerurate-heading-marks`、`data-rerurate-motion` を組み合わせて使えます。
|
|
58
|
-
|
|
59
|
-
## 主なエクスポート
|
|
60
|
-
|
|
61
|
-
- `rerurateTheme(options?)`: テーマを作成する
|
|
62
|
-
- `RerurateThemeOptions`: 設定用の型
|
|
63
|
-
- `@riebeckite/theme-rerurate/style.css`: テーマのスタイルシート
|
|
64
|
-
|
|
65
|
-
## 関連資料
|
|
66
|
-
|
|
67
|
-
- [テーマシステム](https://github.com/Rerurate514/riebeckite/blob/main/docs/docs/reference/theme-api.ja.md)
|
|
68
|
-
- [`@riebeckite/theme-default`](../default/README_ja.md)
|
|
69
|
-
- [`@riebeckite/theme-sakura`](../sakura/README_ja.md)
|
|
70
|
-
- [`@riebeckite/theme-tokyonight`](../tokyonight/README_ja.md)
|
|
71
|
-
- [`@riebeckite/theme-gruvbox`](../gruvbox/README_ja.md)
|
|
68
|
+
[Theme API](https://github.com/Rerurate514/riebeckite/blob/main/docs/docs/reference/theme-api.md) と [テーマを書く](https://github.com/Rerurate514/riebeckite/blob/main/docs/docs/themes/writing-a-theme.ja.md) を参照してください。
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,10 +1,89 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
|
|
1
|
+
export declare const rerurateTheme: import("@riebeckite/core").ThemeDefinition<{
|
|
2
|
+
readonly initial: {
|
|
3
|
+
readonly type: "select";
|
|
4
|
+
readonly label: "Initial";
|
|
5
|
+
readonly default: "off";
|
|
6
|
+
readonly options: readonly [{
|
|
7
|
+
readonly value: "off";
|
|
8
|
+
readonly label: "Off";
|
|
9
|
+
}, {
|
|
10
|
+
readonly value: "small";
|
|
11
|
+
readonly label: "Small";
|
|
12
|
+
}, {
|
|
13
|
+
readonly value: "medium";
|
|
14
|
+
readonly label: "Medium";
|
|
15
|
+
}, {
|
|
16
|
+
readonly value: "large";
|
|
17
|
+
readonly label: "Large";
|
|
18
|
+
}];
|
|
19
|
+
};
|
|
20
|
+
readonly largeHeadings: {
|
|
21
|
+
readonly type: "boolean";
|
|
22
|
+
readonly label: "Large headings";
|
|
23
|
+
readonly default: false;
|
|
24
|
+
};
|
|
25
|
+
readonly headingMarks: {
|
|
26
|
+
readonly type: "boolean";
|
|
27
|
+
readonly label: "Heading marks";
|
|
28
|
+
readonly default: true;
|
|
29
|
+
};
|
|
30
|
+
readonly motion: {
|
|
31
|
+
readonly type: "boolean";
|
|
32
|
+
readonly label: "Motion";
|
|
33
|
+
readonly default: true;
|
|
34
|
+
};
|
|
35
|
+
readonly stars: {
|
|
36
|
+
readonly type: "boolean";
|
|
37
|
+
readonly label: "Stars";
|
|
38
|
+
readonly description: "Scatter a low-contrast starfield across the article header.";
|
|
39
|
+
readonly default: false;
|
|
40
|
+
};
|
|
41
|
+
readonly constellation: {
|
|
42
|
+
readonly type: "boolean";
|
|
43
|
+
readonly label: "Constellation";
|
|
44
|
+
readonly description: "Connect the header stars into a thin constellation.";
|
|
45
|
+
readonly default: false;
|
|
46
|
+
};
|
|
47
|
+
readonly orbit: {
|
|
48
|
+
readonly type: "boolean";
|
|
49
|
+
readonly label: "Orbit";
|
|
50
|
+
readonly description: "Draw a faint orbital ring around the article header.";
|
|
51
|
+
readonly default: false;
|
|
52
|
+
};
|
|
53
|
+
readonly typography: {
|
|
54
|
+
readonly type: "select";
|
|
55
|
+
readonly label: "Typography";
|
|
56
|
+
readonly default: "system";
|
|
57
|
+
readonly options: readonly [{
|
|
58
|
+
readonly value: "system";
|
|
59
|
+
readonly label: "System";
|
|
60
|
+
}, {
|
|
61
|
+
readonly value: "serif";
|
|
62
|
+
readonly label: "Serif";
|
|
63
|
+
}, {
|
|
64
|
+
readonly value: "sans";
|
|
65
|
+
readonly label: "Sans";
|
|
66
|
+
}, {
|
|
67
|
+
readonly value: "mono";
|
|
68
|
+
readonly label: "Mono";
|
|
69
|
+
}];
|
|
70
|
+
};
|
|
71
|
+
readonly fontSize: {
|
|
72
|
+
readonly type: "slider";
|
|
73
|
+
readonly label: "Font size";
|
|
74
|
+
readonly description: "Article text size in rem.";
|
|
75
|
+
readonly default: 1;
|
|
76
|
+
readonly min: 0.9375;
|
|
77
|
+
readonly max: 1.25;
|
|
78
|
+
readonly step: 0.0625;
|
|
79
|
+
};
|
|
80
|
+
readonly lineHeight: {
|
|
81
|
+
readonly type: "slider";
|
|
82
|
+
readonly label: "Line height";
|
|
83
|
+
readonly description: "Article line height.";
|
|
84
|
+
readonly default: 1.75;
|
|
85
|
+
readonly min: 1.5;
|
|
86
|
+
readonly max: 2.1;
|
|
87
|
+
readonly step: 0.05;
|
|
88
|
+
};
|
|
89
|
+
}>;
|
package/dist/src/index.js
CHANGED
|
@@ -1,29 +1,73 @@
|
|
|
1
1
|
// src/index.ts
|
|
2
|
-
import { defineTheme } from "@riebeckite/core";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"data-rerurate-initial": initialEnabled ? "on" : void 0,
|
|
18
|
-
"data-rerurate-initial-size": initialEnabled ? initialSize : void 0,
|
|
19
|
-
"data-rerurate-headings": largeHeadings ? "large" : void 0,
|
|
20
|
-
"data-rerurate-heading-marks": headingMarks ? void 0 : "off",
|
|
21
|
-
"data-rerurate-motion": motion ? void 0 : "off"
|
|
2
|
+
import { defineTheme, defineThemeSettings } from "@riebeckite/core";
|
|
3
|
+
var rerurateTheme = defineTheme({
|
|
4
|
+
name: "rerurate",
|
|
5
|
+
styles: [{ moduleSpecifier: "@riebeckite/theme-rerurate/style.css" }],
|
|
6
|
+
settings: defineThemeSettings({
|
|
7
|
+
initial: {
|
|
8
|
+
type: "select",
|
|
9
|
+
label: "Initial",
|
|
10
|
+
default: "off",
|
|
11
|
+
options: [
|
|
12
|
+
{ value: "off", label: "Off" },
|
|
13
|
+
{ value: "small", label: "Small" },
|
|
14
|
+
{ value: "medium", label: "Medium" },
|
|
15
|
+
{ value: "large", label: "Large" }
|
|
16
|
+
]
|
|
22
17
|
},
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
18
|
+
largeHeadings: { type: "boolean", label: "Large headings", default: false },
|
|
19
|
+
headingMarks: { type: "boolean", label: "Heading marks", default: true },
|
|
20
|
+
motion: { type: "boolean", label: "Motion", default: true },
|
|
21
|
+
stars: {
|
|
22
|
+
type: "boolean",
|
|
23
|
+
label: "Stars",
|
|
24
|
+
description: "Scatter a low-contrast starfield across the article header.",
|
|
25
|
+
default: false
|
|
26
|
+
},
|
|
27
|
+
constellation: {
|
|
28
|
+
type: "boolean",
|
|
29
|
+
label: "Constellation",
|
|
30
|
+
description: "Connect the header stars into a thin constellation.",
|
|
31
|
+
default: false
|
|
32
|
+
},
|
|
33
|
+
orbit: {
|
|
34
|
+
type: "boolean",
|
|
35
|
+
label: "Orbit",
|
|
36
|
+
description: "Draw a faint orbital ring around the article header.",
|
|
37
|
+
default: false
|
|
38
|
+
},
|
|
39
|
+
typography: {
|
|
40
|
+
type: "select",
|
|
41
|
+
label: "Typography",
|
|
42
|
+
default: "system",
|
|
43
|
+
options: [
|
|
44
|
+
{ value: "system", label: "System" },
|
|
45
|
+
{ value: "serif", label: "Serif" },
|
|
46
|
+
{ value: "sans", label: "Sans" },
|
|
47
|
+
{ value: "mono", label: "Mono" }
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
fontSize: {
|
|
51
|
+
type: "slider",
|
|
52
|
+
label: "Font size",
|
|
53
|
+
description: "Article text size in rem.",
|
|
54
|
+
default: 1,
|
|
55
|
+
min: 0.9375,
|
|
56
|
+
max: 1.25,
|
|
57
|
+
step: 0.0625
|
|
58
|
+
},
|
|
59
|
+
lineHeight: {
|
|
60
|
+
type: "slider",
|
|
61
|
+
label: "Line height",
|
|
62
|
+
description: "Article line height.",
|
|
63
|
+
default: 1.75,
|
|
64
|
+
min: 1.5,
|
|
65
|
+
max: 2.1,
|
|
66
|
+
step: 0.05
|
|
67
|
+
}
|
|
68
|
+
}),
|
|
69
|
+
presets: { reading: { label: "Reading", settings: { typography: "serif" } } }
|
|
70
|
+
});
|
|
27
71
|
export {
|
|
28
72
|
rerurateTheme
|
|
29
73
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riebeckite/theme-rerurate",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.35",
|
|
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
|
+
"@riebeckite/core": "0.0.35"
|
|
20
20
|
},
|
|
21
21
|
"publishConfig": {
|
|
22
22
|
"access": "public"
|