Solarized Dark VS Tokens
Publisher: Roy Gh.Themes in package: 1
Solarized Dark workbench colors with JetBrains Visual Studio Dark syntax and semantic highlighting.
Solarized Dark workbench colors with JetBrains Visual Studio Dark syntax and semantic highlighting.
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 |
|---|---|---|
| — | #dcdcdc | — |
| comment, punctuation.definition.comment | #57a64a | — |
| keyword, storage.type, storage.modifier, keyword.operator.new, storage.type.generic.cs, keyword.other.namespace.cs, keyword.other.using.cs | #569cd6 | — |
| keyword.control, keyword.control.flow, keyword.control.import, keyword.control.from, keyword.control.conditional.cs, keyword.control.exception.cs, keyword.control.loop.cs, keyword.control.razor | #d8a0df | — |
| string, string.quoted, string.template, string.interpolated, meta.interpolation.cs string | #d69d85 | — |
| constant.character.escape, constant.other.placeholder | #e07a00 | — |
| constant.numeric, constant.language.decimal.cs, constant.language.integer.hex.cs | #b5cea8 | — |
| constant.language, constant.language.boolean, constant.language.null | #569cd6 | — |
| entity.name.type, entity.name.class, support.class, support.type, entity.name.type.class.cs, entity.name.type.record.cs, entity.name.type.class.razor | #4dc9b0 | — |
| entity.name.type.interface, entity.name.type.enum, entity.name.type.struct, entity.name.type.interface.cs, entity.name.type.enum.cs, entity.name.type.struct.cs | #b8d7a3 | — |
| entity.name.namespace, entity.name.scope-resolution, support.namespace, entity.name.namespace.cs | #dcdcdc | — |
| entity.name.function, support.function, meta.function-call, variable.function, entity.name.function.method.cs, meta.method-call.cs, entity.name.function.razor | #dcdca9 | — |
| entity.name.function.extension, support.function.extension, entity.name.function.extension-method.cs | #d8d9a8 | — |
| variable, variable.other, variable.parameter, variable.object.property, variable.other.readwrite.cs, variable.parameter.cs, variable.other.local.cs | #9cdcfe | — |
| variable.other.property, variable.other.member, support.variable.property, variable.other.object.property.cs, variable.other.field.cs | #dcdcdc | — |
| constant, variable.other.constant, entity.name.constant, variable.other.constant.cs | #dcdcdc | — |
| entity.name.type.attribute.cs, support.class.attribute.cs | #4dc9b0 | — |
| meta.preprocessor.cs, keyword.control.directive.cs, entity.name.label.cs | #696969 | — |
| support.type.property-name.json, meta.object-literal.key, meta.object-literal.key string.quoted | #d7bb7d | — |
| entity.name.tag, entity.name.tag.custom, entity.name.tag.xml, entity.name.tag.localname.xml, entity.name.tag.html, entity.name.tag.block.any.html, entity.name.tag.inline.any.html, entity.name.tag.structure.any.html, entity.name.tag.razor | #569cd6 | — |
| punctuation.definition.tag, meta.tag punctuation, punctuation.definition.tag.begin.xml, punctuation.definition.tag.end.xml, punctuation.definition.tag.html, punctuation.definition.tag.razor | #808080 | — |
| entity.other.attribute-name, entity.other.attribute-name.html, entity.other.attribute-name.class.css.html, entity.other.attribute-name.id.html, entity.other.attribute-name.razor | #9cdcfe | — |
| entity.other.attribute-name.xml, entity.other.attribute-name.localname.xml, entity.other.attribute-name.namespace.xml | #92caf4 | — |
| string.quoted.double.html, string.quoted.single.html, string.quoted.double.xml, string.quoted.single.xml, string.quoted.double.razor, string.quoted.single.razor | #c8c8c8 | — |
| punctuation.section.embedded.begin.razor, punctuation.section.embedded.end.razor, punctuation.definition.block.razor, source.cs.embedded.razor punctuation.section.embedded | #a699e6 | — |
| storage.type.class.jsdoc, entity.name.tag.documentation, punctuation.definition.block.tag | #a3a3a3 | — |
| variable.other.jsdoc, entity.name.type.instance.jsdoc | #d69d85 | — |
| markup.underline.link, string.other.link | #287bde | underline |
| markup.heading, markup.heading.setext | #569cd6 | bold |
| markup.inline.raw | #d69d85 | — |
| markup.quote | #93a629 | — |
| markup.list | #b58b00 | — |
| markup.inserted | #93a629 | — |
| markup.deleted | #d62525 | — |
| markup.changed | #d69d85 | — |
| invalid, invalid.illegal | #ff3333 | — |
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}!`;
}