loong Solarized Dark C/C++
Publisher: yinloongaThemes in package: 2
Based on Solarized Dark, adapted for C/C++ UI
Based on Solarized Dark, adapted for C/C++ UI
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.block, comment.block.documentation, punctuation.definition.comment.begin, punctuation.definition.comment.end | #8B95A5 | italic |
| comment.line, comment.line.double-slash, comment.line.number-sign | #8B95A5 | — |
| keyword.other.using.directive.cpp | #FF5733 | bold |
| support.type, support.class | #B04214 | — |
| meta.embedded, source.groovy.embedded | #F8F8F2 | — |
| entity.name.function.preprocessor, meta.preprocessor.macro.c | #E53935 | |
| string | #CFCFC2 | — |
| punctuation.definition.template-expression, punctuation.section.embedded | #F92672 | — |
| meta.template.expression | #CFCFC2 | — |
| constant.numeric | #CFCFC2 | — |
| constant.language | #CFCFC2 | — |
| constant.character, constant.other | #CFCFC2 | — |
| variable.other.local, variable.other.static | #32bf32 | — |
| variable.other.readwrite | #34A853 | — |
| variable.other.constant | #009688 | bold |
| variable.other.static | #009688 | underline |
| variable.other.global | #2aa198 | underline bold |
| variable.other.property | #61AFEF | |
| variable.other.property, variable.other.property.constant, variable.other.property.static | #11abff | — |
| variable.other.enummember | #11abff | underline |
| variable.other.property.static | #11abff | italic |
| keyword.control | #EE0000 | |
| keyword.operator.new, keyword.operator.delete | #ee0000 | bold |
| storage | #F92672 | |
| storage.type | #4FB7C5 | — |
| entity.name.type | #CB4B16 | — |
| entity.name.type.class | #CB4B16 | |
| entity.name.type.class.templated | #CB4B16 | |
| entity.name.namespace | #CB4B16 | |
| entity.other.inherited-class | #A6E22E | italic underline |
| entity.name.function | #DEA628 | — |
| entity.name.function.templated | #DEA628 | italic bold |
| entity.name.function.operator | #DEA628 | bold |
| entity.name.function.operator.member | #DEA628 | bold |
| entity.name.function.member | #DEA628 | — |
| entity.name.function.member.static | #dEA628 | italic |
| entity.name.type.class.reference | #CB4B16 | underline |
| variable.parameter | #9A8CF7 | |
| entity.name.tag | #F92672 | |
| entity.other.attribute-name | #A6E22E | |
| support.function | #66D9EF | |
| support.constant | #66D9EF | |
| support.other.variable | #11abff | italic |
| constant.numeric.integer.cpp, constant.numeric.float.cpp, constant.numeric.hex.cpp, constant.numeric.oct.cpp, constant.numeric.binary.cpp, constant.numeric.decimal.cpp, constant.numeric.exponent.decimal.cpp, keyword.other.unit.exponent.decimal.cpp, keyword.operator.minus.exponent.decimal.cpp, keyword.other.unit.suffix.floating-point.cpp, constant.numeric.decimal.point.cpp | #009688 | — |
| keyword.operator.arithmetic.cpp, keyword.operator.assignment.cpp, keyword.operator.comparison.cpp, keyword.operator.logical.cpp, keyword.operator.bitwise.cpp, keyword.operator.increment.cpp, keyword.operator.ternary.cpp, keyword.operator.pointer.cpp, keyword.operator.member.cpp, keyword.operator.other.cpp, keyword.operator.bitwise.shift.cpp, punctuation.separator.pointer-access.cpp, punctuation.separator.colon.range-based.cpp, punctuation.separator.namespace.access.cpp, punctuation.separator.dot-access.cpp, punctuation.terminator.statement.cpp | #CFCFC2 | — |
| keyword.operator.cast | #B07D1A | |
| storage.modifier | #8FAE00 | italic |
| invalid | #F44747 | |
| invalid.deprecated | #F44747 | — |
| meta.structure.dictionary.json string.quoted.double.json | #CFCFC2 | — |
| meta.diff, meta.diff.header | #75715E | — |
| markup.deleted | #F92672 | — |
| markup.inserted | #A6E22E | — |
| markup.changed | #E6DB74 | — |
| constant.numeric.line-number.find-in-files - match | #AE81FFA0 | — |
| entity.name.filename.find-in-files | #E6DB74 | — |
| markup.quote | #F92672 | — |
| markup.list | #E6DB74 | — |
| markup.bold, markup.italic | #66D9EF | — |
| markup.inline.raw | #FD971F | |
| markup.heading | #A6E22E | — |
| markup.heading.setext | #A6E22E | bold |
| markup.heading.markdown | — | bold |
| markup.quote.markdown | #75715E | italic |
| markup.bold.markdown | — | bold |
| string.other.link.title.markdown,string.other.link.description.markdown | #AE81FF | — |
| markup.underline.link.markdown,markup.underline.link.image.markdown | #E6DB74 | — |
| markup.italic.markdown | — | italic |
| markup.list.unnumbered.markdown, markup.list.numbered.markdown | #f8f8f2 | — |
| punctuation.definition.list.begin.markdown | #A6E22E | — |
| token.info-token | #6796e6 | — |
| token.warn-token | #cd9731 | — |
| token.error-token | #f44747 | — |
| token.debug-token | #b267e6 | — |
| variable.language | #FD971F | — |
| keyword.operator.assignment.shell, constant.character.escape.line-continuation.shell, punctuation.definition.subshell.single.shell | #FF5733 | bold |
| support.function.builtin.shell | #DEA628 | bold |
| variable.other.normal.shell | #009688 | bold |
| variable.other.assignment.shell | #8BC34A | — |
| string.quoted.single.shell, string.quoted.double.shell, string.unquoted.shell, string.unquoted.argument.shell | #9A8CF7 | — |
| entity.name.command.shell, storage.modifier.export.shell | #CB4B16 | — |
| constant.other.option | #4FB7C5 | — |
| support.type.property-name.json.comments | #CB4B16 | — |
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}!`;
}