oort-cloud-reverie
Publisher: W3DojoThemes in package: 2
A dark bluish theme for VS Code. Created with C# TypeScript JavaScript CSS, Node.js and ASP.NET in mind.
A dark bluish theme for VS Code. Created with C# TypeScript JavaScript CSS, Node.js and ASP.NET in mind.
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 | #B2B5BB | — |
| comment, punctuation.definition.comment | #447090 | — |
| comment.block.documentation entity.name.tag | #446622 | — |
| comment.block.documentation punctuation.definition.tag | #603080 | — |
| punctuation | #B2B5BB | — |
| punctuation.separator.scope-resolution, punctuation.separator.dot-access, punctuation.separator.pointer-access, storage.type.function.arrow | #409CFC | |
| string.quoted, punctuation.definition.string | #CC8866 | — |
| constant.numeric | #96C088 | — |
| constant.language.true, constant.language.false, constant.language.boolean | #E46699 | |
| constant.null, constant.language.null | #CC5544 | italic |
| storage | #409CFC | |
| keyword | #409CFC | |
| keyword.operator, punctuation.separator.question-mark, punctuation.accessor | #409CFC | |
| variable | #40C2E0 | — |
| entity.name.variable | #88C4E8 | — |
| entity.name.type, variable.other.object, source.cpp variable.other.object.access.cpp | #B2AAE4 | — |
| entity.name.function, entity.name.function.call, entity.name.type.class, entity.name.type.namespace, variable.other.object | #D0AF80 | — |
| source.cmake | #C4C4C4 | |
| source.cmake string.unquoted | #CC7755 | — |
| source.cmake string.quoted | #C5A888 | — |
| support.function.cmake, entity.name.function.cmake | #60B0EE | |
| source.cmake support.type, support.type.targetProperty.cmake, support.type.provideInfo, support.function.commandProperty.cmake | #96C088 | |
| source.cmake keyword | #AAA0DD | — |
| source.json | #44AAFF | — |
| support.type.property-name.json | #44AAFF | — |
| string.quoted.double.json, string.quoted.double.json punctuation.definition.string | #BB9955 | — |
| constant.numeric.json | #bb5c7c | — |
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}!`;
}