DX Dark Color Theme
Publisher: daixianThemes in package: 1
Visual Studio style dark color theme for C# development in VS Code
Visual Studio style dark color theme for C# development in VS Code
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 |
|---|---|---|
| source, text | #D4D4D4 | — |
| comment, punctuation.definition.comment | #699856 | — |
| comment.block.documentation, comment.line.documentation | #6A9955 | — |
| storage.type.class.doxygen, storage.type.class.doxygen.cpp, comment.block.documentation storage.type.class.doxygen, comment.block.documentation.cpp storage.type.class.doxygen.cpp | #7FBFB3 | — |
| storage.type.class.jsdoc, entity.name.type.instance.jsdoc, comment.block.documentation keyword | #569CD5 | — |
| keyword, storage.type, storage.modifier | #499CD5 | — |
| source.cpp keyword.control | #D8A0DF | — |
| keyword.operator, keyword.operator.logical, keyword.operator.assignment, keyword.operator.logical.cs, keyword.operator.assignment.cs | #D4D4D4 | — |
| keyword.operator.wordlike.cpp, keyword.operator.new.cpp, keyword.operator.delete.cpp, keyword.operator.cast.static_cast.cpp, keyword.operator.cast.dynamic_cast.cpp, keyword.operator.cast.const_cast.cpp, keyword.operator.cast.reinterpret_cast.cpp | #499CD5 | — |
| string, string.quoted, string.template | #CD9069 | — |
| constant.character.escape, string.regexp punctuation.definition.character-class | #D7BA7D | — |
| constant.numeric, constant.language.number | #B4CDA8 | — |
| constant.language, constant.character, support.constant | #569CD6 | — |
| meta.definition.variable name | #D4D4D4 | — |
| variable.parameter, meta.parameter | #F49292 | — |
| variable.language, variable.language.this, variable.language.self | #569CD5 | — |
| variable.other.global, variable.other.readwrite.global | #AFDC50 | — |
| variable.other.constant, meta.object-literal.key, entity.name.constant | #FFC66D | — |
| entity.name.function, support.function | #DCDCAA | — |
| meta.function-call, variable.function, entity.name.function.member | #DBDBAA | — |
| entity.name.type, entity.name.class, support.class, support.type | #4EC8B0 | — |
| entity.name.interface | #3D8F7F | — |
| entity.name.type.parameter, entity.name.type.type-parameter | #39C8B0 | — |
| meta.annotation, entity.name.function.decorator, entity.name.tag.decorator | #39C8B0 | — |
| entity.name.tag, meta.tag.sgml, punctuation.definition.tag | #569CD6 | — |
| entity.other.attribute-name, support.type.property-name.css | #9CDCFE | — |
| variable.other.property.cs, variable.other.readwrite.property.cs, entity.name.variable.property.cs | #B3A3D7 | — |
| variable.other.property.static.cs, variable.other.readwrite.static.property.cs, entity.name.variable.static.property.cs | #B3A3D7 | bold |
| variable.other.field.cs, variable.other.readwrite.field.cs, entity.name.variable.field.cs | #D4D4D4 | — |
| variable.other.field.static.cs, variable.other.readwrite.static.cs | #D4D4D4 | bold |
| variable.other.constant.cs, variable.other.constant.static.cs, entity.name.variable.constant.cs | #FFC66D | bold |
| variable.other.enummember | #FFC66D | — |
| entity.name.variable.local.cs, variable.other.local.cs, variable.other.readwrite.local.cs, variable.other.local | #94DBFD | — |
| string.regexp, constant.regexp | #D16969 | bold |
| invalid, invalid.illegal | #F44747 | — |
| markup.heading, markup.heading.markdown | #499CD5 | — |
| markup.quote, markup.quote.markdown | #699856 | — |
| markup.inline.raw, markup.raw.block, fenced_code.block.language | #CD905B | — |
| string.other.link, markup.underline.link | #569CD6 | underline |
| entity.name.tag.localname.cs, entity.name.tag.cs, meta.tag.cs, comment.block.documentation punctuation.definition.tag, punctuation.definition.tag, comment.documentation.delimiter, comment.documentation.delimiter.cs, punctuation.definition.comment | #4C5C4C | — |
| entity.other.attribute-name.localname.cs, entity.other.attribute-name.cs, comment.block.documentation.cs entity.other.attribute-name, comment.block.documentation entity.other.attribute-name, punctuation.definition.string.begin.cs, punctuation.definition.string.end.cs, string.quoted.double.cs, comment.block.documentation string.quoted.double | #4C5C4C | — |
| keyword.preprocessor, meta.preprocessor, meta.preprocessor.cs, entity.name.function.preprocessor, punctuation.definition.preprocessor | #EC87EC | — |
| entity.name.variable.preprocessor.symbol.cs | #D4D4D4 | — |
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}!`;
}