Perfect Dark Theme
Publisher: Gourab SarkarThemes in package: 1
A sleek dark theme optimized for night coding π¦. Features high contrast colors and enhanced readability, inspired by Next.js documentation theme.
A sleek dark theme optimized for night coding π¦. Features high contrast colors and enhanced readability, inspired by Next.js documentation theme.
Full workbench mockup using this variant's colors and tokenColors.
Loading...
Workbench UI color keys from the theme JSON colors map.
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| comment, punctuation.definition.comment, string.comment | #bbbbbb | β |
| entity.other.attribute-name | #b675f1 | β |
| constant, entity.name.constant, variable.other.constant, variable.language, entity | #62a6ff | β |
| entity.name, meta.export.default, meta.definition.variable | #62a6ff | β |
| variable.parameter.function, meta.jsx.children, meta.block, meta.tag.attributes, entity.name.constant, meta.object.member, meta.embedded.expression, meta.template.expression, string.other.begin.yaml, string.other.end.yaml | #ffffff | β |
| entity.name.function, support.type.primitive | #b675f1 | β |
| support.class.component | #62a6ff | β |
| keyword | #f05b8d | β |
| keyword.operator, storage.type.function.arrow, punctuation.separator.key-value.css, entity.name.tag.yaml, punctuation.separator.key-value.mapping.yaml | #f05b8d | β |
| storage, storage.type | #f05b8d | β |
| storage.modifier.package, storage.modifier.import, storage.type.java | #ffffff | β |
| string, punctuation.definition.string, string punctuation.section.embedded source, entity.name.tag | #58c760 | β |
| support | #f05b8d | β |
| support.type.object.module, variable.other.object, support.type.property-name.css | #62a6ff | β |
| meta.property-name | #62a6ff | β |
| variable | #ffffff | β |
| variable.other | #ffffff | β |
| invalid.broken, invalid.deprecated, invalid.illegal, invalid.unimplemented | #f05b8d | β |
| carriage-return | #111111 | β |
| message.error | #f05b8d | β |
| string source | #ffffff | β |
| string variable | #62a6ff | β |
| source.regexp, string.regexp | #62a6ff | β |
| string.regexp.character-class, string.regexp constant.character.escape, string.regexp source.ruby.embedded, string.regexp string.regexp.arbitrary-repitition | #62a6ff | β |
| string.regexp constant.character.escape | #62a6ff | bold |
| support.constant, support.variable | #62a6ff | β |
| meta.module-reference | #62a6ff | β |
| punctuation.definition.list.begin.markdown | #f99902 | β |
| markup.heading, markup.heading entity.name | #62a6ff | bold |
| markup.quote | #62a6ff | β |
| markup.italic | #ffffff | italic |
| markup.bold | #ffffff | bold |
| markup.raw | #62a6ff | β |
| markup.deleted, meta.diff.header.from-file, punctuation.definition.deleted | #f05b8d | β |
| markup.inserted, meta.diff.header.to-file, punctuation.definition.inserted | #58c760 | β |
| markup.changed, punctuation.definition.changed | #f99902 | β |
| markup.ignored, markup.untracked | #777777 | β |
| meta.diff.range | #b675f1 | bold |
| meta.diff.header | #62a6ff | β |
| meta.separator | #62a6ff | bold |
| meta.output | #62a6ff | β |
| meta.export.default | #ffffff | β |
| brackethighlighter.tag, brackethighlighter.curly, brackethighlighter.round, brackethighlighter.square, brackethighlighter.angle, brackethighlighter.quote | #ffffff | β |
| brackethighlighter.unmatched | #f05b8d | β |
| constant.other.reference.link, string.other.link | #62a6ff | underline |
| token.info-token | #6796E6 | β |
| token.warn-token | #f99902 | β |
| token.error-token | #f05b8d | β |
| token.debug-token | #b675f1 | β |
TypeScript sample highlighted with this variant's colors and tokenColors.
Loading...
export interface User {
id: string;
name: string;
role: "admin" | "member";
tags: string[];
}
/**
* Fetch user data by ID
* @param id
* @returns User object or null if ID is invalid
*/
export async function fetchUser(id: string): Promise<User | null> {
if (!id) {
return null;
}
const response = await fetch(`/api/users/${id}`, {
method: "GET",
headers: { Accept: "application/json" },
});
if (!response.ok) {
throw new Error(`HTTP ${response.status}`);
}
return (await response.json()) as User;
}
function greet(user: User): string {
// Simple greeting function that uses the user's name
return `Hello, ${user.name}!`;
}
export interface User {
id: string;
name: string;
role: "admin" | "member";
tags: string[];
}
/**
* Fetch user data by ID
* @param id
* @returns User object or null if ID is invalid
*/
export async function fetchUser(id: string): Promise<User | null> {
if (!id) {
return null;
}
const response = await fetch(`/api/users/${id}`, {
method: "GET",
headers: { Accept: "application/json" },
});
if (!response.ok) {
throw new Error(`HTTP ${response.status}`);
}
return (await response.json()) as User;
}
function greet(user: User): string {
// Simple greeting function that uses the user's name
return `Hello, ${user.name}!`;
}