Skip to content

Commit

Permalink
chore: Move docs out of GitBook
Browse files Browse the repository at this point in the history
  • Loading branch information
mskelton committed Jun 5, 2020
2 parents 4bc9423 + 9b4a07d commit adb98e5
Show file tree
Hide file tree
Showing 25 changed files with 44 additions and 155 deletions.
1 change: 0 additions & 1 deletion .gitbook.yml

This file was deleted.

35 changes: 35 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Contributing

## Installation

Run the following commands to clone the repository for this theme and install all necessary dependencies.

```bash
git clone git@github.com:one-dark/vscode-one-dark-theme.git
cd vscode-one-dark-theme
npm install
```

## Testing the theme

To run the theme, open the project in VS Code and run the `Debug: Start Debugging` command. When you start debugging, a new VS Code test instance \(heretofore referred to as the "test instance"\) will be launched with all your extensions disabled and the One Dark theme enabled and selected. The TypeScript compiler will also start in watch mode and compile any changes you make to the theme. After making your changes, run the `Debug: Restart` command to restart the test instance with the changes you made.

### Live reload using nodemon

This project is configured to allow live theme reloading using `nodemon`. This will update the theme colors in the test instance to allow you to immediately see how your changes will look without having to restart the test instance. To utilize this feature, run the following command before you start debugging.

```bash
npm run theme:watch
```

## Color Guidelines

To increase theme consistency, the following colors should be used for all syntax highlighting colors. Editor colors should use this color palette when possible, but the editor colors are not required to strictly follow this color palette.

| Name | Value | Preview | Name | Value | Preview |
| :--------- | :------- | :-------------------------- | :---------- | :------- | :--------------------------- |
| **chalky** | \#e5c07b | ![](docs/colors/chalky.jpg) | **malibu** | \#61afef | ![](docs/colors/malibu.jpg) |
| **coral** | \#e06c75 | ![](docs/colors/coral.jpg) | **sage** | \#98c379 | ![](docs/colors/sage.jpg) |
| **cyan** | \#56b6c2 | ![](docs/colors/cyan.jpg) | **stone** | \#5c6370 | ![](docs/colors/stone.jpg) |
| **error** | \#f44747 | ![](docs/colors/error.jpg) | **violet** | \#c678dd | ![](docs/colors/violet.jpg) |
| **ivory** | \#abb2bf | ![](docs/colors/ivory.jpg) | **whiskey** | \#d19a66 | ![](docs/colors/whiskey.jpg) |
55 changes: 9 additions & 46 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,66 +10,29 @@
![Code example](static/screenshots/code.png)

## Basic Configuration 🔧
## Configuration

This theme comes with several configuration settings to allow you to customize the theme to your preference. We currently support the following settings:

- **Vivid** - Uses the [One Dark Vivid](https://atom.io/themes/one-dark-vivid-syntax) color palette instead of the default color palette.
- **Italic** - When enabled, uses italic font for keywords. Note that some scopes \(i.e. markdown block quotes\) are styled with italic font even when this setting is disabled.
- **Bold** - When enabled, uses bold font for namespace, class, and function names. Note that some scopes \(i.e. markdown headers\) are styled with bold font even when this setting is disabled.
- **Italic** - When enabled, uses italic font for keywords. Note that some scopes \(e.g. markdown block quotes\) are styled with italic font even when this setting is disabled.
- **Bold** - When enabled, uses bold font for namespace, class, and function names. Note that some scopes \(e.g. markdown headers\) are styled with bold font even when this setting is disabled.

To access these configuration settings, open the VS Code settings page and search for "One Dark".

![Theme settings](static/screenshots/settings.png)

This theme ships with the italic setting turned on by default and the other settings turned off by default, but you can adjust the settings to any combination you like. After updating the settings, you will be prompted to reload the window to apply the configuration changes.
This theme ships with the italic setting turned on by default and the other settings turned off by default, but you can adjust the settings to any combination you like.

![Theme settings reload prompt](static/screenshots/reload-prompt.png)
## Vivid Variant

## Advanced Configuration 🧰
In addition to the default color pallette, this theme ships with a vivid variant which uses the [One Dark Vivid](https://atom.io/themes/one-dark-vivid-syntax) pallette. This can be enabled by selecting "One Dark Vivid" from the Color Theme dropdown in your VS Code settings.

VS Code allows users to fully customize themes to their liking. If you wish to adjust the editor colors, use the `workbench.colorCustomizations` setting in your `settings.json` file. An example of this is shown below.
![Vivid setting](static/screenshots/vivid-setting.png)

```json
"workbench.colorCustomizations": {
"tab.activeBackground": "#282c34",
"activityBar.background": "#282c34",
"sideBar.background": "#282c34"
}
```

To customize the syntax highlighting, use the `editor.tokenColorCustomizations` setting. An example of this is shown below.

```json
"editor.tokenColorCustomizations": {
"[One Dark]": {
"textMateRules": [
{
"scope": ["source.python"],
"settings": {
"foreground": "#e06c75"
}
}
]
}
}
```

For more information, see the official [theme color reference](https://code.visualstudio.com/docs/getstarted/theme-color-reference) or [color theme documentation](https://code.visualstudio.com/docs/getstarted/themes).

## Further Documentation 📖

Check out the [docs](https://one-dark.gitbook.io/vscode) for manual installation instructions, additional screenshots, and contributing guidelines.

- [Installation](https://one-dark.gitbook.io/vscode/installation)
- [Screenshots](https://one-dark.gitbook.io/vscode/screenshots)
- [Contributing](https://one-dark.gitbook.io/vscode/contributing)

## Thanks 🙏
## Thanks

- Thanks to [Binaryify](https://github.com/Binaryify) for his work on the theme this project was originally based on.
- Thanks to [VS Code Nebula Theme](https://github.com/eating-coleslaw/vscode-nebula-theme) for being a great example of how to build a VS Code theme using configuration settings.
- Thanks to GitBook for hosting the docs!
- Thanks to [VS Code Nebula Theme](https://github.com/eating-coleslaw/vscode-nebula-theme) for the inspiration for creating a configurable color theme.

## Contributors ✨

Expand Down
Binary file removed docs/.gitbook/assets/2019-10-26_11-41-02 (1).png
Binary file not shown.
Binary file removed docs/.gitbook/assets/2019-10-26_11-41-02.png
Binary file not shown.
Binary file removed docs/.gitbook/assets/2019-10-26_12-19-19.png
Binary file not shown.
Binary file removed docs/.gitbook/assets/2019-10-26_16-03-34.png
Binary file not shown.
20 changes: 0 additions & 20 deletions docs/README.md

This file was deleted.

6 changes: 0 additions & 6 deletions docs/SUMMARY.md

This file was deleted.

File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
56 changes: 0 additions & 56 deletions docs/contributing.md

This file was deleted.

23 changes: 0 additions & 23 deletions docs/installation.md

This file was deleted.

3 changes: 0 additions & 3 deletions docs/screenshots.md

This file was deleted.

Binary file removed static/screenshots/reload-prompt.png
Binary file not shown.
Binary file modified static/screenshots/settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/screenshots/vivid-setting.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit adb98e5

Please sign in to comment.