@riebeckite/theme-sakura 0.0.5 → 0.0.7

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,75 +1,109 @@
1
- # @riebeckite/theme-sakura
2
-
3
- A cherry-blossom (sakura) theme for Riebeckite: soft pink paper, plum ink, and
4
- a sakura-pink accent across light and dark color modes.
5
-
6
- [日本語](./README_ja.md)
7
-
8
- ## Overview
9
-
10
- `sakuraTheme()` creates a theme named `sakura`. Like the default theme, it
11
- exposes the design system as CSS custom properties (`--rb-color-*`,
12
- `--rb-font-*`, `--rb-space-*`, `--rb-layout-*`) and maps them into Tailwind
13
- theme values in an `@theme` block, so the tokens work both from plain CSS and
14
- from Tailwind-style utilities.
15
-
16
- The palette is inspired by cherry blossoms:
17
-
18
- - **Light** — blossom-white paper (`#fff8fa`), deep plum ink (`#4a2a3a`), and
19
- a sakura-pink accent (`#e8789f`)
20
- - **Dark** — deep plum-black paper (`#241520`), pale blossom ink
21
- (`#f9e4ec`), and a lighter sakura-pink accent (`#f4a3c2`)
22
-
23
- ## Usage
24
-
25
- ```ts
26
- import { defineConfig } from "@riebeckite/core";
27
- import { sakuraTheme } from "@riebeckite/theme-sakura";
28
-
29
- export default defineConfig({
30
- // ...
31
- theme: sakuraTheme({
32
- colorMode: "system",
33
- typography: "system",
34
- articleLayout: "article",
35
- bloom: "vivid",
36
- userCss: [],
37
- }),
38
- });
39
- ```
40
-
41
- Relies on the same `ThemeConfig` API as `defaultTheme()`, so the two themes can
42
- be swapped without other configuration changes. The root-level
43
- `data-theme-name` attribute reports `sakura`.
44
-
45
- ## Options
46
-
47
- `sakuraTheme(options?)` accepts any `ThemeConfig` field except `name`, plus the
48
- theme-specific `bloom` option:
49
-
50
- | Option | Type | Default | Description |
51
- | ------ | ---- | ------- | ----------- |
52
- | `bloom` | `"soft" \| "vivid"` | `"soft"` | Accent intensity. `vivid` uses a deeper sakura pink (applied via the `data-sakura-bloom="vivid"` attribute) |
53
- | `colorMode` | `"light" \| "dark" \| "system"` | `"system"` | Color mode. `system` follows `prefers-color-scheme` unless `data-theme` is set |
54
- | `typography` | `"system" \| "serif" \| "sans"` | `"system"` | Typography preset, applied via the `data-typography` attribute |
55
- | `articleLayout` | `"article" \| "sidebar" \| "full-width"` | `"article"` | Article layout preset for consumers that read `data-article-layout` |
56
- | `tokens` | `ThemeDesignTokens` | `{}` | Override design tokens (colors, fonts, spacing, layout widths) |
57
- | `userCss` | `string[]` | `[]` | Extra user stylesheets |
58
-
59
- Theme-specific options are applied to the root element as safe `data-*`
60
- attributes (`data-sakura-bloom`). `bloom` can also be overridden directly from
61
- `config` via `attributes: { "data-sakura-bloom": "vivid" }`.
62
-
63
- See the [`@riebeckite/theme-default`](../default/README.md) README for the
64
- full token list — the token contract is identical.
65
-
66
- ## Exports
67
-
68
- - `sakuraTheme(options?)` — theme factory
69
- - Type: `SakuraThemeOptions`
70
- - Styles: `@riebeckite/theme-sakura/style.css`
71
-
72
- ## See also
73
-
74
- - [Plugin guide](../../../docs/plugins_en.md)
75
- - [`@riebeckite/theme-default`](../default/README.md)
1
+ # @riebeckite/theme-sakura
2
+
3
+ A cherry-blossom (sakura) theme for Riebeckite: soft pink paper, plum ink, a
4
+ sakura-pink accent, and a warm serif editorial voice.
5
+
6
+ [日本語](./README_ja.md)
7
+
8
+ ## Overview
9
+
10
+ `sakuraTheme()` creates a theme named `sakura`. Like the default theme, it
11
+ exposes the design system as CSS custom properties (`--rb-color-*`,
12
+ `--rb-font-*`, `--rb-space-*`, `--rb-layout-*`) and maps them into Tailwind
13
+ theme values in an `@theme` block, so the tokens work both from plain CSS and
14
+ from Tailwind-style utilities.
15
+
16
+ The palette is inspired by cherry blossoms:
17
+
18
+ - **Light** — blossom-white paper (`#fff8fa`), deep plum ink (`#4a2a3a`), and
19
+ a sakura-pink accent (`#e8789f`)
20
+ - **Dark** — deep plum-black paper (`#241520`), pale blossom ink
21
+ (`#f9e4ec`), and a lighter sakura-pink accent (`#f4a3c2`)
22
+
23
+ Beyond the palette, `sakura` is a soft, warm editorial theme rather than a
24
+ plain sans skin:
25
+
26
+ - **Serif body and headings** — Latin text uses the self-hosted variable
27
+ **Source Serif 4**, with CJK serif fallbacks (`Hiragino Mincho ProN`,
28
+ `Yu Mincho`, `Noto Serif JP`) and a comfortable `1.9` line-height.
29
+ - **Rounded, quiet surfaces** — code blocks, callouts, tables, blockquotes,
30
+ and cards share a generous corner radius (`roundness: "soft"`), while soft
31
+ shadows are reserved for genuinely elevated elements such as images.
32
+ - **Restrained blossom accents** — links, list markers, blockquote rules,
33
+ callouts, and a short rule under `h2` headings pick up the sakura accent,
34
+ kept legible in both color modes.
35
+ - **Decorated or plain headings** — the `heading` option toggles the `h2`
36
+ blossom rule.
37
+
38
+ All character styling is scoped to the theme root and layered so the theme can
39
+ be swapped without touching the application CSS.
40
+
41
+ ## Usage
42
+
43
+ ```ts
44
+ import { defineConfig } from "@riebeckite/core";
45
+ import { sakuraTheme } from "@riebeckite/theme-sakura";
46
+
47
+ export default defineConfig({
48
+ // ...
49
+ theme: sakuraTheme({
50
+ colorMode: "system",
51
+ typography: "system",
52
+ articleLayout: "article",
53
+ bloom: "vivid",
54
+ roundness: "soft",
55
+ heading: "decorated",
56
+ userCss: [],
57
+ }),
58
+ });
59
+ ```
60
+
61
+ Relies on the same `ThemeConfig` API as `defaultTheme()`, so the two themes can
62
+ be swapped without other configuration changes. The root-level
63
+ `data-theme-name` attribute reports `sakura`.
64
+
65
+ ## Options
66
+
67
+ `sakuraTheme(options?)` accepts any `ThemeConfig` field except `name`, plus the
68
+ theme-specific `bloom`, `roundness`, and `heading` options:
69
+
70
+ | Option | Type | Default | Description |
71
+ | ------ | ---- | ------- | ----------- |
72
+ | `bloom` | `"soft" \| "vivid"` | `"soft"` | Accent intensity. `vivid` uses a deeper sakura pink (applied via the `data-sakura-bloom="vivid"` attribute) |
73
+ | `roundness` | `"soft" \| "crisp"` | `"soft"` | Surface corner radius. `soft` uses generous radii (~10px); `crisp` uses a small radius (~2px). Applied via `data-sakura-roundness` |
74
+ | `heading` | `"decorated" \| "plain"` | `"decorated"` | Heading decoration. `decorated` adds a short accent rule under `h2`; `plain` leaves headings bare. Applied via `data-sakura-heading` |
75
+ | `colorMode` | `"light" \| "dark" \| "system"` | `"system"` | Color mode. `system` follows `prefers-color-scheme` unless `data-theme` is set |
76
+ | `typography` | `"system" \| "serif" \| "sans"` | `"system"` | Typography preset, applied via the `data-typography` attribute. The default is serif; `sans` switches the body back to a CJK-aware sans stack |
77
+ | `articleLayout` | `"article" \| "sidebar" \| "full-width"` | `"article"` | Article layout preset for consumers that read `data-article-layout` |
78
+ | `tokens` | `ThemeDesignTokens` | `{}` | Override design tokens (colors, fonts, spacing, layout widths) |
79
+ | `userCss` | `string[]` | `[]` | Extra user stylesheets |
80
+
81
+ Theme-specific options are applied to the root element as safe `data-*`
82
+ attributes (`data-sakura-bloom`, `data-sakura-roundness`,
83
+ `data-sakura-heading`). They can also be overridden directly from `config`, for
84
+ example `attributes: { "data-sakura-roundness": "crisp" }`.
85
+
86
+ ## Fonts
87
+
88
+ The Latin subset of [Source Serif 4](https://github.com/adobe-fonts/source-serif)
89
+ is vendored under `styles/fonts/source-serif-4-latin-wght-normal.woff2` and
90
+ loaded with `font-display: swap` and a Latin `unicode-range`. Japanese glyphs
91
+ are not in that subset, so CJK text falls back to the system serif stack
92
+ (`Hiragino Mincho ProN`, `Yu Mincho`, `Noto Serif JP`). The font is licensed
93
+ under the SIL Open Font License 1.1 (see
94
+ `styles/fonts/source-serif-4-LICENSE.txt`); it is self-hosted, so no network
95
+ request is made.
96
+
97
+ See the [`@riebeckite/theme-default`](../default/README.md) README for the
98
+ full token list — the token contract is identical.
99
+
100
+ ## Exports
101
+
102
+ - `sakuraTheme(options?)` — theme factory
103
+ - Type: `SakuraThemeOptions`
104
+ - Styles: `@riebeckite/theme-sakura/style.css`
105
+
106
+ ## See also
107
+
108
+ - [Plugin guide](../../../docs/en/plugin-system.md)
109
+ - [`@riebeckite/theme-default`](../default/README.md)
package/README_ja.md CHANGED
@@ -1,46 +1,61 @@
1
- # @riebeckite/theme-sakura
2
-
3
- 桜を思わせる淡い背景と深いプラム色の文字を使うテーマです。明暗どちらの配色でも、ピンクをアクセントとして使います。
4
-
5
- [English](./README.md)
6
-
7
- ## 設定する
8
-
9
- ```ts
10
- import { defineConfig } from "@riebeckite/core";
11
- import { sakuraTheme } from "@riebeckite/theme-sakura";
12
-
13
- export default defineConfig({
14
- // ...
15
- theme: sakuraTheme({
16
- colorMode: "system",
17
- bloom: "vivid",
18
- }),
19
- });
20
- ```
21
-
22
- テーマ名は `sakura` です。明るい配色では `#fff8fa` の背景、`#4a2a3a` の文字、`#e8789f` のアクセントを使います。暗い配色では背景を `#241520`、文字を `#f9e4ec`、アクセントを `#f4a3c2` に切り替えます。
23
-
24
- ## 変更できる項目
25
-
26
- | 項目 | 既定値 | 説明 |
27
- | --- | --- | --- |
28
- | `bloom` | `"soft"` | `"soft"` または `"vivid"`。`vivid` はより強いピンクを使い、`data-sakura-bloom` に反映する |
29
- | `colorMode` | `"system"` | `"light"`、`"dark"`、`"system"` |
30
- | `typography` | `"system"` | `"system"`、`"serif"`、`"sans"` |
31
- | `articleLayout` | `"article"` | 記事レイアウトの値 |
32
- | `tokens` | `{}` | 共通デザイントークンの上書き |
33
- | `userCss` | `[]` | 追加のスタイルシート |
34
-
35
- `bloom` は `attributes: { "data-sakura-bloom": "vivid" }` として直接指定することもできます。ほかのテーマと同じトークンなので、アプリケーション側の CSS を大きく変えずに切り替えられます。
36
-
37
- ## 主なエクスポート
38
-
39
- - `sakuraTheme(options?)`: テーマを作成する
40
- - `SakuraThemeOptions`: 設定用の型
41
- - `@riebeckite/theme-sakura/style.css`: テーマのスタイルシート
42
-
43
- ## 関連資料
44
-
45
- - [テーマシステム](../../../docs/ja/theme-system.md)
46
- - [`@riebeckite/theme-default`](../default/README_ja.md)
1
+ # @riebeckite/theme-sakura
2
+
3
+ 桜を思わせる淡い背景と深いプラム色の文字に、やわらかなセリフ体の本文を組み合わせたテーマです。角丸のやさしい面と控えめな桜のアクセントで、明暗どちらの配色でも落ち着いて読める誌面をつくります。
4
+
5
+ [English](./README.md)
6
+
7
+ ## 設定する
8
+
9
+ ```ts
10
+ import { defineConfig } from "@riebeckite/core";
11
+ import { sakuraTheme } from "@riebeckite/theme-sakura";
12
+
13
+ export default defineConfig({
14
+ // ...
15
+ theme: sakuraTheme({
16
+ colorMode: "system",
17
+ bloom: "vivid",
18
+ roundness: "soft",
19
+ heading: "decorated",
20
+ }),
21
+ });
22
+ ```
23
+
24
+ テーマ名は `sakura` です。明るい配色では `#fff8fa` の背景、`#4a2a3a` の文字、`#e8789f` のアクセントを使います。暗い配色では背景を `#241520`、文字を `#f9e4ec`、アクセントを `#f4a3c2` に切り替えます。
25
+
26
+ 色だけでなく、誌面そのものに次のような性格を持たせています。
27
+
28
+ - **セリフ体の本文と見出し** — 欧文はセルフホストの可変フォント **Source Serif 4**、和文はシステムの明朝体(`Hiragino Mincho ProN`、`Yu Mincho`、`Noto Serif JP`)にフォールバックします。行間は 1.9 でゆったりと組みます。
29
+ - **角丸の静かな面** — コードブロック、コールアウト、表、引用、カードは `roundness` に応じた角丸にします。影は画像など、本当に浮かせたい要素だけに控えめに使います。
30
+ - **桜のアクセント** — リンク、リストのマーカー、引用のライン、コールアウト、`h2` の下の短い罫線などにアクセント色を効かせます。読みやすさを損なわない範囲に留めています。
31
+ - **見出しの飾り** — `heading` で `h2` の飾り罫を出し分けられます。
32
+
33
+ ## 変更できる項目
34
+
35
+ | 項目 | 既定値 | 説明 |
36
+ | --- | --- | --- |
37
+ | `bloom` | `"soft"` | `"soft"` または `"vivid"`。`vivid` はより強いピンクを使い、`data-sakura-bloom` に反映する |
38
+ | `roundness` | `"soft"` | `"soft"` または `"crisp"`。面の角丸の大きさを切り替え、`data-sakura-roundness` に反映する |
39
+ | `heading` | `"decorated"` | `"decorated"` または `"plain"`。`h2` の飾り罫を出し分け、`data-sakura-heading` に反映する |
40
+ | `colorMode` | `"system"` | `"light"`、`"dark"`、`"system"` |
41
+ | `typography` | `"system"` | `"system"`、`"serif"`、`"sans"`。既定はセリフ体で、`sans` を選ぶと本文がサンセリフ体に戻る |
42
+ | `articleLayout` | `"article"` | 記事レイアウトの値 |
43
+ | `tokens` | `{}` | 共通デザイントークンの上書き |
44
+ | `userCss` | `[]` | 追加のスタイルシート |
45
+
46
+ 各オプションは `attributes: { "data-sakura-roundness": "crisp" }` のように直接指定することもできます。ほかのテーマと同じトークンなので、アプリケーション側の CSS を大きく変えずに切り替えられます。
47
+
48
+ ## フォント
49
+
50
+ 欧文用の [Source Serif 4](https://github.com/adobe-fonts/source-serif) は `styles/fonts/source-serif-4-latin-wght-normal.woff2` に同梱しています。`font-display: swap` と欧文レンジの `unicode-range` を指定して読み込みます。和文の字形は含まれないため、`Hiragino Mincho ProN`、`Yu Mincho`、`Noto Serif JP` へ順にフォールバックします。ライセンスは SIL Open Font License 1.1(`styles/fonts/source-serif-4-LICENSE.txt`)で、セルフホストのため外部へのリクエストは発生しません。
51
+
52
+ ## 主なエクスポート
53
+
54
+ - `sakuraTheme(options?)`: テーマを作成する
55
+ - `SakuraThemeOptions`: 設定用の型
56
+ - `@riebeckite/theme-sakura/style.css`: テーマのスタイルシート
57
+
58
+ ## 関連資料
59
+
60
+ - [テーマシステム](../../../docs/ja/theme-system.md)
61
+ - [`@riebeckite/theme-default`](../default/README_ja.md)
@@ -1,6 +1,8 @@
1
1
  import { type ThemeConfig } from "@riebeckite/core";
2
2
  export type SakuraThemeOptions = Omit<ThemeConfig, "name" | "userCss"> & {
3
3
  bloom?: "soft" | "vivid";
4
+ roundness?: "soft" | "crisp";
5
+ heading?: "decorated" | "plain";
4
6
  userCss?: string[];
5
7
  };
6
8
  export declare function sakuraTheme(options?: SakuraThemeOptions): import("@riebeckite/core").RiebeckiteTheme<SakuraThemeOptions>;
package/dist/src/index.js CHANGED
@@ -1,12 +1,19 @@
1
1
  // src/index.ts
2
2
  import { defineTheme } from "@riebeckite/core";
3
3
  function sakuraTheme(options = {}) {
4
- const { bloom = "soft", ...config } = options;
4
+ const {
5
+ bloom = "soft",
6
+ roundness = "soft",
7
+ heading = "decorated",
8
+ ...config
9
+ } = options;
5
10
  return defineTheme({
6
11
  name: "sakura",
7
12
  options,
8
13
  attributes: {
9
- "data-sakura-bloom": bloom
14
+ "data-sakura-bloom": bloom,
15
+ "data-sakura-roundness": roundness,
16
+ "data-sakura-heading": heading
10
17
  },
11
18
  styles: [{ moduleSpecifier: "@riebeckite/theme-sakura/style.css" }],
12
19
  config
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riebeckite/theme-sakura",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
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.5"
19
+ "@riebeckite/core": "0.0.7"
20
20
  },
21
21
  "publishConfig": {
22
22
  "access": "public"
@@ -0,0 +1,93 @@
1
+ Google Inc.
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ http://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
package/styles/theme.css CHANGED
@@ -1,139 +1,647 @@
1
- @theme {
2
- --font-sans: var(--rb-font-body);
3
- --font-serif: Georgia, Cambria, "Times New Roman", Times, serif;
4
- --font-mono: var(--rb-font-mono);
5
- --color-rb-paper: var(--rb-color-paper);
6
- --color-rb-ink: var(--rb-color-ink);
7
- --color-rb-muted: var(--rb-color-muted);
8
- --color-rb-accent: var(--rb-color-accent);
9
- --color-rb-surface: var(--rb-color-surface);
10
- --color-rb-danger: var(--rb-color-danger);
11
- --color-rb-success: var(--rb-color-success);
12
- }
13
-
14
- @layer base {
15
- :root {
16
- color-scheme: light;
17
- --rb-color-paper: #fff8fa;
18
- --rb-color-surface: #ffffff;
19
- --rb-color-surface-hover: #fdf0f5;
20
- --rb-color-ink: #4a2a3a;
21
- --rb-color-muted: #9a7a88;
22
- --rb-color-accent: #e8789f;
23
- --rb-color-border: color-mix(in srgb, currentColor 18%, transparent);
24
- --rb-color-border-strong: color-mix(in srgb, currentColor 28%, transparent);
25
- --rb-color-danger: #b42318;
26
- --rb-color-success: #0f7b5f;
27
- --rb-color-code-background: color-mix(
28
- in srgb,
29
- var(--rb-color-ink) 8%,
30
- transparent
31
- );
32
- --rb-color-overlay: rgb(0 0 0 / 0.4);
33
- --rb-font-body:
34
- ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
35
- sans-serif;
36
- --rb-font-heading: var(--rb-font-body);
37
- --rb-font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
38
- --rb-space-1: 0.5rem;
39
- --rb-space-2: 1rem;
40
- --rb-space-3: 1.5rem;
41
- --rb-space-4: 2rem;
42
- --rb-space-6: 3rem;
43
- --rb-space-8: 4rem;
44
- --rb-rule-width: 1px;
45
- --rb-layout-page-max: 80rem;
46
- --rb-layout-article-max: 48rem;
47
- --rb-layout-sidebar: 14rem;
48
- --rb-layout-gap: 2rem;
49
- }
50
-
51
- :root[data-sakura-bloom="vivid"] {
52
- --rb-color-accent: #d8558a;
53
- --rb-color-surface-hover: #fbdce9;
54
- }
55
-
56
- :root[data-theme="dark"] {
57
- color-scheme: dark;
58
- --rb-color-paper: #241520;
59
- --rb-color-surface: #2b1a26;
60
- --rb-color-surface-hover: #382330;
61
- --rb-color-ink: #f9e4ec;
62
- --rb-color-muted: #c9a7b6;
63
- --rb-color-accent: #f4a3c2;
64
- --rb-color-danger: #ff6369;
65
- --rb-color-success: #4ccc9a;
66
- --rb-color-code-background: color-mix(
67
- in srgb,
68
- var(--rb-color-ink) 12%,
69
- transparent
70
- );
71
- --rb-color-overlay: rgb(0 0 0 / 0.6);
72
- }
73
-
74
- :root[data-theme="dark"][data-sakura-bloom="vivid"] {
75
- --rb-color-accent: #f08aae;
76
- --rb-color-surface-hover: #42232f;
77
- }
78
-
79
- @media (prefers-color-scheme: dark) {
80
- :root:not([data-theme]) {
81
- color-scheme: dark;
82
- --rb-color-paper: #241520;
83
- --rb-color-surface: #2b1a26;
84
- --rb-color-surface-hover: #382330;
85
- --rb-color-ink: #f9e4ec;
86
- --rb-color-muted: #c9a7b6;
87
- --rb-color-accent: #f4a3c2;
88
- --rb-color-danger: #ff6369;
89
- --rb-color-success: #4ccc9a;
90
- --rb-color-code-background: color-mix(
91
- in srgb,
92
- var(--rb-color-ink) 12%,
93
- transparent
94
- );
95
- --rb-color-overlay: rgb(0 0 0 / 0.6);
96
- }
97
-
98
- :root:not([data-theme])[data-sakura-bloom="vivid"] {
99
- --rb-color-accent: #f08aae;
100
- --rb-color-surface-hover: #42232f;
101
- }
102
- }
103
-
104
- :root[data-typography="serif"] {
105
- --rb-font-body: Georgia, Cambria, "Times New Roman", Times, serif;
106
- --rb-font-heading:
107
- ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
108
- sans-serif;
109
- }
110
-
111
- :root[data-typography="sans"] {
112
- --rb-font-body:
113
- ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
114
- sans-serif;
115
- --rb-font-heading: var(--rb-font-body);
116
- }
117
-
118
- html {
119
- background: var(--rb-color-paper);
120
- color: var(--rb-color-ink);
121
- font-family: var(--rb-font-body);
122
- }
123
-
124
- body {
125
- margin: 0;
126
- background: var(--rb-color-paper);
127
- color: var(--rb-color-ink);
128
- }
129
-
130
- ::selection {
131
- background: var(--rb-color-accent);
132
- color: var(--rb-color-paper);
133
- }
134
-
135
- :focus-visible {
136
- outline: 2px solid var(--rb-color-accent);
137
- outline-offset: 2px;
138
- }
139
- }
1
+ /* Self-hosted Source Serif 4 (Latin subset, variable weight 100–900).
2
+ Japanese glyphs are outside this subset and fall back to the system serif. */
3
+ @font-face {
4
+ font-family: "Source Serif 4";
5
+ src: url("./fonts/source-serif-4-latin-wght-normal.woff2")
6
+ format("woff2-variations");
7
+ font-weight: 100 900;
8
+ font-style: normal;
9
+ font-display: swap;
10
+ unicode-range:
11
+ U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
12
+ U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
13
+ U+2215, U+FEFF, U+FFFD;
14
+ }
15
+
16
+ @theme {
17
+ --font-sans: var(--rb-font-body);
18
+ --font-serif:
19
+ "Source Serif 4", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP",
20
+ Georgia, serif;
21
+ --font-mono: var(--rb-font-mono);
22
+ --color-rb-paper: var(--rb-color-paper);
23
+ --color-rb-ink: var(--rb-color-ink);
24
+ --color-rb-muted: var(--rb-color-muted);
25
+ --color-rb-accent: var(--rb-color-accent);
26
+ --color-rb-surface: var(--rb-color-surface);
27
+ --color-rb-danger: var(--rb-color-danger);
28
+ --color-rb-success: var(--rb-color-success);
29
+ }
30
+
31
+ @layer base {
32
+ :is(:root, .rb-theme-root)[data-theme-name="sakura"] {
33
+ color-scheme: light;
34
+ --rb-color-paper: #fff8fa;
35
+ --rb-color-surface: #ffffff;
36
+ --rb-color-surface-hover: #fdf0f5;
37
+ --rb-color-ink: #4a2a3a;
38
+ --rb-color-muted: #9a7a88;
39
+ --rb-color-accent: #e8789f;
40
+ --rb-color-border: color-mix(in srgb, currentColor 18%, transparent);
41
+ --rb-color-border-strong: color-mix(in srgb, currentColor 28%, transparent);
42
+ --rb-color-danger: #b42318;
43
+ --rb-color-success: #0f7b5f;
44
+ --rb-color-code-background: color-mix(
45
+ in srgb,
46
+ var(--rb-color-ink) 8%,
47
+ transparent
48
+ );
49
+ --rb-color-overlay: rgb(0 0 0 / 0.4);
50
+ --rb-font-body:
51
+ "Source Serif 4", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP",
52
+ Georgia, serif;
53
+ --rb-font-heading: var(--rb-font-body);
54
+ --rb-font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
55
+ --rb-space-1: 0.5rem;
56
+ --rb-space-2: 1rem;
57
+ --rb-space-3: 1.5rem;
58
+ --rb-space-4: 2rem;
59
+ --rb-space-6: 3rem;
60
+ --rb-space-8: 4rem;
61
+ --rb-rule-width: 1px;
62
+ --rb-layout-page-max: 80rem;
63
+ --rb-layout-article-max: 46rem;
64
+ --rb-layout-sidebar: 14rem;
65
+ --rb-layout-gap: 2rem;
66
+ /* Character-layer radius. `roundness="soft"` is the default; the crisp
67
+ override below shrinks both. */
68
+ --rb-sakura-radius: 0.625rem;
69
+ --rb-sakura-radius-sm: 0.375rem;
70
+ }
71
+
72
+ :is(
73
+ :root,
74
+ .rb-theme-root
75
+ )[data-theme-name="sakura"][data-sakura-roundness="crisp"] {
76
+ --rb-sakura-radius: 2px;
77
+ --rb-sakura-radius-sm: 2px;
78
+ }
79
+
80
+ :is(
81
+ :root,
82
+ .rb-theme-root
83
+ )[data-theme-name="sakura"][data-sakura-bloom="vivid"] {
84
+ --rb-color-accent: #d8558a;
85
+ --rb-color-surface-hover: #fbdce9;
86
+ }
87
+
88
+ :is(:root, .rb-theme-root)[data-theme-name="sakura"][data-theme="dark"] {
89
+ color-scheme: dark;
90
+ --rb-color-paper: #241520;
91
+ --rb-color-surface: #2b1a26;
92
+ --rb-color-surface-hover: #382330;
93
+ --rb-color-ink: #f9e4ec;
94
+ --rb-color-muted: #c9a7b6;
95
+ --rb-color-accent: #f4a3c2;
96
+ --rb-color-danger: #ff6369;
97
+ --rb-color-success: #4ccc9a;
98
+ --rb-color-code-background: color-mix(
99
+ in srgb,
100
+ var(--rb-color-ink) 12%,
101
+ transparent
102
+ );
103
+ --rb-color-overlay: rgb(0 0 0 / 0.6);
104
+ }
105
+
106
+ :is(
107
+ :root,
108
+ .rb-theme-root
109
+ )[data-theme-name="sakura"][data-theme="dark"][data-sakura-bloom="vivid"] {
110
+ --rb-color-accent: #f08aae;
111
+ --rb-color-surface-hover: #42232f;
112
+ }
113
+
114
+ @media (prefers-color-scheme: dark) {
115
+ :is(:root, .rb-theme-root)[data-theme-name="sakura"]:not([data-theme]) {
116
+ color-scheme: dark;
117
+ --rb-color-paper: #241520;
118
+ --rb-color-surface: #2b1a26;
119
+ --rb-color-surface-hover: #382330;
120
+ --rb-color-ink: #f9e4ec;
121
+ --rb-color-muted: #c9a7b6;
122
+ --rb-color-accent: #f4a3c2;
123
+ --rb-color-danger: #ff6369;
124
+ --rb-color-success: #4ccc9a;
125
+ --rb-color-code-background: color-mix(
126
+ in srgb,
127
+ var(--rb-color-ink) 12%,
128
+ transparent
129
+ );
130
+ --rb-color-overlay: rgb(0 0 0 / 0.6);
131
+ }
132
+
133
+ :is(:root, .rb-theme-root)[data-theme-name="sakura"]:not(
134
+ [data-theme]
135
+ )[data-sakura-bloom="vivid"] {
136
+ --rb-color-accent: #f08aae;
137
+ --rb-color-surface-hover: #42232f;
138
+ }
139
+ }
140
+
141
+ :is(
142
+ :root,
143
+ .rb-theme-root
144
+ )[data-theme-name="sakura"][data-typography="serif"] {
145
+ --rb-font-body:
146
+ "Source Serif 4", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP",
147
+ Georgia, serif;
148
+ --rb-font-heading: var(--rb-font-body);
149
+ }
150
+
151
+ :is(:root, .rb-theme-root)[data-theme-name="sakura"][data-typography="sans"] {
152
+ --rb-font-body:
153
+ ui-sans-serif, system-ui, "Hiragino Sans", "Noto Sans JP", "Yu Gothic",
154
+ sans-serif;
155
+ --rb-font-heading: var(--rb-font-body);
156
+ }
157
+
158
+ :is(:root, .rb-theme-root)[data-theme-name="sakura"] {
159
+ background: var(--rb-color-paper);
160
+ color: var(--rb-color-ink);
161
+ font-family: var(--rb-font-body);
162
+ accent-color: var(--rb-color-accent);
163
+ caret-color: var(--rb-color-accent);
164
+ }
165
+
166
+ :is(:root, .rb-theme-root)[data-theme-name="sakura"] ::selection {
167
+ background: var(--rb-color-accent);
168
+ color: var(--rb-color-paper);
169
+ }
170
+
171
+ :is(:root, .rb-theme-root)[data-theme-name="sakura"] :focus-visible {
172
+ outline: 2px solid var(--rb-color-accent);
173
+ outline-offset: 2px;
174
+ }
175
+ }
176
+
177
+ /* -------------------------------------------------------------------------
178
+ Character layer — unlayered on purpose.
179
+ The app's structural CSS and the plugin defaults all live inside @layer,
180
+ so these unlayered rules win without `!important`. Every selector is
181
+ scoped to the theme root, so the same styles apply to an embedded preview
182
+ container (`.rb-theme-root`) as to the document root.
183
+ ------------------------------------------------------------------------- */
184
+
185
+ /* Article shell: warm serif body with a generous measure and leading. */
186
+ :is(:root, .rb-theme-root)[data-theme-name="sakura"] .rb-article {
187
+ color: var(--rb-color-ink);
188
+ font-family: var(--rb-font-body);
189
+ font-size: 1.0625rem;
190
+ line-height: 1.9;
191
+ }
192
+
193
+ :is(:root, .rb-theme-root)[data-theme-name="sakura"] .rb-article-header h1 {
194
+ margin: 0 0 0.75rem;
195
+ color: var(--rb-color-ink);
196
+ font-family: var(--rb-font-heading);
197
+ font-size: clamp(2rem, 4.5vw, 2.75rem);
198
+ font-weight: 600;
199
+ letter-spacing: -0.015em;
200
+ line-height: 1.18;
201
+ text-wrap: balance;
202
+ }
203
+
204
+ :is(:root, .rb-theme-root)[data-theme-name="sakura"] .rb-article-meta {
205
+ margin-block: 0 2rem;
206
+ padding-block: 0.8rem;
207
+ border-block: 1px solid var(--rb-color-border);
208
+ color: color-mix(in srgb, var(--rb-color-muted) 72%, var(--rb-color-ink));
209
+ font-size: 0.9rem;
210
+ letter-spacing: 0.01em;
211
+ }
212
+
213
+ :is(:root, .rb-theme-root)[data-theme-name="sakura"] .rb-article-footer {
214
+ margin-top: 3rem;
215
+ padding-top: 1.5rem;
216
+ border-top: 1px solid var(--rb-color-border);
217
+ color: color-mix(in srgb, var(--rb-color-muted) 72%, var(--rb-color-ink));
218
+ font-size: 0.95rem;
219
+ }
220
+
221
+ :is(:root, .rb-theme-root)[data-theme-name="sakura"] .rb-sidebar {
222
+ color: color-mix(in srgb, var(--rb-color-muted) 72%, var(--rb-color-ink));
223
+ font-size: 0.95rem;
224
+ }
225
+
226
+ /* Headings: serif, 600, distinguished by size and weight. */
227
+ :is(:root, .rb-theme-root)[data-theme-name="sakura"]
228
+ .rb-article-body
229
+ :is(h2, h3, h4) {
230
+ color: var(--rb-color-ink);
231
+ font-family: var(--rb-font-heading);
232
+ font-weight: 600;
233
+ letter-spacing: -0.008em;
234
+ line-height: 1.3;
235
+ text-wrap: balance;
236
+ }
237
+
238
+ :is(:root, .rb-theme-root)[data-theme-name="sakura"] .rb-article-body h2 {
239
+ position: relative;
240
+ margin-block: 2.75rem 1.1rem;
241
+ padding-bottom: 0.65rem;
242
+ font-size: 1.6rem;
243
+ }
244
+
245
+ :is(:root, .rb-theme-root)[data-theme-name="sakura"] .rb-article-body h3 {
246
+ margin-block: 2.1rem 0.8rem;
247
+ font-size: 1.3rem;
248
+ }
249
+
250
+ :is(:root, .rb-theme-root)[data-theme-name="sakura"] .rb-article-body h4 {
251
+ margin-block: 1.6rem 0.6rem;
252
+ font-size: 1.1rem;
253
+ letter-spacing: 0.01em;
254
+ }
255
+
256
+ /* Blossom rule under h2; removed when `heading="plain"`. */
257
+ :is(:root, .rb-theme-root)[data-theme-name="sakura"]
258
+ .rb-article-body
259
+ h2::after {
260
+ content: "";
261
+ position: absolute;
262
+ inset-inline-start: 0;
263
+ inset-block-end: 0;
264
+ width: 2.75rem;
265
+ height: 2px;
266
+ border-radius: 999px;
267
+ background: color-mix(in srgb, var(--rb-color-accent) 75%, transparent);
268
+ }
269
+
270
+ :is(
271
+ :root,
272
+ .rb-theme-root
273
+ )[data-theme-name="sakura"][data-sakura-heading="plain"]
274
+ .rb-article-body
275
+ h2 {
276
+ padding-bottom: 0;
277
+ }
278
+
279
+ :is(
280
+ :root,
281
+ .rb-theme-root
282
+ )[data-theme-name="sakura"][data-sakura-heading="plain"]
283
+ .rb-article-body
284
+ h2::after {
285
+ content: none;
286
+ }
287
+
288
+ /* Paragraphs. */
289
+ :is(:root, .rb-theme-root)[data-theme-name="sakura"] .rb-article-body p {
290
+ margin-block: 1.4rem;
291
+ text-wrap: pretty;
292
+ }
293
+
294
+ :is(:root, .rb-theme-root)[data-theme-name="sakura"]
295
+ .rb-article-body
296
+ > :first-child {
297
+ margin-block-start: 0;
298
+ }
299
+
300
+ :is(:root, .rb-theme-root)[data-theme-name="sakura"]
301
+ .rb-article-body
302
+ > :last-child {
303
+ margin-block-end: 0;
304
+ }
305
+
306
+ /* Links: accent tone with an offset underline; hover thickens it. */
307
+ :is(:root, .rb-theme-root)[data-theme-name="sakura"] .rb-article-body a {
308
+ color: color-mix(in srgb, var(--rb-color-accent) 55%, var(--rb-color-ink));
309
+ text-decoration: underline;
310
+ text-decoration-thickness: 1px;
311
+ text-decoration-color: color-mix(
312
+ in srgb,
313
+ var(--rb-color-accent) 55%,
314
+ transparent
315
+ );
316
+ text-underline-offset: 0.22em;
317
+ transition:
318
+ color 140ms ease,
319
+ text-decoration-color 140ms ease,
320
+ text-decoration-thickness 140ms ease;
321
+ }
322
+
323
+ :is(:root, .rb-theme-root)[data-theme-name="sakura"] .rb-article-body a:hover {
324
+ color: color-mix(in srgb, var(--rb-color-accent) 42%, var(--rb-color-ink));
325
+ text-decoration-thickness: 2px;
326
+ text-decoration-color: currentColor;
327
+ }
328
+
329
+ /* Lists: quiet spacing with blossom-tinted markers. */
330
+ :is(:root, .rb-theme-root)[data-theme-name="sakura"]
331
+ .rb-article-body
332
+ :is(ul, ol) {
333
+ margin-block: 1.4rem;
334
+ padding-inline-start: 1.4em;
335
+ }
336
+
337
+ :is(:root, .rb-theme-root)[data-theme-name="sakura"] .rb-article-body li {
338
+ margin-block: 0.35rem;
339
+ padding-inline-start: 0.15em;
340
+ }
341
+
342
+ :is(:root, .rb-theme-root)[data-theme-name="sakura"]
343
+ .rb-article-body
344
+ :is(ul, ol)
345
+ > li::marker {
346
+ color: color-mix(in srgb, var(--rb-color-accent) 72%, var(--rb-color-ink));
347
+ }
348
+
349
+ /* Blockquote: rounded plum-tinted surface with an accent left rule. */
350
+ :is(:root, .rb-theme-root)[data-theme-name="sakura"]
351
+ .rb-article-body
352
+ blockquote {
353
+ margin: 2rem 0;
354
+ padding: 1.1rem 1.35rem;
355
+ border: 1px solid color-mix(in srgb, var(--rb-color-accent) 22%, transparent);
356
+ border-inline-start: 3px solid var(--rb-color-accent);
357
+ border-radius: var(--rb-sakura-radius);
358
+ background: color-mix(
359
+ in srgb,
360
+ var(--rb-color-accent) 7%,
361
+ var(--rb-color-surface)
362
+ );
363
+ color: color-mix(in srgb, var(--rb-color-ink) 86%, var(--rb-color-accent));
364
+ font-style: normal;
365
+ quotes: none;
366
+ }
367
+
368
+ :is(:root, .rb-theme-root)[data-theme-name="sakura"]
369
+ .rb-article-body
370
+ blockquote
371
+ p {
372
+ margin-block: 0.6rem;
373
+ }
374
+
375
+ :is(:root, .rb-theme-root)[data-theme-name="sakura"]
376
+ .rb-article-body
377
+ blockquote
378
+ > :first-child {
379
+ margin-block-start: 0;
380
+ }
381
+
382
+ :is(:root, .rb-theme-root)[data-theme-name="sakura"]
383
+ .rb-article-body
384
+ blockquote
385
+ > :last-child {
386
+ margin-block-end: 0;
387
+ }
388
+
389
+ :is(:root, .rb-theme-root)[data-theme-name="sakura"]
390
+ .rb-article-body
391
+ blockquote
392
+ p::before,
393
+ :is(:root, .rb-theme-root)[data-theme-name="sakura"]
394
+ .rb-article-body
395
+ blockquote
396
+ p::after {
397
+ content: none;
398
+ }
399
+
400
+ /* hr: a short centered accent rule. */
401
+ :is(:root, .rb-theme-root)[data-theme-name="sakura"] .rb-article-body hr {
402
+ width: 4rem;
403
+ height: 2px;
404
+ margin-block: 3rem;
405
+ margin-inline: auto;
406
+ border: 0;
407
+ border-radius: 999px;
408
+ background: color-mix(in srgb, var(--rb-color-accent) 55%, transparent);
409
+ }
410
+
411
+ /* Code. */
412
+ :is(:root, .rb-theme-root)[data-theme-name="sakura"]
413
+ .rb-article-body
414
+ :not(pre)
415
+ > code {
416
+ padding: 0.18em 0.42em;
417
+ border: 1px solid color-mix(in srgb, var(--rb-color-accent) 18%, transparent);
418
+ border-radius: var(--rb-sakura-radius-sm);
419
+ background: var(--rb-color-code-background);
420
+ color: color-mix(in srgb, var(--rb-color-ink) 82%, var(--rb-color-accent));
421
+ font-size: 0.88em;
422
+ }
423
+
424
+ :is(:root, .rb-theme-root)[data-theme-name="sakura"]
425
+ .rb-article-body
426
+ pre:not(:where(.rr-code *)) {
427
+ margin-block: 1.75rem;
428
+ padding: 1.05rem 1.2rem;
429
+ border: 1px solid var(--rb-color-border);
430
+ border-radius: var(--rb-sakura-radius);
431
+ background: var(--rb-color-code-background);
432
+ line-height: 1.7;
433
+ box-shadow: 0 8px 22px -18px
434
+ color-mix(in srgb, var(--rb-color-ink) 60%, transparent);
435
+ }
436
+
437
+ :is(:root, .rb-theme-root)[data-theme-name="sakura"] .rr-code {
438
+ border: 1px solid var(--rb-color-border);
439
+ border-radius: var(--rb-sakura-radius);
440
+ overflow: hidden;
441
+ }
442
+
443
+ :is(:root, .rb-theme-root)[data-theme-name="sakura"]
444
+ .rr-code:not([data-terminal="true"]) {
445
+ --rr-code-paper: var(--rb-color-code-background);
446
+ }
447
+
448
+ :is(:root, .rb-theme-root)[data-theme-name="sakura"] .rr-code-tabs {
449
+ border-radius: var(--rb-sakura-radius);
450
+ overflow: hidden;
451
+ }
452
+
453
+ /* Tables: hairline rules and a tinted header row. */
454
+ :is(:root, .rb-theme-root)[data-theme-name="sakura"] .rb-article-body table {
455
+ margin-block: 1.75rem;
456
+ border: 1px solid var(--rb-color-border);
457
+ border-radius: var(--rb-sakura-radius-sm);
458
+ border-collapse: separate;
459
+ border-spacing: 0;
460
+ font-size: 0.95em;
461
+ }
462
+
463
+ :is(:root, .rb-theme-root)[data-theme-name="sakura"]
464
+ .rb-article-body
465
+ :is(th, td) {
466
+ padding: 0.6rem 0.85rem;
467
+ border-bottom: 1px solid var(--rb-color-border);
468
+ text-align: start;
469
+ vertical-align: top;
470
+ }
471
+
472
+ :is(:root, .rb-theme-root)[data-theme-name="sakura"] .rb-article-body thead th {
473
+ background: color-mix(
474
+ in srgb,
475
+ var(--rb-color-accent) 9%,
476
+ var(--rb-color-surface)
477
+ );
478
+ color: var(--rb-color-ink);
479
+ font-weight: 600;
480
+ }
481
+
482
+ :is(:root, .rb-theme-root)[data-theme-name="sakura"]
483
+ .rb-article-body
484
+ tbody
485
+ tr:last-child
486
+ td {
487
+ border-bottom: 0;
488
+ }
489
+
490
+ /* Images: the only elements that get a real soft shadow. */
491
+ :is(:root, .rb-theme-root)[data-theme-name="sakura"] .rb-article-body > img,
492
+ :is(:root, .rb-theme-root)[data-theme-name="sakura"] .rb-article-body p > img,
493
+ :is(:root, .rb-theme-root)[data-theme-name="sakura"]
494
+ .rb-article-body
495
+ figure
496
+ img {
497
+ border: 1px solid var(--rb-color-border);
498
+ border-radius: var(--rb-sakura-radius);
499
+ box-shadow: 0 14px 30px -22px
500
+ color-mix(in srgb, var(--rb-color-ink) 65%, transparent);
501
+ }
502
+
503
+ /* Plugin roots. */
504
+ :is(:root, .rb-theme-root)[data-theme-name="sakura"] .rr-callout {
505
+ margin-block: 1.75rem;
506
+ padding: 1rem 1.25rem;
507
+ border: 1px solid color-mix(in srgb, var(--rb-color-accent) 24%, transparent);
508
+ border-inline-start: 3px solid var(--rb-color-accent);
509
+ border-radius: var(--rb-sakura-radius);
510
+ background: color-mix(
511
+ in srgb,
512
+ var(--rb-color-accent) 7%,
513
+ var(--rb-color-surface)
514
+ );
515
+ color: var(--rb-color-ink);
516
+ box-shadow: none;
517
+ }
518
+
519
+ :is(:root, .rb-theme-root)[data-theme-name="sakura"] .rr-table-of-contents {
520
+ padding: 1rem 1.15rem;
521
+ border: 1px solid var(--rb-color-border);
522
+ border-radius: var(--rb-sakura-radius);
523
+ background: color-mix(
524
+ in srgb,
525
+ var(--rb-color-accent) 4%,
526
+ var(--rb-color-surface)
527
+ );
528
+ }
529
+
530
+ :is(:root, .rb-theme-root)[data-theme-name="sakura"] .rr-table-of-contents a {
531
+ color: color-mix(in srgb, var(--rb-color-muted) 78%, var(--rb-color-ink));
532
+ }
533
+
534
+ :is(:root, .rb-theme-root)[data-theme-name="sakura"] .rr-backlinks {
535
+ margin-top: 3.5rem;
536
+ padding-top: 1.75rem;
537
+ border-top: 1px solid var(--rb-color-border);
538
+ }
539
+
540
+ :is(:root, .rb-theme-root)[data-theme-name="sakura"] .rr-backlinks a {
541
+ border-radius: var(--rb-sakura-radius-sm);
542
+ }
543
+
544
+ :is(:root, .rb-theme-root)[data-theme-name="sakura"] .rr-local-graph {
545
+ margin-top: 3.5rem;
546
+ padding-top: 1.75rem;
547
+ border-top: 1px solid var(--rb-color-border);
548
+ }
549
+
550
+ :is(:root, .rb-theme-root)[data-theme-name="sakura"] .rr-recent-posts {
551
+ margin-top: 3.5rem;
552
+ padding-top: 1.75rem;
553
+ border-top: 1px solid var(--rb-color-border);
554
+ }
555
+
556
+ :is(:root, .rb-theme-root)[data-theme-name="sakura"] .rr-recent-posts a {
557
+ border-radius: var(--rb-sakura-radius-sm);
558
+ }
559
+
560
+ :is(:root, .rb-theme-root)[data-theme-name="sakura"] .rr-search {
561
+ border-radius: var(--rb-sakura-radius);
562
+ }
563
+
564
+ :is(:root, .rb-theme-root)[data-theme-name="sakura"]
565
+ .rr-search
566
+ :is(input, button, a) {
567
+ border-radius: var(--rb-sakura-radius-sm);
568
+ }
569
+
570
+ :is(:root, .rb-theme-root)[data-theme-name="sakura"] .rr-cardlink {
571
+ border: 1px solid var(--rb-color-border);
572
+ border-radius: var(--rb-sakura-radius);
573
+ overflow: hidden;
574
+ text-decoration: none;
575
+ }
576
+
577
+ :is(:root, .rb-theme-root)[data-theme-name="sakura"] .rr-cardlink:hover,
578
+ :is(:root, .rb-theme-root)[data-theme-name="sakura"]
579
+ .rr-cardlink:focus-visible {
580
+ border-color: color-mix(
581
+ in srgb,
582
+ var(--rb-color-accent) 55%,
583
+ var(--rb-color-border)
584
+ );
585
+ box-shadow: 0 14px 30px -20px
586
+ color-mix(in srgb, var(--rb-color-ink) 60%, transparent);
587
+ }
588
+
589
+ :is(:root, .rb-theme-root)[data-theme-name="sakura"] .rr-lightbox img {
590
+ border-radius: var(--rb-sakura-radius-sm);
591
+ }
592
+
593
+ :is(:root, .rb-theme-root)[data-theme-name="sakura"] .rr-mermaid {
594
+ border: 1px solid var(--rb-color-border);
595
+ border-radius: var(--rb-sakura-radius);
596
+ background: color-mix(
597
+ in srgb,
598
+ var(--rb-color-accent) 4%,
599
+ var(--rb-color-surface)
600
+ );
601
+ }
602
+
603
+ :is(:root, .rb-theme-root)[data-theme-name="sakura"] .rr-attachment {
604
+ border: 1px solid var(--rb-color-border);
605
+ border-radius: var(--rb-sakura-radius);
606
+ background: color-mix(
607
+ in srgb,
608
+ var(--rb-color-accent) 4%,
609
+ var(--rb-color-surface)
610
+ );
611
+ }
612
+
613
+ :is(:root, .rb-theme-root)[data-theme-name="sakura"]
614
+ .rr-media
615
+ :is(img, video, audio) {
616
+ border-radius: var(--rb-sakura-radius-sm);
617
+ }
618
+
619
+ /* Slim, accent-tinted scrollbar. */
620
+ :is(:root, .rb-theme-root)[data-theme-name="sakura"] * {
621
+ scrollbar-color: color-mix(
622
+ in srgb,
623
+ var(--rb-color-accent) 50%,
624
+ var(--rb-color-muted)
625
+ )
626
+ transparent;
627
+ scrollbar-width: thin;
628
+ }
629
+
630
+ :is(:root, .rb-theme-root)[data-theme-name="sakura"] ::-webkit-scrollbar {
631
+ width: 10px;
632
+ height: 10px;
633
+ }
634
+
635
+ :is(:root, .rb-theme-root)[data-theme-name="sakura"] ::-webkit-scrollbar-thumb {
636
+ border: 2px solid var(--rb-color-paper);
637
+ border-radius: 999px;
638
+ background: color-mix(
639
+ in srgb,
640
+ var(--rb-color-accent) 50%,
641
+ var(--rb-color-muted)
642
+ );
643
+ }
644
+
645
+ :is(:root, .rb-theme-root)[data-theme-name="sakura"] ::-webkit-scrollbar-track {
646
+ background: transparent;
647
+ }