Skip to content

Commit 5feb62d

Browse files
committed
fixup: update images
1 parent 9397e9a commit 5feb62d

File tree

8 files changed

+14
-7
lines changed

8 files changed

+14
-7
lines changed
Loading
Loading
Loading
Loading
Loading
Loading

docs/tutorialkit.dev/src/content/docs/reference/theming.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ These tokens can be used to style the colors of the tutorial on a high level. Fo
4747

4848
The content refers to the main part of the lesson that contains the text and images.
4949

50-
<Image src={themingContent} alt="Content" width="686" />
50+
![Content](./images/theming-content.png)
5151

5252
| Token | Description |
5353
| ---------------------------------------- | ----------------------------------------- |
@@ -60,7 +60,7 @@ Callouts are visual elements used to draw attention to specific information or p
6060

6161
For instanceof, here's an example of an info callout.
6262

63-
<Image src={themingCallout} alt="Callout" width="621" />
63+
![Content](./images/theming-callout.png)
6464

6565
#### Tip
6666

@@ -197,7 +197,7 @@ Panels are containers which can be resized and can hold different kind of compon
197197

198198
The panel header is the top part of the panel that contains the title, an icon, and optionally an action button.
199199

200-
<Image src={themingPanelHeader} alt="Panel Header" width="342" />
200+
<Image src={themingPanelHeader} alt="Panel Header" width="342" densities={[2]} />
201201

202202
| Token | Description |
203203
| -------------------------------------------- | ------------------------------------ |
@@ -243,7 +243,7 @@ The button in the header is shown at the right side of the header of the panel.
243243

244244
The file tree shows the relevant files of the lesson next to the text editor.
245245

246-
<Image src={themingFiletree} alt="File Tree" width="283" />
246+
<Image src={themingFiletree} alt="File Tree" width="283" densities={[2]} />
247247

248248
| Token | Description |
249249
| --------------------------------------------- | ---------------------------------------------------------------------- |
@@ -258,7 +258,7 @@ The file tree shows the relevant files of the lesson next to the text editor.
258258

259259
You can customize the appearance of the files in the file tree using the following tokens.
260260

261-
<Image src={themingFiletreeFile} alt="File Tree File" width="283" />
261+
<Image src={themingFiletreeFile} alt="File Tree File" width="342" densities={[2]} />
262262

263263

264264
| Token | Description |
@@ -277,7 +277,7 @@ You can customize the appearance of the files in the file tree using the followi
277277

278278
You can customize the appearance of the folders in the file tree using the following tokens.
279279

280-
<Image src={themingFileTreeFolder} alt="File Tree Folder" width="283" />
280+
<Image src={themingFileTreeFolder} alt="File Tree Folder" width="342" densities={[2]} />
281281

282282
| Token | Description |
283283
| ---------------------------------------------------- | ------------------------------------------------------ |

docs/tutorialkit.dev/src/styles/custom.scss

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ body {
1212
font-family: 'Inter', sans-serif;
1313
box-sizing: border-box;
1414
overscroll-behavior: none;
15+
1516
&::before {
1617
position: absolute;
1718
bottom: 0;
@@ -21,18 +22,22 @@ body {
2122
pointer-events: none;
2223
z-index: 1;
2324
}
25+
2426
&:not(:has(#starlight__sidebar)) {
2527
&::before {
2628
content: '';
2729
}
30+
2831
[data-theme='dark'] & {
2932
background-image: radial-gradient(100% 100% at 50% 0%, transparent 60%, rgba(0, 0, 0, 0.4) 100%);
3033
&::before {
3134
background-image: linear-gradient(transparent 60%, rgba(0, 0, 0, 0.8) 100%);
3235
}
3336
}
37+
3438
[data-theme='light'] & {
3539
background-image: radial-gradient(100% 100% at 50% 0%, #fff 60%, #eff0f3 100%);
40+
3641
&::before {
3742
background-image: linear-gradient(transparent 60%, rgba(255, 255, 255, 0.8) 100%);
3843
}
@@ -50,7 +55,7 @@ header.header {
5055
border: none;
5156
}
5257

53-
// Don't override <a> text color for home page buttons
58+
// don't override <a> text color for home page buttons
5459
.sl-markdown-content .simple-page-hero__links a:not(:where(.not-content *)) {
5560
color: unset;
5661
}
@@ -166,9 +171,11 @@ site-search button[data-open-modal] {
166171
box-shadow: 0 4px 6px -2px hsl(0, 0%, 0%, 0.1);
167172
transition: var(--transition-fast);
168173
transition-property: color, border-color;
174+
169175
& > span {
170176
font-size: 0.84rem;
171177
}
178+
172179
span:not(.link-title) {
173180
font-size: 0;
174181
}

0 commit comments

Comments
 (0)