Skip to content

Commit 891570c

Browse files
committed
add theme page back and redirects
1 parent 98e8e51 commit 891570c

File tree

3 files changed

+84
-1
lines changed

3 files changed

+84
-1
lines changed

packages/projects-docs/next.config.js

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,59 @@ module.exports = withNextra({
583583
destination: "/learn/devboxes/overview",
584584
permanent: false,
585585
},
586+
/*
587+
Redirects for switch to vs code editor
588+
*/
589+
{
590+
source: "/learn/editors/web/overview",
591+
destination: "/learn/editors/web-interface",
592+
permanent: false,
593+
},
594+
{
595+
source: "/learn/editors/ios/overview",
596+
destination: "/learn/editors/overview",
597+
permanent: false,
598+
},
599+
{
600+
source: "/learn/editors/vscode/overview",
601+
destination: "/learn/editors/overview",
602+
permanent: false,
603+
},
604+
{
605+
source: "/learn/editors/ios/setting-up-ios",
606+
destination: "/learn/editors/overview",
607+
permanent: false,
608+
},
609+
{
610+
source: "/learn/editors/ios/shortcuts",
611+
destination: "/learn/editors/overview",
612+
permanent: false,
613+
},
614+
{
615+
source: "/learn/editors/vscode/overview",
616+
destination: "/learn/editors/overview",
617+
permanent: false,
618+
},
619+
{
620+
source: "/learn/editors/web/overview",
621+
destination: "/learn/editors/web-interface",
622+
permanent: false,
623+
},
624+
{
625+
source: "/learn/editors/web/commandpalette",
626+
destination: "/learn/editors/web-interface",
627+
permanent: false,
628+
},
629+
{
630+
source: "/learn/editors/web/shortcuts",
631+
destination: "/learn/editors/shortcuts",
632+
permanent: false,
633+
},
634+
{
635+
source: "/learn/editors/ios/setting-up-ios",
636+
destination: "/learn/editors/overview",
637+
permanent: false,
638+
},
586639
];
587640
},
588641
});

packages/projects-docs/pages/learn/editors/_meta.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
"desktop-interface": "Desktop interface",
55
"desktop-setup": "Desktop setup",
66
"shortcuts": "Keybindings",
7-
"settings": "Settings"
7+
"settings": "Settings",
8+
"themes": "Themes"
89
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
title: Themes
3+
description: Choose a different color scheme for your editor by selecting one of the preset themes.
4+
---
5+
6+
import { Callout } from 'nextra-theme-docs'
7+
8+
# Themes
9+
10+
The cloud editor provides several preset themes you can choose from to change the color scheme of your editor.
11+
12+
![CodeSandbox Themes](../images/themes.jpg)
13+
14+
## Overview
15+
16+
CodeSandbox provides some popular themes created by the dev community that you can apply to the cloud editor. Currently, we only offer a few preset themes, with dark and light options:
17+
18+
- CodeSandbox (dark / light)
19+
- [GitHub's Default (dark / light)](https://marketplace.visualstudio.com/items?itemName=GitHub.github-vscode-theme)
20+
- [Vesper (dark)](https://marketplace.visualstudio.com/items?itemName=raunofreiberg.vesper)
21+
- [Dracula (dark)](https://marketplace.visualstudio.com/items?itemName=dracula-theme.theme-dracula)
22+
- [poimandres (dark)](https://marketplace.visualstudio.com/items?itemName=pmndrs.pmndrs)
23+
24+
## Changing the theme
25+
26+
There are two ways to change themes:
27+
28+
- Open the Project settings and select the **Themes** tab.
29+
- Access the command palette in the editor using <kbd>⌘</kbd> + <kbd>K</kbd> and search by `themes`.

0 commit comments

Comments
 (0)