Dark+ Durotar Theme
Publisher: hoiselThemes in package: 1
The VS Code Dark+ theme with a few modifications
The VS Code Dark+ theme with a few modifications
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| emphasis | — | italic |
| strong | — | bold |
| header | #000080 | — |
| comment | #608b4e | italic |
| constant.language | #569cd6 | — |
| constant.numeric | #b5cea8 | — |
| constant.regexp | #646695 | — |
| constant.rgb-value | #d4d4d4 | — |
| entity.name.tag | #569cd6 | — |
| entity.name.selector | #d7ba7d | — |
| entity.other.attribute-name.html | #DCDCAA | italic |
| entity.other.attribute-name.css | #d7ba7d | — |
| entity.other.attribute-name.pseudo-element.css, entity.other.attribute-name.pseudo-element.scss | — | italic |
| invalid | #f44747 | — |
| markup.underline | — | underline |
| markup.bold | #569cd6 | bold |
| markup.heading | #569cd6 | bold |
| markup.italic | — | italic |
| markup.inserted | #b5cea8 | — |
| markup.deleted | #ce9178 | — |
| markup.changed | #569cd6 | — |
| markup.punctuation.quote.beginning | #608b4e | — |
| markup.punctuation.list.beginning | #6796e6 | — |
| markup.inline.raw | #ce9178 | — |
| meta.selector | #d7ba7d | — |
| punctuation.definition.tag | #808080 | — |
| meta.preprocessor | #569cd6 | — |
| meta.preprocessor.string | #ce9178 | — |
| meta.preprocessor.numeric | #b5cea8 | — |
| meta.structure.dictionary.key.python | #9cdcfe | — |
| meta.header.diff | #569cd6 | — |
| storage | #569cd6 | — |
| storage.type | #569cd6 | italic |
| storage.modifier | #569cd6 | italic |
| string | #ce9178 | — |
| string.tag | #ce9178 | — |
| string.value | #ce9178 | — |
| string.regexp | #d16969 | — |
| string.template-expression | #569cd6 | — |
| support.type.property-name | #9cdcfe | — |
| keyword | #569cd6 | — |
| keyword.control | #569cd6 | — |
| keyword.operator | #d4d4d4 | — |
| keyword.operator.new | #569cd6 | — |
| keyword.operator.expression | #569cd6 | — |
| keyword.other.unit | #b5cea8 | — |
| punctuation.section.embedded.begin.metatag.php | #569cd6 | — |
| punctuation.section.embedded.end.metatag.php | #569cd6 | — |
| support.function.git-rebase | #9cdcfe | — |
| constant.sha.git-rebase | #b5cea8 | — |
| storage.modifier.import.java | #d4d4d4 | — |
| storage.modifier.package.java | #d4d4d4 | — |
| variable.language | #569cd6 | italic |
| entity.name.function | #DCDCAA | — |
| support.function | #DCDCAA | — |
| meta.return-type | #4EC9B0 | — |
| support.class.ts | #4EC9B0 | italic |
| support.type.ts | #4EC9B0 | italic |
| entity.name.type | #4EC9B0 | — |
| storage.type.cs | #4EC9B0 | — |
| storage.type.java | #4EC9B0 | — |
| entity.other.inherited-class | #4EC9B0 | — |
| meta.return.type | #4EC9B0 | — |
| meta.type.cast.expr | #4EC9B0 | — |
| meta.type.new.expr | #4EC9B0 | — |
| support.constant.math | #4EC9B0 | — |
| support.constant.dom | #4EC9B0 | — |
| support.constant.json | #4EC9B0 | — |
| keyword.control | #C586C0 | — |
| variable.parameter | #9CDCFE | — |
| variable | #9CDCFE | — |
| variable.name | #9CDCFE | — |
| support.variable | #9CDCFE | — |
| object-literal.member.key | #9CDCFE | — |
| support.property-value | #CE9178 | — |
| constant.rgb-value | #CE9178 | — |
| support.property-value.scss | #CE9178 | — |
| constant.rgb-value.scss | #CE9178 | — |
| entity.name.function.tag | #569cd6 | — |
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}!`;
}