Skip to content

Commit 0644706

Browse files
docs(theming): add theming reference to tutorialkit.dev (#97)
1 parent 0f5dd45 commit 0644706

25 files changed

+514
-13
lines changed

docs/tutorialkit.dev/astro.config.ts

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ export default defineConfig({
1919
light: './src/assets/brand/tutorialkit-logo-light.svg',
2020
replacesTitle: true,
2121
},
22-
plugins: [starlightLinksValidator()],
22+
plugins: [
23+
starlightLinksValidator({
24+
exclude: ['../../guides/**/*'],
25+
}),
26+
],
2327
sidebar: [
2428
{
2529
label: 'Guides',
@@ -51,6 +55,15 @@ export default defineConfig({
5155
},
5256
],
5357
},
58+
{
59+
label: 'Reference',
60+
items: [
61+
{
62+
label: 'Theming',
63+
link: '/reference/theming/',
64+
},
65+
],
66+
},
5467
],
5568
tableOfContents: {
5669
maxHeadingLevel: 5,

docs/tutorialkit.dev/src/content/docs/reference/example.md

Lines changed: 0 additions & 11 deletions
This file was deleted.
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading

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

Lines changed: 492 additions & 0 deletions
Large diffs are not rendered by default.

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)