Dark Modern Lavender
Publisher: Elytra17Themes in package: 1
A customized variant of the Dark Modern theme with lavender/blurple accents.
A customized variant of the Dark Modern theme with lavender/blurple accents.
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 |
|---|---|---|
| string.quoted.double.json, string.quoted.single.json | #CBA6F7 | — |
| punctuation.definition.dictionary.begin.json, punctuation.definition.dictionary.end.json, punctuation.separator.dictionary.key-value.json, punctuation.separator.dictionary.pair.json | #A6BDF7 | — |
| support.type.property-name.json | #9AD4F7 | — |
| constant.numeric.json, constant.language.json | #89DCEB | — |
| constant.language.boolean.json, constant.language.null.json | #A6BDF7 | — |
| storage.type.primitive.cpp, storage.type.built-in.primitive.cpp | #A6BDF7 | — |
| keyword.type.primitive.cpp | #A6BDF7 | — |
| punctuation.section.block.begin.bracket.curly.function.definition.cpp, punctuation.section.block.end.bracket.curly.function.definition.cpp, punctuation.section.block.begin.bracket.curly.cpp, punctuation.section.block.end.bracket.curly.cpp, punctuation.section.parameters.begin.bracket.round.cpp, punctuation.section.parameters.end.bracket.round.cpp, punctuation.section.parens.begin.bracket.round.cpp, punctuation.section.parens.end.bracket.round.cpp | #A6BDF7 | — |
| string.quoted.other.lt-gt.include.cpp | #CBA6F7 | — |
| comment.line.double-slash.cpp | #96b1d6 | — |
| comment.block.cpp | #96b1d6 | — |
| entity.name.type.cpp | #9AD4F7 | — |
| keyword.control.if.cpp | #A6BDF7 | — |
| keyword.control.else.cpp | #A6BDF7 | — |
| keyword.control.while.cpp | #A6BDF7 | — |
| constant.numeric.cpp | #bfd0fd | — |
| constant.numeric.decimal.cpp | #bfd0fd | — |
| keyword.control.directive.include.cpp | #bfd0fd | — |
| keyword.control.cs | #A6BDF7 | — |
| storage.type.cs | #9AD4F7 | — |
| entity.name.type.class.cs | #9AD4F7 | — |
| variable.parameter.cs | #CBA6F7 | — |
| string.quoted.double.cs | #CBA6F7 | — |
| comment.line.double-slash.cs | #96b1d6 | — |
| constant.numeric.cs | #89DCEB | — |
| entity.name.function.cs | #B4E0FF | — |
| punctuation.terminator.statement.cs | #ffffff | — |
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}!`;
}