Skip to content

docs(theming): add theming reference to tutorialkit.dev #97

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 26 commits into from
Jun 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
d6c0a59
docs(theming): add page to describe how to customize tutorialkit
SamVerschueren Jun 25, 2024
f8ad1fa
chore: fix links
SamVerschueren Jun 25, 2024
debb39b
chore: ignore link validation for guides
SamVerschueren Jun 25, 2024
ee022bd
Merge branch 'main' into docs/theming
SamVerschueren Jun 25, 2024
ded0915
chore: small improvements
SamVerschueren Jun 25, 2024
028e2ac
chore: move to theming reference
SamVerschueren Jun 25, 2024
095a364
Merge branch 'main' into docs/theming
SamVerschueren Jun 25, 2024
8b4b23b
Merge branch 'main' into docs/theming
d3lm Jun 26, 2024
93d35b2
fix: improve page description.
SamVerschueren Jun 26, 2024
e7b417b
chore: pr feedback
SamVerschueren Jun 26, 2024
47b818e
chore: fix some of the descriptions.
SamVerschueren Jun 26, 2024
7c10df9
fix: typo
SamVerschueren Jun 26, 2024
b628bca
fix: update images to higher resolution
SamVerschueren Jun 26, 2024
b7e46a8
chore: add images for the file tree file and folder
SamVerschueren Jun 26, 2024
7fcac03
chore: fix theming title
SamVerschueren Jun 26, 2024
47e4fc6
chore: try astro image component
SamVerschueren Jun 26, 2024
0fcec70
chore: increase size of image
SamVerschueren Jun 26, 2024
398e124
chore: update images to higher res
SamVerschueren Jun 26, 2024
9397e9a
chore: divide width by 3
SamVerschueren Jun 26, 2024
5feb62d
fixup: update images
d3lm Jun 26, 2024
2a93edb
Merge branch 'main' into docs/theming
Nemikolh Jun 26, 2024
bc068b7
chore: document how to theme the editor
SamVerschueren Jun 27, 2024
93442e3
docs: add editor images
SamVerschueren Jun 27, 2024
80b862f
doc: update screenshot
SamVerschueren Jun 27, 2024
eb24b17
Merge branch 'main' into docs/theming
Nemikolh Jun 27, 2024
8e75d54
chore: update image
SamVerschueren Jun 27, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion docs/tutorialkit.dev/astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ export default defineConfig({
light: './src/assets/brand/tutorialkit-logo-light.svg',
replacesTitle: true,
},
plugins: [starlightLinksValidator()],
plugins: [
starlightLinksValidator({
exclude: ['../../guides/**/*'],
}),
],
sidebar: [
{
label: 'Guides',
Expand Down Expand Up @@ -51,6 +55,15 @@ export default defineConfig({
},
],
},
{
label: 'Reference',
items: [
{
label: 'Theming',
link: '/reference/theming/',
},
],
},
],
tableOfContents: {
maxHeadingLevel: 5,
Expand Down
11 changes: 0 additions & 11 deletions docs/tutorialkit.dev/src/content/docs/reference/example.md

This file was deleted.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
492 changes: 492 additions & 0 deletions docs/tutorialkit.dev/src/content/docs/reference/theming.mdx

Large diffs are not rendered by default.

9 changes: 8 additions & 1 deletion docs/tutorialkit.dev/src/styles/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ body {
font-family: 'Inter', sans-serif;
box-sizing: border-box;
overscroll-behavior: none;

&::before {
position: absolute;
bottom: 0;
Expand All @@ -21,18 +22,22 @@ body {
pointer-events: none;
z-index: 1;
}

&:not(:has(#starlight__sidebar)) {
&::before {
content: '';
}

[data-theme='dark'] & {
background-image: radial-gradient(100% 100% at 50% 0%, transparent 60%, rgba(0, 0, 0, 0.4) 100%);
&::before {
background-image: linear-gradient(transparent 60%, rgba(0, 0, 0, 0.8) 100%);
}
}

[data-theme='light'] & {
background-image: radial-gradient(100% 100% at 50% 0%, #fff 60%, #eff0f3 100%);

&::before {
background-image: linear-gradient(transparent 60%, rgba(255, 255, 255, 0.8) 100%);
}
Expand All @@ -50,7 +55,7 @@ header.header {
border: none;
}

// Don't override <a> text color for home page buttons
// don't override <a> text color for home page buttons
.sl-markdown-content .simple-page-hero__links a:not(:where(.not-content *)) {
color: unset;
}
Expand Down Expand Up @@ -166,9 +171,11 @@ site-search button[data-open-modal] {
box-shadow: 0 4px 6px -2px hsl(0, 0%, 0%, 0.1);
transition: var(--transition-fast);
transition-property: color, border-color;

& > span {
font-size: 0.84rem;
}

span:not(.link-title) {
font-size: 0;
}
Expand Down