@ascribed/review 0.2.0 → 0.2.1-next.11

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.
@@ -0,0 +1,271 @@
1
+ /**
2
+ * Where a block's text is written: the README's anchor grammar, the same
3
+ * string the rendered page carries in `data-ascribe-source` and
4
+ * `data-ascribe-via`.
5
+ */
6
+ export interface Anchor {
7
+ /**
8
+ * `<path>:<first>-<last>`: the file's content path, percent-encoded by
9
+ * segment, and the block's first and last lines, from 1.
10
+ */
11
+ source: string;
12
+ /**
13
+ * The includes the block came through, outermost first, each
14
+ * `<path>:<line>`. Empty for a block written in the page itself.
15
+ */
16
+ via: string[];
17
+ }
18
+ /** The base of a comparison, in the report. */
19
+ export interface BaseInfo {
20
+ /** The revision asked for, or the default branch used. */
21
+ requested: string;
22
+ /** The commit it names. */
23
+ commit: string;
24
+ /**
25
+ * The merge base of that commit and `HEAD`, which the comparison reads;
26
+ * `null` with `--base-exact`, which reads `commit`.
27
+ */
28
+ merge_base: string | null;
29
+ }
30
+ /** One build's changed pages. */
31
+ export interface BuildData {
32
+ /** The build's name. */
33
+ build: string;
34
+ /** Its changed pages, in path order. */
35
+ pages: PageData[];
36
+ }
37
+ /** What changed in one build. */
38
+ export interface BuildDiff {
39
+ /** The build's name. */
40
+ build: string;
41
+ /** The pages that changed, in path order. */
42
+ pages: PageDiff[];
43
+ }
44
+ /** One block's change. */
45
+ export interface Change {
46
+ /** What happened to it. */
47
+ kind: ChangeKind;
48
+ /**
49
+ * For a removed block, and a moved block's old place: the block of the
50
+ * new version it came after, among its siblings. Absent when it was
51
+ * first.
52
+ */
53
+ after?: Anchor;
54
+ /** Where it's written now: every kind but `removed`. */
55
+ now?: Anchor;
56
+ /**
57
+ * For a removed block, and a moved block's old place: the block of the
58
+ * new version it was inside. Absent at the top of the page.
59
+ */
60
+ parent?: Anchor;
61
+ /**
62
+ * For a removed block, its text, whitespace collapsed, so it can be
63
+ * shown where it was.
64
+ */
65
+ text?: string;
66
+ /** Where it was written: every kind but `added`. */
67
+ was?: Anchor;
68
+ /** For changed prose, the words that differ. */
69
+ words?: Words;
70
+ }
71
+ /** The kinds of block change. */
72
+ export type ChangeKind = "changed" | "added" | "removed" | "moved";
73
+ /** How many changes of each kind a page has. */
74
+ export interface Counts {
75
+ /** Blocks whose content changed. */
76
+ changed: number;
77
+ /** Blocks only in the new version. */
78
+ added: number;
79
+ /** Blocks only in the old version. */
80
+ removed: number;
81
+ /** Blocks in both, somewhere else. */
82
+ moved: number;
83
+ }
84
+ /** The whole report, as `ascribe diff --format json` writes it. */
85
+ export interface DiffReport {
86
+ /** `SCHEMA_VERSION`. */
87
+ schema_version: number;
88
+ /** The version of Ascribe that wrote it. */
89
+ ascribe_version: string;
90
+ /** What was compared with. */
91
+ base: BaseInfo;
92
+ /** Where the project is. */
93
+ repository: RepositoryInfo;
94
+ /**
95
+ * How many errors `ascribe check` finds in the working tree, for the
96
+ * builds compared. The comparison runs regardless, but a page with an
97
+ * error may not render as it will once it's fixed, so a reviewer should
98
+ * know. `diff_project` sets it; `Report::new` leaves it zero.
99
+ */
100
+ working_tree_errors: number;
101
+ /** What changed, per build, in the order asked for. */
102
+ builds: BuildDiff[];
103
+ }
104
+ /**
105
+ * A piece of a formatted value, as the JSON output writes it:
106
+ * `{ "type": "text" | "code", "value": … }`. Other JSON that shows a
107
+ * formatted title, such as the review report's, writes it the same way.
108
+ */
109
+ export interface FormattedPiece {
110
+ /** What the piece is. */
111
+ type: PieceKind;
112
+ /** Its text: a code span's content without its backticks. */
113
+ value: string;
114
+ }
115
+ /** An image a page refers to. */
116
+ export interface ImageRef {
117
+ /** The image's source file. */
118
+ path: string;
119
+ /** Its size, when it's too large to include. */
120
+ bytes?: number;
121
+ /** Its key in `images`, when it's included. */
122
+ image?: string;
123
+ }
124
+ /** How many changed pages a report renders, and how many it left out. */
125
+ export interface Limit {
126
+ /** The most it renders. */
127
+ pages: number;
128
+ /** How many it left out. */
129
+ omitted: number;
130
+ }
131
+ /** One changed page: `ascribe diff --format json`'s, and its renderings. */
132
+ export interface PageData {
133
+ /** The page's content path. */
134
+ path: string;
135
+ /** Its route: the new one, or for a removed page the old one. */
136
+ route: string;
137
+ /**
138
+ * Whether the build publishes it only now, only before, or in both
139
+ * with a difference.
140
+ */
141
+ status: PageStatus;
142
+ /** Whether the page's own file changed (or exists on one side only). */
143
+ own_file_changed: boolean;
144
+ /**
145
+ * The other changed files the page's change can come from: fragments it
146
+ * includes and pages its links take a title or a heading from, in path
147
+ * order; then the snippets whose code changed, by address
148
+ * (`code:app.py#main`); and `ascribe.toml` (last) when the content model
149
+ * is a cause.
150
+ */
151
+ because: string[];
152
+ /**
153
+ * What changed about the page itself besides its blocks, in this
154
+ * order: `title`, `frontmatter`, `availability` (the page-level one),
155
+ * and `route`. Empty for an added or removed page.
156
+ */
157
+ page_changed: string[];
158
+ /** How many changes of each kind. */
159
+ counts: Counts;
160
+ /**
161
+ * The block-level changes, in the page's order, a removed block where
162
+ * it was. Empty for an added or removed page.
163
+ */
164
+ changes: Change[];
165
+ /** Its title, when the build has one. */
166
+ title: string | null;
167
+ /**
168
+ * Its title formatted, when its field sets `inline = "code"`: for the
169
+ * page list and the page's heading. `title` stays the plain text.
170
+ */
171
+ formatted_title: FormattedPiece[] | null;
172
+ /** The page now, as a key of `pages`; `null` when there's none. */
173
+ now: string | null;
174
+ /** The page before, as a key of `pages`; `null` when there's none. */
175
+ was: string | null;
176
+ /** Whether it's beyond the limit, so not rendered. */
177
+ omitted: boolean;
178
+ }
179
+ /** What changed on one page of a build. */
180
+ export interface PageDiff {
181
+ /** The page's content path. */
182
+ path: string;
183
+ /** Its route: the new one, or for a removed page the old one. */
184
+ route: string;
185
+ /**
186
+ * Whether the build publishes it only now, only before, or in both
187
+ * with a difference.
188
+ */
189
+ status: PageStatus;
190
+ /** Whether the page's own file changed (or exists on one side only). */
191
+ own_file_changed: boolean;
192
+ /**
193
+ * The other changed files the page's change can come from: fragments it
194
+ * includes and pages its links take a title or a heading from, in path
195
+ * order; then the snippets whose code changed, by address
196
+ * (`code:app.py#main`); and `ascribe.toml` (last) when the content model
197
+ * is a cause.
198
+ */
199
+ because: string[];
200
+ /**
201
+ * What changed about the page itself besides its blocks, in this
202
+ * order: `title`, `frontmatter`, `availability` (the page-level one),
203
+ * and `route`. Empty for an added or removed page.
204
+ */
205
+ page_changed: string[];
206
+ /** How many changes of each kind. */
207
+ counts: Counts;
208
+ /**
209
+ * The block-level changes, in the page's order, a removed block where
210
+ * it was. Empty for an added or removed page.
211
+ */
212
+ changes: Change[];
213
+ }
214
+ /** Whether a page is new, gone, or different. */
215
+ export type PageStatus = "added" | "removed" | "changed";
216
+ /** What a piece of a formatted value is. */
217
+ export type PieceKind = "text" | "code";
218
+ /** A page rendered: its HTML, and what each image reference in it is. */
219
+ export interface RenderedPage {
220
+ /** The page's content, rendered with source anchors. */
221
+ html: string;
222
+ /** Each image reference the HTML writes, and what it is. */
223
+ images: Record<string, ImageRef>;
224
+ }
225
+ /**
226
+ * The data the report's script draws from. Its keys, like the JSON
227
+ * report's, are snake_case.
228
+ */
229
+ export interface ReportData {
230
+ /** The version of Ascribe that wrote it. */
231
+ ascribe_version: string;
232
+ /** What was compared with. */
233
+ base: BaseInfo;
234
+ /** How many errors `ascribe check` finds in the working tree. */
235
+ working_tree_errors: number;
236
+ /** What changed, per build. */
237
+ builds: BuildData[];
238
+ /** Each rendered page, once however many builds render it alike. */
239
+ pages: Record<string, RenderedPage>;
240
+ /** Each image, as a `data:` URL, once however many pages use it. */
241
+ images: Record<string, string>;
242
+ /** How many changed pages the report renders, and how many it left out. */
243
+ limit: Limit;
244
+ /** The size, in bytes, above which an image isn't included. */
245
+ image_limit: number;
246
+ }
247
+ /** The repository, in the report. */
248
+ export interface RepositoryInfo {
249
+ /** The repository's top-level directory, as git prints it. */
250
+ root: string;
251
+ /**
252
+ * The project's folder inside it, with a trailing `/`, or empty when
253
+ * the project is at the repository's root.
254
+ */
255
+ project_prefix: string;
256
+ }
257
+ /**
258
+ * The words that differ inside a changed block of prose. Ranges are
259
+ * `[start, end)` in characters (Unicode scalar values) of each side's
260
+ * `text`, which is the block's text with whitespace collapsed.
261
+ */
262
+ export interface Words {
263
+ /** Ranges in `now_text`: words added or replacing others. */
264
+ now: [number, number][];
265
+ /** Ranges in `was_text`: words removed or replaced. */
266
+ was: [number, number][];
267
+ /** The block's text now. */
268
+ now_text: string;
269
+ /** The block's text before. */
270
+ was_text: string;
271
+ }
package/dist/shapes.js ADDED
@@ -0,0 +1,9 @@
1
+ // The JSON Ascribe writes that this package reads, as TypeScript types.
2
+ // Generated from the Rust types that write it, through the JSON Schemas in
3
+ // schemas/, by crates/ascribe-cli/src/shapes.rs. Change the Rust types, then
4
+ // run `ASCRIBE_BLESS=1 cargo test -p ascribe-cli shapes`. Don't edit it.
5
+ //
6
+ // - DiffReport (`ascribe diff --format json`)
7
+ // - ReportData (`ascribe diff --format html`, for the report's script)
8
+ export {};
9
+ //# sourceMappingURL=shapes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shapes.js","sourceRoot":"","sources":["../src/shapes.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,2EAA2E;AAC3E,6EAA6E;AAC7E,yEAAyE;AACzE,EAAE;AACF,8CAA8C;AAC9C,uEAAuE","sourcesContent":["// The JSON Ascribe writes that this package reads, as TypeScript types.\n// Generated from the Rust types that write it, through the JSON Schemas in\n// schemas/, by crates/ascribe-cli/src/shapes.rs. Change the Rust types, then\n// run `ASCRIBE_BLESS=1 cargo test -p ascribe-cli shapes`. Don't edit it.\n//\n// - DiffReport (`ascribe diff --format json`)\n// - ReportData (`ascribe diff --format html`, for the report's script)\n\n/**\n * Where a block's text is written: the README's anchor grammar, the same\n * string the rendered page carries in `data-ascribe-source` and\n * `data-ascribe-via`.\n */\nexport interface Anchor {\n /**\n * `<path>:<first>-<last>`: the file's content path, percent-encoded by\n * segment, and the block's first and last lines, from 1.\n */\n source: string;\n /**\n * The includes the block came through, outermost first, each\n * `<path>:<line>`. Empty for a block written in the page itself.\n */\n via: string[];\n}\n\n/** The base of a comparison, in the report. */\nexport interface BaseInfo {\n /** The revision asked for, or the default branch used. */\n requested: string;\n /** The commit it names. */\n commit: string;\n /**\n * The merge base of that commit and `HEAD`, which the comparison reads;\n * `null` with `--base-exact`, which reads `commit`.\n */\n merge_base: string | null;\n}\n\n/** One build's changed pages. */\nexport interface BuildData {\n /** The build's name. */\n build: string;\n /** Its changed pages, in path order. */\n pages: PageData[];\n}\n\n/** What changed in one build. */\nexport interface BuildDiff {\n /** The build's name. */\n build: string;\n /** The pages that changed, in path order. */\n pages: PageDiff[];\n}\n\n/** One block's change. */\nexport interface Change {\n /** What happened to it. */\n kind: ChangeKind;\n /**\n * For a removed block, and a moved block's old place: the block of the\n * new version it came after, among its siblings. Absent when it was\n * first.\n */\n after?: Anchor;\n /** Where it's written now: every kind but `removed`. */\n now?: Anchor;\n /**\n * For a removed block, and a moved block's old place: the block of the\n * new version it was inside. Absent at the top of the page.\n */\n parent?: Anchor;\n /**\n * For a removed block, its text, whitespace collapsed, so it can be\n * shown where it was.\n */\n text?: string;\n /** Where it was written: every kind but `added`. */\n was?: Anchor;\n /** For changed prose, the words that differ. */\n words?: Words;\n}\n\n/** The kinds of block change. */\nexport type ChangeKind = \"changed\" | \"added\" | \"removed\" | \"moved\";\n\n/** How many changes of each kind a page has. */\nexport interface Counts {\n /** Blocks whose content changed. */\n changed: number;\n /** Blocks only in the new version. */\n added: number;\n /** Blocks only in the old version. */\n removed: number;\n /** Blocks in both, somewhere else. */\n moved: number;\n}\n\n/** The whole report, as `ascribe diff --format json` writes it. */\nexport interface DiffReport {\n /** `SCHEMA_VERSION`. */\n schema_version: number;\n /** The version of Ascribe that wrote it. */\n ascribe_version: string;\n /** What was compared with. */\n base: BaseInfo;\n /** Where the project is. */\n repository: RepositoryInfo;\n /**\n * How many errors `ascribe check` finds in the working tree, for the\n * builds compared. The comparison runs regardless, but a page with an\n * error may not render as it will once it's fixed, so a reviewer should\n * know. `diff_project` sets it; `Report::new` leaves it zero.\n */\n working_tree_errors: number;\n /** What changed, per build, in the order asked for. */\n builds: BuildDiff[];\n}\n\n/**\n * A piece of a formatted value, as the JSON output writes it:\n * `{ \"type\": \"text\" | \"code\", \"value\": … }`. Other JSON that shows a\n * formatted title, such as the review report's, writes it the same way.\n */\nexport interface FormattedPiece {\n /** What the piece is. */\n type: PieceKind;\n /** Its text: a code span's content without its backticks. */\n value: string;\n}\n\n/** An image a page refers to. */\nexport interface ImageRef {\n /** The image's source file. */\n path: string;\n /** Its size, when it's too large to include. */\n bytes?: number;\n /** Its key in `images`, when it's included. */\n image?: string;\n}\n\n/** How many changed pages a report renders, and how many it left out. */\nexport interface Limit {\n /** The most it renders. */\n pages: number;\n /** How many it left out. */\n omitted: number;\n}\n\n/** One changed page: `ascribe diff --format json`'s, and its renderings. */\nexport interface PageData {\n /** The page's content path. */\n path: string;\n /** Its route: the new one, or for a removed page the old one. */\n route: string;\n /**\n * Whether the build publishes it only now, only before, or in both\n * with a difference.\n */\n status: PageStatus;\n /** Whether the page's own file changed (or exists on one side only). */\n own_file_changed: boolean;\n /**\n * The other changed files the page's change can come from: fragments it\n * includes and pages its links take a title or a heading from, in path\n * order; then the snippets whose code changed, by address\n * (`code:app.py#main`); and `ascribe.toml` (last) when the content model\n * is a cause.\n */\n because: string[];\n /**\n * What changed about the page itself besides its blocks, in this\n * order: `title`, `frontmatter`, `availability` (the page-level one),\n * and `route`. Empty for an added or removed page.\n */\n page_changed: string[];\n /** How many changes of each kind. */\n counts: Counts;\n /**\n * The block-level changes, in the page's order, a removed block where\n * it was. Empty for an added or removed page.\n */\n changes: Change[];\n /** Its title, when the build has one. */\n title: string | null;\n /**\n * Its title formatted, when its field sets `inline = \"code\"`: for the\n * page list and the page's heading. `title` stays the plain text.\n */\n formatted_title: FormattedPiece[] | null;\n /** The page now, as a key of `pages`; `null` when there's none. */\n now: string | null;\n /** The page before, as a key of `pages`; `null` when there's none. */\n was: string | null;\n /** Whether it's beyond the limit, so not rendered. */\n omitted: boolean;\n}\n\n/** What changed on one page of a build. */\nexport interface PageDiff {\n /** The page's content path. */\n path: string;\n /** Its route: the new one, or for a removed page the old one. */\n route: string;\n /**\n * Whether the build publishes it only now, only before, or in both\n * with a difference.\n */\n status: PageStatus;\n /** Whether the page's own file changed (or exists on one side only). */\n own_file_changed: boolean;\n /**\n * The other changed files the page's change can come from: fragments it\n * includes and pages its links take a title or a heading from, in path\n * order; then the snippets whose code changed, by address\n * (`code:app.py#main`); and `ascribe.toml` (last) when the content model\n * is a cause.\n */\n because: string[];\n /**\n * What changed about the page itself besides its blocks, in this\n * order: `title`, `frontmatter`, `availability` (the page-level one),\n * and `route`. Empty for an added or removed page.\n */\n page_changed: string[];\n /** How many changes of each kind. */\n counts: Counts;\n /**\n * The block-level changes, in the page's order, a removed block where\n * it was. Empty for an added or removed page.\n */\n changes: Change[];\n}\n\n/** Whether a page is new, gone, or different. */\nexport type PageStatus = \"added\" | \"removed\" | \"changed\";\n\n/** What a piece of a formatted value is. */\nexport type PieceKind = \"text\" | \"code\";\n\n/** A page rendered: its HTML, and what each image reference in it is. */\nexport interface RenderedPage {\n /** The page's content, rendered with source anchors. */\n html: string;\n /** Each image reference the HTML writes, and what it is. */\n images: Record<string, ImageRef>;\n}\n\n/**\n * The data the report's script draws from. Its keys, like the JSON\n * report's, are snake_case.\n */\nexport interface ReportData {\n /** The version of Ascribe that wrote it. */\n ascribe_version: string;\n /** What was compared with. */\n base: BaseInfo;\n /** How many errors `ascribe check` finds in the working tree. */\n working_tree_errors: number;\n /** What changed, per build. */\n builds: BuildData[];\n /** Each rendered page, once however many builds render it alike. */\n pages: Record<string, RenderedPage>;\n /** Each image, as a `data:` URL, once however many pages use it. */\n images: Record<string, string>;\n /** How many changed pages the report renders, and how many it left out. */\n limit: Limit;\n /** The size, in bytes, above which an image isn't included. */\n image_limit: number;\n}\n\n/** The repository, in the report. */\nexport interface RepositoryInfo {\n /** The repository's top-level directory, as git prints it. */\n root: string;\n /**\n * The project's folder inside it, with a trailing `/`, or empty when\n * the project is at the repository's root.\n */\n project_prefix: string;\n}\n\n/**\n * The words that differ inside a changed block of prose. Ranges are\n * `[start, end)` in characters (Unicode scalar values) of each side's\n * `text`, which is the block's text with whitespace collapsed.\n */\nexport interface Words {\n /** Ranges in `now_text`: words added or replacing others. */\n now: [number, number][];\n /** Ranges in `was_text`: words removed or replaced. */\n was: [number, number][];\n /** The block's text now. */\n now_text: string;\n /** The block's text before. */\n was_text: string;\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ascribed/review",
3
- "version": "0.2.0",
3
+ "version": "0.2.1-next.11",
4
4
  "description": "Reviewing Ascribe pages as readers see them: changed blocks marked on the rendered page, and a pull request's review threads beside them.",
