Nando Theme
Publisher: hectorfhurtadovscodeThemes in package: 1
A plain dark theme
A plain dark theme
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #DEDEDE | — |
| comment | #999999 | — |
| meta.preprocessor, punctuation.definition.preprocessor | #BFBFBF | — |
| keyword.other.phpdoc | #B3B3B3 | — |
| punctuation.definition.comment, punctuation.whitespace.comment | #B3B3B3 | — |
| punctuation.section.embedded | #898989 | — |
| source.ruby.embedded | #E3E3E3 | — |
| keyword.other.directive | #D4D4D4 | bold |
| keyword.other.directive.line-number | #58D154 | underline |
| constant.character | #DEDEDE | — |
| string, string.unquoted | #969090 | — |
| string.unquoted.heredoc | #D6D6D6 | — |
| support.constant.numeric, constant.numeric | #D1D1D1 | — |
| constant, support.constant | #D1D1D1 | bold |
| constant.character, constant.other | #E3E3E3 | — |
| variable.other.constant | #C9C9C9 | — |
| keyword, keyword.control, meta.selector.css, entity.other.attribute-name | #C2C2C2 | bold |
| variable.other.readwrite.instance | #F0F0F0 | — |
| entity.name.module, support.other.module | #D6D6D6 | bold |
| keyword.operator | #B8B8B8 | — |
| source.ocaml keyword.operator.symbol.infix.floating-point | — | underline |
| source.ocaml keyword.operator.symbol.prefix.floating-point | — | underline |
| storage.type, storage.modifier, support.type | #A3A3A3 | bold |
| entity.name.class.variant | #BDBDBD | — |
| storage | #B8B8B8 | — |
| entity.name.type, entity.other | #B3B3B3 | — |
| entity.other.inherited-class | #CCCCCC | — |
| storage.type.user-defined, meta.property-list | #CFCFCF | — |
| entity.name.type, entity.name.type.class, entity.other.attribute-name.class.css, support.class, entity.name.type.module, entity.name.class | #D9D9D9 | — |
| variable.parameter | #FFFFFF | — |
| invalid | #C2C2C2 | bold italic underline |
| entity.other.attribute-name.html | #C2C2C2 | — |
| entity.name.tag | #D1D1D1 | — |
| punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php | #898989 | — |
| support.function.construct | #DBDBDB | — |
| punctuation.definition.variable | #D9D9D9 | — |
| support.function, meta.function-name, entity.name.function | #CCCCCC | — |
| support.function | #CCCCCC | — |
| meta.brace | #CCC4C4 | — |
| punctuation.definition.string.begin, punctuation.definition.string.end | #CCC6C680 | — |
| punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, meta.tag.structure.any.html | #CCCCCC | bold |
| entity.name.tag.yaml | #FED6AF | bold |
| punctuation.definition.entry | #D6D6D6 | — |
| keyword.other.DML.sql, keyword.other.data-integrity.sql | #B7B7B7 | bold |
| source.sql, constant.other.database-name.sql, constant.other.table-name.sql, keyword.operator.star | #DBDBDB | bold |
| source.diff | #FFFFFF | — |
| source.diff meta.diff.comment, source.diff meta.toc-list.comment.diff | #F0F0F0 | — |
| meta.diff.header.from-file | #CA7172 | bold |
| meta.diff.header.to-file | #60B38A | bold |
| meta.diff.range.unified | #D1D1D1 | — |
| markup.inserted.diff | #60B38A | — |
| markup.deleted.diff | #CA7172 | — |
| string.regexp | #BFBFBF | — |
| string.regexp.arbitrary-repitition | #9E9E9E | — |
| punctuation.definition.arbitrary-repitition | #CFCFCF | — |
| string.regexp.character-class | #D6D6D6 | — |
| punctuation.definition.character-class | #D6D6D6F7 | — |
| markup.raw.inline.markdown | #D6D6D6 | — |
| markup.heading.markdown, punctuation.definition.heading | #F2F2F2 | bold |
| markup.list | #DEDEDE | — |
| variable | #B3B3B3 | bold |
| entity | #B9B9BD | — |
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}!`;
}