Dark Fangs
Publisher: dfangsThemes in package: 1
VS Code theme made by dfangs
VS Code theme made by dfangs
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 |
|---|---|---|
| entity.name.function, support.function, support.constant.handlebars, source.powershell variable.other.member, entity.name.operator.custom-literal | #fabf84 | — |
| variable.language | #9ecbff | italic |
| constant.language, constant.numeric, variable.other.constant, variable.other.enummember, support.constant | #9ecbff | — |
| variable.parameter, support.variable | #cccccc | italic |
| variable.other, meta.definition.variable.name, entity.name.variable, constant.other.placeholder | #cccccc | — |
| support.class, support.type, entity.name.type, entity.name.namespace, entity.other.attribute, entity.name.scope-resolution, entity.name.class | #ddbbff | — |
| storage.type.class, storage.type.function, storage.modifier, storage.type | #e06c75 | italic |
| storage.modifier.import | #fabf84 | italic |
| keyword.control, keyword.operator.logical, source.cpp keyword.operator.new, keyword.operator.delete, keyword.other.using, keyword.other.operator, entity.name.operator, keyword.codetag, keyword.other | #e06c75 | italic |
| keyword.operator | #e06c75 | — |
| comment, punctuation.definition.comment | #666d7a | italic |
| string | #abc185 | — |
| support.type.property-name | #e06c75 | — |
| punctuation.definition.group.regexp, punctuation.definition.group.assertion.regexp, punctuation.definition.character-class.regexp, punctuation.character.set.begin.regexp, punctuation.character.set.end.regexp, keyword.operator.negation.regexp, support.other.parenthesis.regexp | #ce9178 | — |
| punctuation.decorator | #d2a8ff | — |
| entity.name.tag | #e06c75 | — |
| constant.character.character-class.regexp, constant.other.character-class.set.regexp, constant.other.character-class.regexp, constant.character.set.regexp | #d16969 | — |
| keyword.operator.or.regexp, keyword.control.anchor.regexp | #dcdcaa | — |
| keyword.operator.quantifier.regexp | #d7ba7d | — |
| markup.heading, markup.heading entity.name | #e06c75 | bold |
| markup.quote | #98c379 | — |
| markup.italic | #cccccc | italic |
| markup.bold | #cccccc | bold |
| markup.underline | — | underline |
| markup.strikethrough | — | strikethrough |
| markup.inline.raw | #97aa78 | — |
| markup.deleted, meta.diff.header.from-file, punctuation.definition.deleted | #ffa198 | — |
| markup.inserted, meta.diff.header.to-file, punctuation.definition.inserted | #98c379 | — |
| markup.changed, punctuation.definition.changed | #fabf84 | — |
| markup.ignored, markup.untracked | #161b22 | — |
| punctuation.definition.bold.markdown, punctuation.definition.italic.markdown, punctuation.definition.heading.markdown | #696969 | — |
| punctuation.definition.list.begin.markdown | #fabf84 | — |
| punctuation.section.embedded | #e06c75 | — |
| meta.jsx.children, meta.block, meta.tag.attributes, entity.name.constant, meta.object.member, meta.embedded.expression | #cccccc | — |
| meta.property-name, meta.module-reference, meta.output | #97aa78 | — |
| meta.diff.range | #ddbbff | bold |
| meta.diff.header | #97aa78 | — |
| meta.separator | #97aa78 | bold |
| invalid.broken, invalid.deprecated, invalid.illegal, invalid.unimplemented | #ffa198 | italic |
| brackethighlighter.tag, brackethighlighter.curly, brackethighlighter.round, brackethighlighter.square, brackethighlighter.angle, brackethighlighter.quote | #666d7a | — |
| brackethighlighter.unmatched | #ffa198 | — |
| carriage-return | #f0f6fc | italic underline |
| message.error | #ffa198 | — |
| token.info-token | #6796e6 | — |
| token.warn-token | #cd9731 | — |
| token.error-token | #f44747 | — |
| token.debug-token | #b267e6 | — |
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}!`;
}