Dark C++ Theme
Publisher: Alexis MenardThemes in package: 1
This is a dark theme mostly made for C++ editing. It has enhanced coloration thanks to Better C++ Syntax extension.
This is a dark theme mostly made for C++ editing. It has enhanced coloration thanks to Better C++ Syntax extension.
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 | #808080 | — |
| string, string.template | #e44038 | — |
| constant.numeric, constant.other.color | #D85FA7 | — |
| constant.other | #56b6c2 | — |
| invalid, invalid.illegal | #FF5370 | — |
| variable.language, keyword, variable.language.this, variable.language.self, variable.language.super, storage.type, storage.modifier, keyword.operator.new, keyword.operator.delete, constant.language, keyword.operator.cast | #f32973 | — |
| storage.modifier.pointer, storage.modifier.reference, storage.modifier.dereference, keyword.operator, keyword.operator.assignment, punctuation.separator.namespace.access, punctuation.separator.pointer-access, variable.other.object.access | #E6E5E2 | — |
| variable.other.macro, keyword.control.directive, support.function, meta.preprocessor.macro, entity.name.function.preprocessor | #AE81FF | — |
| entity.name.class, entity.name.module, entity.name.type, storage.identifier, support.class | #e9c70a | — |
| variable.other, variable.other.block | #20a1b3 | — |
| variable.other.property | #2EB436 | — |
| variable.parameter, entity.name.variable.parameter, parameter.variable | #408080 | — |
| entity.name.function | #d37d04 | — |
| entity.name.namespace | #ced128 | — |
| entity.other.inherited-class, storage.modifier.virtual | #FF6D90 | — |
| function.support.builtin, function.support.core, variable.other.enummember, entity.other.attribute-name | #98c379 | — |
| support.type.property-name.json | #56b6c2 | — |
| string.detected-link | #61afef | — |
| meta.diff, meta.diff.header | #75715E | — |
| markup.deleted | #e06c75 | — |
| markup.inserted | #98c379 | — |
| markup.changed | #e5c07b | — |
| constant.numeric.line-number.find-in-files - match | #56b6c2A0 | — |
| entity.name.filename.find-in-files | #e5c07b | — |
| markup.italic, markup.italic.markdown | — | italic |
| punctuation.definition.italic.markdown, punctuation.definition.bold.markdown, punctuation.definition.heading.markdown | #676f7d | — |
| punctuation.definition.italic.markdown | — | italic |
| markup.underline.link.markdown | #61afef | — |
| markup.bold.markdown | — | bold |
| markup.heading.markdown | #e06c75 | bold |
| markup.quote.markdown | #98c379 | — |
| meta.separator.markdown | #c678dd | bold |
| markup.raw.inline.markdown, markup.raw.block.markdown | #56b6c2 | — |
| punctuation.definition.list_item.markdown | #ffffff | bold |
| support.dictionary.json | #56b6c2 | — |
| support.type.property-name.css, support.type.property-name.scss, support.type.property-name.less, support.type.property-name.sass | #56b6c2 | — |
| entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-class.scss, entity.other.attribute-name.pseudo-class.less, entity.other.attribute-name.pseudo-class.sass, entity.other.attribute-name.pseudo-element.css, entity.other.attribute-name.pseudo-element.scss, entity.other.attribute-name.pseudo-element.less, entity.other.attribute-name.pseudo-element.sass | #54a5a5 | — |
| support.constant.css, support.constant.scss, support.constant.less, support.constant.sass, source.css support.constant | #d47035 | — |
| variable.css, variable.scss, variable.less, variable.sass | #56b6c2 | — |
| variable.css.string, variable.scss.string, variable.less.string, variable.sass.string | #e5c07b | — |
| unit.css, unit.scss, unit.less, unit.sass | #c678dd | — |
| function.css, function.scss, function.less, function.sass | #56b6c2 | — |
| punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html | #729dfa | — |
| entity.name.tag, entity.name.tag.class.js | #287ddd | — |
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}!`;
}