-
Notifications
You must be signed in to change notification settings - Fork 536
Add a dark version of vanilla Github theme defalut in Typora #461
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
Open
bailitaotao
wants to merge
1
commit into
typora:gh-pages
Choose a base branch
from
bailitaotao:bailitaotao-github-dark-vanilla-1
base: gh-pages
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,110 @@ | ||
| --- | ||
| layout: theme | ||
| title: GitHub Dark Vanilla | ||
| category: fork | ||
| homepage: https://github.com/bailitaotao/typora-github-dark-vanilla-theme | ||
| download: https://github.com/bailitaotao/typora-github-dark-vanilla-theme/blob/main/github-dark-vanilla.css | ||
| author: tim | ||
| thumbnail: https://github.com/bailitaotao/typora-github-dark-vanilla-theme/assets/thumbnail.png | ||
| typora-root-url: ../../ | ||
| typora-copy-images-to: ../../media/theme/github-dark-vanilla | ||
| --- | ||
|
|
||
| # Github Dark Vanilla | ||
|  | ||
|
|
||
| ## Description | ||
|
|
||
| Add a dark version of vanilla GitHub theme default in Typora. | ||
|
|
||
| This theme only changes colors. | ||
| No structure, typography layout, spacing, or component behavior is changed. | ||
|
|
||
| ## Compatibility | ||
|
|
||
| Designed and tested on macOS. | ||
| Expected to work on Windows/Linux with Typora theme engine compatibility. | ||
|
|
||
| ## Install | ||
|
|
||
| 1. Open Typora Preferences. | ||
| 2. Go to Appearance. | ||
| 3. Click Open Theme Folder. | ||
| 4. Put github-dark-vanilla.css into the theme folder. | ||
| 5. Restart Typora and select github-dark-vanilla. | ||
|
|
||
| ## Preview | ||
|
|
||
|  | ||
|
|
||
|  | ||
|
|
||
|  | ||
|
|
||
|
|
||
| ## What Changed | ||
|
|
||
| ### 1. Global Variables and App Surface | ||
|
|
||
| - `--side-bar-bg-color`: `#fafafa` -> `#1b1e21` | ||
| - `--control-text-color`: `#777` -> `#8b949e` | ||
| - Added `--active-file-bg-color: #2a2d2f` | ||
| - Added `--item-hover-bg-color: #282c2e` | ||
| - Added `--select-text-bg-color: #3f638b` | ||
| - Added root `background-color: #1f2325` | ||
|
|
||
| ### 2. Main Typography and Headings | ||
|
|
||
| - Body text: `rgb(51, 51, 51)` -> `rgb(201, 209, 217)` | ||
| - Link color: `#4183C4` -> `#58a6ff` | ||
| - `h1/h2` bottom border: `#eee` -> `#343739` | ||
| - `h6` text color: `#777` -> `#8b949e` | ||
|
|
||
| ### 3. Dividers, Quotes, and Tables | ||
|
|
||
| - `hr` background: `#e7e7e7` -> `#2d3133` | ||
| - Blockquote border: `#dfe2e5` -> `#343739` | ||
| - Blockquote text: `#777777` -> `#8b949e` | ||
| - Table borders: `#dfe2e5` -> `#343739` | ||
| - Table striped/header background: `#f8f8f8` -> `#282c2e` | ||
|
|
||
| ### 4. Inline Code and Code Blocks | ||
|
|
||
| - Code tooltip shadow: `rgba(0,28,36,.3)` -> `rgba(1, 4, 9, .6)` | ||
| - Code tooltip top border: `#eef2f2` -> `#343739` | ||
| - `code/tt/.md-fences` border: `#e7eaed` -> `#343739` | ||
| - `code/tt/.md-fences` background: `#f8f8f8` / `#f3f4f4` -> `#282c2e` | ||
| - Meta block background: `#f7f7f7` -> `#282c2e` | ||
| - Meta block text: `#777777` -> `#8b949e` | ||
| - Math inline background: `#fafafa` -> `#282c2e` | ||
|
|
||
| ### 5. Sidebar and Quick Open UI | ||
|
|
||
| - Quick open border: `#ddd` -> `#343739` | ||
| - Quick open panel background: `#f8f8f8` -> `#282c2e` | ||
| - Quick open item background: `#FAFAFA` -> `#1f2325` | ||
| - Quick open item border-color: `#FEFEFE #e5e5e5 #e5e5e5 #eee` -> `#343739 #2d3133 #2d3133 #343739` | ||
| - Seamless sidebar background: `#fafafa` -> `#1b1e21` | ||
|
|
||
| ### 6. Preferences and Menu Components | ||
|
|
||
| - Dropdown divider: `#e5e5e5` -> `#343739` | ||
| - Preferences window background: `#fafafa` -> `#1f2325` | ||
| - Active nav item background: `#999` -> `#2a2d2f` | ||
| - Active nav item text: `white` -> `#f0f6fc` | ||
| - Menu style button background: `#f5f8fa` -> `#282c2e` | ||
|
|
||
| ### 7. Tags, Language Label, and Focus Mode | ||
|
|
||
| - Tag color: `#a7a7a7` -> `#6e7681` | ||
| - Code language label color: `#b4654d` -> `#ffa657` | ||
| - Focus mode blockquote border-left-color: `rgba(85, 85, 85, 0.12)` -> `#343739` | ||
|
|
||
| ### 8. Added Syntax Highlight Palette (New Block) | ||
|
|
||
| `github-dark-vanilla.css` adds a dedicated CodeMirror token palette section not present in `github.css`, including: | ||
|
|
||
| - Editor selection and cursor adjustments for dark background | ||
| - Token colors for `.cm-keyword`, `.cm-string`, `.cm-comment`, `.cm-tag`, `.cm-number`, etc. | ||
| - Error token styling (`.cm-error`) with high-contrast foreground/background | ||
| - Added gutter styling: dark background (`#282c2e`) and right border (`#343739`) | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thumbnailis set to a full URL, but this site’s templates always prepend/media/thumbnails/(index.html:12and_layouts/theme.html:124), so this post renders an invalid image URL like/media/thumbnails/https://...in gallery/detail views. As a result, the new theme entry’s thumbnail will be broken for users unlessthumbnailis just a filename that exists undermedia/thumbnails.Useful? React with 👍 / 👎.