Skip to content

Commit 5245e19

Browse files
feat(registry): add code snippet blocks with VS Code workbench (heygen-com#1113)
* feat(registry): add VS Code theme visualizer example Full VS Code workbench recreation with per-character typing animation across 12 built-in themes. Includes activity bar, sidebar, tabs, editor with line-by-line cursor tracking, terminal panel, and status bar — all driven by official VS Code theme JSON files. Themes: Dark Modern, Dark 2026, Dark+, Light Modern, Light 2026, Light+, Visual Studio Dark, Visual Studio Light, High Contrast, High Contrast Light, Solarized Light, Monokai. Includes build scripts to regenerate compositions from theme JSON. * feat(registry): add 12 code snippet blocks for hyperframes add code Individual blocks for each VS Code built-in theme, all tagged "code" so `npx hyperframes add code` installs the full set. Each block is a self-contained VS Code workbench with per-character typing animation, activity bar, sidebar, tabs, terminal, and status bar driven by official theme JSON data. * docs: add mdx pages for code snippet blocks and example - 12 block doc pages under catalog/blocks/code-snippet-* - "Code Snippets" nav group in docs.json - vscode-theme-visualizer entry in examples.mdx * docs: revert examples.mdx — code snippets belong in catalog only * docs: drop redundant 'Code Snippet' prefix from sidebar titles * docs: add video previews to code snippet catalog pages * style: format HTML, CSS, and MJS files for CI * fix: address review feedback — build pipeline, LICENSE, dead code, nav order 1. Build script now regenerates both example compositions AND published blocks in registry/blocks/code-snippet-*/, keeping them in sync. 2. Add MIT LICENSE for vendored VS Code theme JSONs (microsoft/vscode). 3. Remove dead `chars` variable from runtime, build script, all blocks, and all example compositions. 4. Alphabetize Code Snippets nav group in docs.json to match catalog convention. * style: format all build-generated files (render-entries, CSS, index)
1 parent 55c4a11 commit 5245e19

83 files changed

Lines changed: 22171 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
---
2+
title: "Dark 2026"
3+
description: "The newest VS Code dark theme with refined token scopes and updated palette."
4+
---
5+
6+
# Dark 2026
7+
8+
VS Code workbench with per-character typing animation in the Dark 2026 theme. Full editor chrome with activity bar, sidebar, tabs, terminal, and status bar.
9+
10+
`code` `developer` `showcase` `vscode`
11+
12+
<video className="w-full aspect-video rounded-xl object-cover bg-zinc-100 dark:bg-zinc-800" src="https://static.heygen.ai/hyperframes-oss/docs/images/catalog/blocks/code-snippet-dark-2026.mp4" poster="https://static.heygen.ai/hyperframes-oss/docs/images/catalog/blocks/code-snippet-dark-2026.png" autoPlay muted loop playsInline />
13+
14+
## Install
15+
16+
<CodeGroup>
17+
18+
```bash Terminal
19+
npx hyperframes add code-snippet-dark-2026
20+
```
21+
22+
</CodeGroup>
23+
24+
Install all code snippet themes at once:
25+
26+
```bash Terminal
27+
npx hyperframes add code
28+
```
29+
30+
## Details
31+
32+
| Property | Value |
33+
| --- | --- |
34+
| Type | Block |
35+
| Dimensions | 1920×1080 |
36+
| Duration | 11s |
37+
38+
## Files
39+
40+
| File | Target | Type |
41+
| --- | --- | --- |
42+
| `code-snippet-dark-2026.html` | `compositions/code-snippet-dark-2026.html` | hyperframes:composition |
43+
| `background.jpeg` | `assets/background.jpeg` | hyperframes:asset |
44+
45+
## Usage
46+
47+
After installing, add the block to your host composition:
48+
49+
```html
50+
<div
51+
data-composition-id="code-snippet-dark-2026"
52+
data-composition-src="compositions/code-snippet-dark-2026.html"
53+
data-start="0"
54+
data-duration="11"
55+
data-track-index="1"
56+
data-width="1920"
57+
data-height="1080"
58+
></div>
59+
```
60+
61+
## Features
62+
63+
- Full VS Code workbench recreation — activity bar, sidebar, explorer tree, editor tabs, breadcrumbs, terminal panel, status bar
64+
- Per-character typing animation with cursor tracking and active line highlight
65+
- Colors sourced from official `microsoft/vscode` built-in theme JSON
66+
- 3D perspective tilt at the end of the typing sequence
67+
- Terminal panel with mock test output
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
---
2+
title: "Dark Modern"
3+
description: "The default dark theme — clean and contemporary with comfortable contrast."
4+
---
5+
6+
# Dark Modern
7+
8+
VS Code workbench with per-character typing animation in the Dark Modern theme. Full editor chrome with activity bar, sidebar, tabs, terminal, and status bar.
9+
10+
`code` `developer` `showcase` `vscode`
11+
12+
<video className="w-full aspect-video rounded-xl object-cover bg-zinc-100 dark:bg-zinc-800" src="https://static.heygen.ai/hyperframes-oss/docs/images/catalog/blocks/code-snippet-dark-modern.mp4" poster="https://static.heygen.ai/hyperframes-oss/docs/images/catalog/blocks/code-snippet-dark-modern.png" autoPlay muted loop playsInline />
13+
14+
## Install
15+
16+
<CodeGroup>
17+
18+
```bash Terminal
19+
npx hyperframes add code-snippet-dark-modern
20+
```
21+
22+
</CodeGroup>
23+
24+
Install all code snippet themes at once:
25+
26+
```bash Terminal
27+
npx hyperframes add code
28+
```
29+
30+
## Details
31+
32+
| Property | Value |
33+
| --- | --- |
34+
| Type | Block |
35+
| Dimensions | 1920×1080 |
36+
| Duration | 11s |
37+
38+
## Files
39+
40+
| File | Target | Type |
41+
| --- | --- | --- |
42+
| `code-snippet-dark-modern.html` | `compositions/code-snippet-dark-modern.html` | hyperframes:composition |
43+
| `background.jpeg` | `assets/background.jpeg` | hyperframes:asset |
44+
45+
## Usage
46+
47+
After installing, add the block to your host composition:
48+
49+
```html
50+
<div
51+
data-composition-id="code-snippet-dark-modern"
52+
data-composition-src="compositions/code-snippet-dark-modern.html"
53+
data-start="0"
54+
data-duration="11"
55+
data-track-index="1"
56+
data-width="1920"
57+
data-height="1080"
58+
></div>
59+
```
60+
61+
## Features
62+
63+
- Full VS Code workbench recreation — activity bar, sidebar, explorer tree, editor tabs, breadcrumbs, terminal panel, status bar
64+
- Per-character typing animation with cursor tracking and active line highlight
65+
- Colors sourced from official `microsoft/vscode` built-in theme JSON
66+
- 3D perspective tilt at the end of the typing sequence
67+
- Terminal panel with mock test output
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
---
2+
title: "Dark+"
3+
description: "Classic dark theme with enhanced syntax highlighting for popular languages."
4+
---
5+
6+
# Dark+
7+
8+
VS Code workbench with per-character typing animation in the Dark+ theme. Full editor chrome with activity bar, sidebar, tabs, terminal, and status bar.
9+
10+
`code` `developer` `showcase` `vscode`
11+
12+
<video className="w-full aspect-video rounded-xl object-cover bg-zinc-100 dark:bg-zinc-800" src="https://static.heygen.ai/hyperframes-oss/docs/images/catalog/blocks/code-snippet-dark-plus.mp4" poster="https://static.heygen.ai/hyperframes-oss/docs/images/catalog/blocks/code-snippet-dark-plus.png" autoPlay muted loop playsInline />
13+
14+
## Install
15+
16+
<CodeGroup>
17+
18+
```bash Terminal
19+
npx hyperframes add code-snippet-dark-plus
20+
```
21+
22+
</CodeGroup>
23+
24+
Install all code snippet themes at once:
25+
26+
```bash Terminal
27+
npx hyperframes add code
28+
```
29+
30+
## Details
31+
32+
| Property | Value |
33+
| --- | --- |
34+
| Type | Block |
35+
| Dimensions | 1920×1080 |
36+
| Duration | 11s |
37+
38+
## Files
39+
40+
| File | Target | Type |
41+
| --- | --- | --- |
42+
| `code-snippet-dark-plus.html` | `compositions/code-snippet-dark-plus.html` | hyperframes:composition |
43+
| `background.jpeg` | `assets/background.jpeg` | hyperframes:asset |
44+
45+
## Usage
46+
47+
After installing, add the block to your host composition:
48+
49+
```html
50+
<div
51+
data-composition-id="code-snippet-dark-plus"
52+
data-composition-src="compositions/code-snippet-dark-plus.html"
53+
data-start="0"
54+
data-duration="11"
55+
data-track-index="1"
56+
data-width="1920"
57+
data-height="1080"
58+
></div>
59+
```
60+
61+
## Features
62+
63+
- Full VS Code workbench recreation — activity bar, sidebar, explorer tree, editor tabs, breadcrumbs, terminal panel, status bar
64+
- Per-character typing animation with cursor tracking and active line highlight
65+
- Colors sourced from official `microsoft/vscode` built-in theme JSON
66+
- 3D perspective tilt at the end of the typing sequence
67+
- Terminal panel with mock test output
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
---
2+
title: "High Contrast Light"
3+
description: "Maximum contrast light theme for accessibility."
4+
---
5+
6+
# High Contrast Light
7+
8+
VS Code workbench with per-character typing animation in the High Contrast Light theme. Full editor chrome with activity bar, sidebar, tabs, terminal, and status bar.
9+
10+
`code` `developer` `showcase` `vscode`
11+
12+
<video className="w-full aspect-video rounded-xl object-cover bg-zinc-100 dark:bg-zinc-800" src="https://static.heygen.ai/hyperframes-oss/docs/images/catalog/blocks/code-snippet-high-contrast-light.mp4" poster="https://static.heygen.ai/hyperframes-oss/docs/images/catalog/blocks/code-snippet-high-contrast-light.png" autoPlay muted loop playsInline />
13+
14+
## Install
15+
16+
<CodeGroup>
17+
18+
```bash Terminal
19+
npx hyperframes add code-snippet-high-contrast-light
20+
```
21+
22+
</CodeGroup>
23+
24+
Install all code snippet themes at once:
25+
26+
```bash Terminal
27+
npx hyperframes add code
28+
```
29+
30+
## Details
31+
32+
| Property | Value |
33+
| --- | --- |
34+
| Type | Block |
35+
| Dimensions | 1920×1080 |
36+
| Duration | 11s |
37+
38+
## Files
39+
40+
| File | Target | Type |
41+
| --- | --- | --- |
42+
| `code-snippet-high-contrast-light.html` | `compositions/code-snippet-high-contrast-light.html` | hyperframes:composition |
43+
| `background.jpeg` | `assets/background.jpeg` | hyperframes:asset |
44+
45+
## Usage
46+
47+
After installing, add the block to your host composition:
48+
49+
```html
50+
<div
51+
data-composition-id="code-snippet-high-contrast-light"
52+
data-composition-src="compositions/code-snippet-high-contrast-light.html"
53+
data-start="0"
54+
data-duration="11"
55+
data-track-index="1"
56+
data-width="1920"
57+
data-height="1080"
58+
></div>
59+
```
60+
61+
## Features
62+
63+
- Full VS Code workbench recreation — activity bar, sidebar, explorer tree, editor tabs, breadcrumbs, terminal panel, status bar
64+
- Per-character typing animation with cursor tracking and active line highlight
65+
- Colors sourced from official `microsoft/vscode` built-in theme JSON
66+
- 3D perspective tilt at the end of the typing sequence
67+
- Terminal panel with mock test output
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
---
2+
title: "High Contrast"
3+
description: "Maximum contrast dark theme for accessibility."
4+
---
5+
6+
# High Contrast
7+
8+
VS Code workbench with per-character typing animation in the High Contrast theme. Full editor chrome with activity bar, sidebar, tabs, terminal, and status bar.
9+
10+
`code` `developer` `showcase` `vscode`
11+
12+
<video className="w-full aspect-video rounded-xl object-cover bg-zinc-100 dark:bg-zinc-800" src="https://static.heygen.ai/hyperframes-oss/docs/images/catalog/blocks/code-snippet-high-contrast.mp4" poster="https://static.heygen.ai/hyperframes-oss/docs/images/catalog/blocks/code-snippet-high-contrast.png" autoPlay muted loop playsInline />
13+
14+
## Install
15+
16+
<CodeGroup>
17+
18+
```bash Terminal
19+
npx hyperframes add code-snippet-high-contrast
20+
```
21+
22+
</CodeGroup>
23+
24+
Install all code snippet themes at once:
25+
26+
```bash Terminal
27+
npx hyperframes add code
28+
```
29+
30+
## Details
31+
32+
| Property | Value |
33+
| --- | --- |
34+
| Type | Block |
35+
| Dimensions | 1920×1080 |
36+
| Duration | 11s |
37+
38+
## Files
39+
40+
| File | Target | Type |
41+
| --- | --- | --- |
42+
| `code-snippet-high-contrast.html` | `compositions/code-snippet-high-contrast.html` | hyperframes:composition |
43+
| `background.jpeg` | `assets/background.jpeg` | hyperframes:asset |
44+
45+
## Usage
46+
47+
After installing, add the block to your host composition:
48+
49+
```html
50+
<div
51+
data-composition-id="code-snippet-high-contrast"
52+
data-composition-src="compositions/code-snippet-high-contrast.html"
53+
data-start="0"
54+
data-duration="11"
55+
data-track-index="1"
56+
data-width="1920"
57+
data-height="1080"
58+
></div>
59+
```
60+
61+
## Features
62+
63+
- Full VS Code workbench recreation — activity bar, sidebar, explorer tree, editor tabs, breadcrumbs, terminal panel, status bar
64+
- Per-character typing animation with cursor tracking and active line highlight
65+
- Colors sourced from official `microsoft/vscode` built-in theme JSON
66+
- 3D perspective tilt at the end of the typing sequence
67+
- Terminal panel with mock test output

0 commit comments

Comments
 (0)