Day's Watch
Publisher: Kjartan BourgeoisThemes in package: 1
An light theme for Visual Studio Code
An light theme for Visual Studio 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 |
|---|---|---|
| comment, comment.block.css, punctuation.definition.comment, comment.block.html, comment.line.double-slash.js | #00000069 | italic |
| string, constant.character.escape | #008dd5 | — |
| keyword | #EA9462 | — |
| variable.other | #EA9462 | italic |
| constant.numeric | #EA9462 | — |
| entity.name.function | #008dd5 | — |
| keyword.operator | #EA9462 | — |
| text.html.vue, source.vue, text.html.basic, text.html.basic source, text.html.basic meta.tag, text.html.basic meta.tag entity.tag, text.html.basic meta.tag entity.tag script, text.html.basic meta.tag entity.tag script.js | #ea5552 | — |
| variable.language.vue | #008dd5 | — |
| variable.function.vue | #008dd5 | — |
| keyword.vue | #EA9462 | — |
| string.quoted.vue | #008dd5 | — |
| comment.block.documentation.vue | #00000069 | — |
| entity.name.tag.vue | #EA9462 | — |
| entity.name.tag.vue punctuation.definition.tag.vue | #102542 | — |
| punctuation.definition.tag.begin.html.vue , punctuation.definition.tag.end.html.vue, entity.name.tag.script.html.vue, entity.name.tag.template.html.vue | #ea5552 | — |
| variable.other.readwrite.ts | #102542 | italic |
| text.html | #102542 | — |
| text.html.basic, text.html.basic source, text.html.basic meta.tag, text.html.basic meta.tag entity.tag, text.html.basic meta.tag entity.tag.script, text.html.basic meta.tag entity.tag.script.js | #008dd5 | — |
| entity.name.tag, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html | #ea5552 | italic |
| entity.other.attribute-name, entity.name.attribute | #EA9462 | italic |
| comment.block.documentation.html | #00000069 | — |
| meta.tag.inline.any.html | #FF6666 | — |
| meta.attribute.for.html, meta.attribute.name.html | — | italic |
| source.php, text.html.php source, text.html.php meta.tag.php, text.html.php meta.tag.php entity.tag.php, text.html.php meta.tag.php entity.tag.php script.php, text.html.php meta.tag.php entity.tag.php script.php source | #ea5552 | — |
| variable.language.php | #EA9462 | — |
| support.function.php | #008dd5 | — |
| variable.other.php | #102542 | — |
| variable.other.php punctuation.dollar.php, variable.other.php punctuation.variable.php | #EA9462 | — |
| string.quoted.single.php, string.quoted.double.php | #ea5552 | — |
| comment.line.double-slash.php | #00000069 | — |
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}!`;
}