Deep Blue Dark Theme
Publisher: Lorenzo AdreaniThemes in package: 3
A clean and minimal dark blue theme for VS Code. Deep Blue delivers a consistent UI, smooth contrast and a distraction-free coding experience. Includes Flat and Night variants.
A clean and minimal dark blue theme for VS Code. Deep Blue delivers a consistent UI, smooth contrast and a distraction-free coding experience. Includes Flat and Night variants.
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 |
|---|---|---|
| comment, punctuation.definition.comment | #68727e | — |
| string, string.quoted, string.template, string.regexp | #8fcb6c | — |
| constant.numeric, constant.language.boolean, constant.language.null, constant.language.undefined | #de7c2c | — |
| keyword, storage, storage.type, storage.modifier | #4f79b7 | — |
| entity.name.function, support.function, meta.function-call, variable.function | #62b4d8 | — |
| entity.name.type, entity.name.class, support.class, support.type, entity.name.namespace | #9db2c8 | — |
| variable, meta.definition.variable.name, support.variable | #d1d8e0 | — |
| variable.parameter | #bcc7d2 | — |
| entity.name.tag, meta.tag, punctuation.definition.tag | #4f79b7 | — |
| entity.other.attribute-name | #62b4d8 | — |
| keyword.operator, punctuation.separator, punctuation.terminator | #8fa0b3 | — |
| constant.character.escape, string.regexp.character-class, string.regexp constant.character.escape | #d7b65f | — |
| invalid, invalid.illegal, invalid.deprecated | #d14d57 | — |
| markup.heading, markup.bold, markup.italic | #8fa9c2 | — |
| markup.inline.raw, markup.fenced_code.block | #8fcb6c | — |
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}!`;
}