5
5
  "type": "module",
6
6
  "license": "MPL-2.0",
@@ -40,7 +40,7 @@
40
40
  "node": ">=24"
41
41
  },
42
42
  "devDependencies": {
43
- "@ascribed/elements": "0.2.0",
43
+ "@ascribed/elements": "0.2.1-next.11",
44
44
  "@types/node": "^24.0.0",
45
45
  "esbuild": "^0.28.2",
46
46
  "jsdom": "^30.1.1"
@@ -51,6 +51,7 @@
51
51
  "dependencies": {
52
52
  "smol-toml": "^1.9.0"
53
53
  },
54
+ "gitHead": "dd64394135ff782efb8db030c81ac3b38e0f92c5",
54
55
  "scripts": {
55
56
  "build": "tsc -p tsconfig.build.json",
56
57
  "typecheck": "tsc --noEmit",
@@ -12,69 +12,74 @@
12
12
  */
13
13
 
14
14
  :root {
15
- --ascribe-review-added: #1a7f37;
16
- --ascribe-review-added-background: #dcf7e3;
17
- --ascribe-review-changed: #8a5a00;
18
- --ascribe-review-changed-background: #fff1c2;
19
- --ascribe-review-removed: #c4222d;
20
- --ascribe-review-removed-background: #ffe4e2;
21
- --ascribe-review-moved: #7a3fd0;
22
- --ascribe-review-moved-background: #f0e6ff;
23
- --ascribe-review-muted: #5b6475;
15
+ /* Generated from design/tokens.toml by scripts/design/tokens.ts: root, light. */
16
+ --ascribe-review-added: #057256;
17
+ --ascribe-review-added-background: #c7fae5;
18
+ --ascribe-review-changed: #845502;
19
+ --ascribe-review-changed-background: #fee9d0;
20
+ --ascribe-review-removed: #ca3f02;
21
+ --ascribe-review-removed-background: #fef4f1;
22
+ --ascribe-review-moved: #932f8e;
23
+ --ascribe-review-moved-background: #fff2fd;
24
+ --ascribe-review-muted: #676c75;
24
25
  --ascribe-review-surface: #ffffff;
25
- --ascribe-review-flash: #fff6bf;
26
- --ascribe-review-focus: #1f6feb;
26
+ --ascribe-review-flash: #fee9d0;
27
+ --ascribe-review-focus: #5962e8;
27
28
  --ascribe-review-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
28
- /* The review overlay's threads and controls (@ascribed/review/overlay). */
29
- --ascribe-review-text: #1d2330;
30
- --ascribe-review-border: #d3d8e0;
31
- --ascribe-review-thread: #f5f7fb;
29
+ --ascribe-review-text: #22272e;
30
+ --ascribe-review-border: #e3e6ec;
31
+ --ascribe-review-thread: #f7f9fd;
32
32
  --ascribe-review-input: #ffffff;
33
33
  --ascribe-review-accent-text: #ffffff;
34
+ /* End of generated root. */
34
35
  --ascribe-review-blend: multiply;
35
36
  }
36
37
 
37
38
  @media (prefers-color-scheme: dark) {
38
39
  :root:not([data-ascribe-scheme="light"]) {
39
- --ascribe-review-added: #4fc572;
40
- --ascribe-review-added-background: #133520;
41
- --ascribe-review-changed: #dcb13a;
42
- --ascribe-review-changed-background: #3a2f0d;
43
- --ascribe-review-removed: #ff8279;
44
- --ascribe-review-removed-background: #401918;
45
- --ascribe-review-moved: #c59bff;
46
- --ascribe-review-moved-background: #2d2440;
47
- --ascribe-review-muted: #929bab;
48
- --ascribe-review-surface: #1e2026;
49
- --ascribe-review-flash: #3b3514;
50
- --ascribe-review-focus: #5aa2ff;
51
- --ascribe-review-text: #d9dde5;
52
- --ascribe-review-border: #343a45;
53
- --ascribe-review-thread: #272b33;
54
- --ascribe-review-input: #1e2026;
55
- --ascribe-review-accent-text: #0b1220;
40
+ /* Generated from design/tokens.toml by scripts/design/tokens.ts: root, dark. */
41
+ --ascribe-review-added: #22c598;
42
+ --ascribe-review-added-background: #003929;
43
+ --ascribe-review-changed: #e0992e;
44
+ --ascribe-review-changed-background: #432900;
45
+ --ascribe-review-removed: #fe7f57;
46
+ --ascribe-review-removed-background: #511b0a;
47
+ --ascribe-review-moved: #ffc8f9;
48
+ --ascribe-review-moved-background: #461c43;
49
+ --ascribe-review-muted: #a5a9b2;
50
+ --ascribe-review-surface: #0c0f16;
51
+ --ascribe-review-flash: #432900;
52
+ --ascribe-review-focus: #b3c0ff;
53
+ --ascribe-review-text: #f0f3f7;
54
+ --ascribe-review-border: #393d46;
55
+ --ascribe-review-thread: #13171f;
56
+ --ascribe-review-input: #0c0f16;
57
+ --ascribe-review-accent-text: #0c0f16;
58
+ /* End of generated root. */
56
59
  --ascribe-review-blend: screen;
57
60
  }
58
61
  }
59
62
 
60
63
  :root[data-ascribe-scheme="dark"] {
61
- --ascribe-review-added: #4fc572;
62
- --ascribe-review-added-background: #133520;
63
- --ascribe-review-changed: #dcb13a;
64
- --ascribe-review-changed-background: #3a2f0d;
65
- --ascribe-review-removed: #ff8279;
66
- --ascribe-review-removed-background: #401918;
67
- --ascribe-review-moved: #c59bff;
68
- --ascribe-review-moved-background: #2d2440;
69
- --ascribe-review-muted: #929bab;
70
- --ascribe-review-surface: #1e2026;
71
- --ascribe-review-flash: #3b3514;
72
- --ascribe-review-focus: #5aa2ff;
73
- --ascribe-review-text: #d9dde5;
74
- --ascribe-review-border: #343a45;
75
- --ascribe-review-thread: #272b33;
76
- --ascribe-review-input: #1e2026;
77
- --ascribe-review-accent-text: #0b1220;
64
+ /* Generated from design/tokens.toml by scripts/design/tokens.ts: root, dark. */
65
+ --ascribe-review-added: #22c598;
66
+ --ascribe-review-added-background: #003929;
67
+ --ascribe-review-changed: #e0992e;
68
+ --ascribe-review-changed-background: #432900;
69
+ --ascribe-review-removed: #fe7f57;
70
+ --ascribe-review-removed-background: #511b0a;
71
+ --ascribe-review-moved: #ffc8f9;
72
+ --ascribe-review-moved-background: #461c43;
73
+ --ascribe-review-muted: #a5a9b2;
74
+ --ascribe-review-surface: #0c0f16;
75
+ --ascribe-review-flash: #432900;
76
+ --ascribe-review-focus: #b3c0ff;
77
+ --ascribe-review-text: #f0f3f7;
78
+ --ascribe-review-border: #393d46;
79
+ --ascribe-review-thread: #13171f;
80
+ --ascribe-review-input: #0c0f16;
81
+ --ascribe-review-accent-text: #0c0f16;
82
+ /* End of generated root. */
78
83
  --ascribe-review-blend: screen;
79
84
  }
80
85