-
Notifications
You must be signed in to change notification settings - Fork 3.7k
(themes) Add tokyo-night-dark
#3467
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
Conversation
Added a color-close tokyonight theme
Update CHANGES.md
|
Please show us what it looks like and attach the results of running our theme checker utility against your theme. |
|
@joshgoebel, I am using svelte-highlight which in turns uses highlight.js for themes. I am not familiar with the code base and how to test my theme the hightlight.js way. So I am using svelte highlight with my custom file. <style lang="postcss"></style>
<script lang="ts">
$: code = ` // swagger config
const config = new DocumentBuilder()
.setTitle('A51-21e8 node')
.setDescription(
'Still confused about levelDown and its nestJs integrations',
)
.setVersion('.01')
.build();
const document = SwaggerModule.createDocument(app, config);
SwaggerModule.setup('/docs', app, document);
await app.listen(process.env.SERVER_PORT ?? 3100, '0.0.0.0', async (err, address) => {
if (err) {
Logger.warn(err)
process.exit(1)
} else {
Logger.log("Application is running" , 'main.ts')
}
})
`;
import { Highlight } from "svelte-highlight";
import typescript from "svelte-highlight/src/languages/typescript";
import tokyoNightDark from "../lib/ui/tokyo-night-dark.css";
</script>
<svelte:head>
{@html tokyoNightDark}
</svelte:head>
<template>
<div class="bg-terminalStorm"> <!-- terminalStorm: "#24283b" -->
<pre><code><Highlight language="{typescript}" code="{code}" /></code></pre>
</div>
</template> |
|
Looks pretty. Please run |
|
Does that mean that I am missing several css tags like .hjls-doctag/hljs-code? |
Exactly. :-) Generally you don't want to see "- Theme does not fully support." messages. Also, I'd recommend pulling the contrast a bit on your |
|
@joshgoebel, made the changes. Is there a way to quickly generate a preview of my theme? |
From the source code you can build the |
|
Would you be able to point to the right variable names? For example the Updated view: The TokyioNight Dark theme that I use on nvim |
|
Use |
|
ok so I played with the tools and it helped, these are my final results. |
|
Sorry, one last thing.... should we not name this |
|
@Vanderscycle Thanks fo much! |
* master: (816 commits) (chore) add sideEffects: false to enable tree-shaking in esbuild & others fix(markdown) Handle `***Hello world***` without breaking (highlightjs#3457) (chore) DRY up php grammar just a little enh(php) support CSSCase attribute naming refactor, security issues enh(php) Add support for Attributes fix(java) prevent false variable init on `else` (highlightjs#3455) (ci) min change threshold for size report (highlightjs#3401) (themes) Add `tokyo-night-dark` (highlightjs#3467) enh(llvm) Improve number support, add `char.escape` (highlightjs#3471) (chore) simplify brainfuck grammar fix(brainfuck) fix highlighting of initial ++/-- Minor change to TypeScript types and TypeScript-specific keywords (highlightjs#3466) fix(angelscript) Fix highlighting of int8, int16, int32, int64 (highlightjs#3464) enh(php) named arguments and fix php constants (highlightjs#3459) themes: add new felipec theme (highlightjs#3441) (chore) release 10.4.0 enh(arcade) Add missing keywords for Arcade v1.16 chore(arcade) eslint --fix, explode keywords enh(php) Left and right-side of double colon (highlightjs#3422) ...



Added a color-close tokyonight theme
Added the tokyonight theme inspired by vscode
Changes
new css file supporting tokyonight
Checklist
CHANGES.md