two-dark
Publisher: Antonio AbellaThemes in package: 1
Desaturated version of the One Dark theme. Based on Atom's 2-Dark theme.
Desaturated version of the One Dark theme. Based on Atom's 2-Dark 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 |
|---|---|---|
| — | #abb0ba | |
| comment | #5a5f69f2 | — |
| comment markup.link | #5a5f69f2 | — |
| variable.parameter.function | #abb2bf | — |
| none | — | |
| keyword.operator | — | |
| keyword | #b989c7 | — |
| keyword.operator | #abb0ba | — |
| keyword.other.unit | #c99a6e | — |
| variable | #d9737b | — |
| entity.name.function, meta.require, support.function.any-method | #80acd1 | — |
| support.class, entity.name.class, entity.name.type.class | #dfbe81 | — |
| support.type | #7e979a | — |
| meta.class | #dfbe81 | — |
| meta.class.body | #abb0ba | — |
| keyword.other.special-method | #80acd1 | — |
| storage | #b989c7 | — |
| storage.type.annotation, storage.type.primitive | #b989c7 | — |
| storage.modifier.package, storage.modifier.import | #abb0ba | — |
| support.function | #7e979a | — |
| string | #99bb81 | — |
| constant.numeric | #c99a6e | — |
| none | #dfbe81 | — |
| none | #dfbe81 | — |
| constant | #c99a6e | — |
| constant.variable | #c99a6e | — |
| entity.name.tag | #d9737b | — |
| entity.other.attribute-name | #c99a6e | — |
| entity.other.attribute-name.id, punctuation.definition.entity | #80acd1 | — |
| meta.selector | #b989c7 | — |
| markup.heading punctuation.definition.heading, entity.name.section | #80acd1 | |
| markup.bold, punctuation.definition.bold | #c99a6e | — |
| markup.italic, punctuation.definition.italic | #b989c7 | — |
| markup.raw.inline | #99bb81 | — |
| string.other.link, punctuation.definition.string.end.markdown | #d9737b | — |
| meta.link | #c99a6e | — |
| markup.list | — | |
| markup.quote | #c99a6e | — |
| source.c keyword.operator | #b989c7 | — |
| source.cpp keyword.operator | #b989c7 | — |
| source.cs keyword.operator | #b989c7 | — |
| source.css property-name, source.css property-value | #828997 | — |
| source.css property-name.support, source.css property-value.support | #abb0ba | — |
| source.gfm markup | — | — |
| source.gfm link entity | #80acd1 | — |
| source.go storage.type.string | #b989c7 | — |
| source.ini keyword.other.definition.ini | #d9737b | — |
| source.java meta.class.java meta.method.java | #abb0ba | — |
| source.java meta.class.java meta.class.body.java | #abb0ba | — |
| source.js meta.function.js variable.parameter.function.js | #d9737b | — |
| source.js variable.other.readwrite.js | #d9737b | — |
| source.js variable.other.object.js | #abb0ba | — |
| source.js meta.function-call.method.js variable.other.readwrite.js | #d9737b | — |
| source.js meta.block.js variable.other.readwrite.js | #d9737b | — |
| source.js meta.block.js variable.other.object.js | #abb0ba | — |
| source.js meta.block.js meta.function-call.method.js variable.other.readwrite.js | #abb0ba | — |
| source.js meta.function-call.method.js variable.function.js | #abb0ba | — |
| source.js meta.property.object.js entity.name.function.js | #80acd1 | — |
| source.json meta.structure.dictionary.json > string.quoted.json | #d9737b | — |
| source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string | #d9737b | — |
| source.json meta.structure.dictionary.json > value.json > string.quoted.json, source.json meta.structure.array.json > value.json > string.quoted.json, source.json meta.structure.dictionary.json > value.json > string.quoted.json > punctuation, source.json meta.structure.array.json > value.json > string.quoted.json > punctuation | #99bb81 | — |
| source.json meta.structure.dictionary.json > constant.language.json, source.json meta.structure.array.json > constant.language.json | #7e979a | — |
| source.ruby constant.other.symbol > punctuation | inherit | — |
| source.python keyword.operator.logical.python | #b989c7 | — |
| source.python variable.parameter | #c99a6e | — |
| source.js support.constant.prototype.js | #abb0ba | — |
| meta.separator | #abb0ba | — |
| meta.tag | #abb0ba | — |
| underline | — | — |
| markup.inserted | #99bb81 | — |
| markup.deleted | #d9737b | — |
| markup.changed | #b989c7 | — |
| string.regexp | #7e979a | — |
| constant.character.escape | #7e979a | — |
| constant.other.color | #7e979a | — |
| constant.other.symbol | #7e979a | — |
| punctuation.section.embedded, variable.interpolation | #b45850 | — |
| invalid.illegal | #ffffff | — |
| invalid.broken | #abb0ba | — |
| invalid.deprecated | #523d14 | — |
| invalid.unimplemented | #abb0ba | — |
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}!`;
}