Compact VS Code
Publisher: Arka BanerjeeThemes in package: 2
makes your vs code setup very minimalistic and compact and the themes are inspired from some of the most loved characters
makes your vs code setup very minimalistic and compact and the themes are inspired from some of the most loved characters
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 | #5C6A7D | italic |
| string, punctuation.definition.string | #8BC34A | — |
| constant.numeric, constant.language.boolean, constant.language | #FFCA28 | — |
| keyword, storage.type, storage.modifier, keyword.control | #FF5252 | — |
| entity.name.function, support.function, meta.function-call, variable.function, entity.name.method | #00BCD4 | — |
| variable, variable.parameter, variable.declaration, variable.other | #ABB2BF | — |
| keyword.operator | #78909C | — |
| entity.name.type, entity.name.class, support.type, support.class | #5DADE2 | — |
| support.property, meta.object-literal.key | #ABB2BF | — |
| punctuation, meta.brace | #ABB2BF | — |
| entity.name.tag, punctuation.definition.tag | #5DADE2 | — |
| entity.other.attribute-name | #FFCA28 | italic |
| markup.heading, markup.heading entity.name | #00BCD4 | bold |
| markup.underline.link, string.other.link | #5DADE2 | — |
| markup.italic | #ABB2BF | italic |
| markup.bold | #ABB2BF | bold |
| support.type.property-name.json | #FFCA28 | — |
| string.quoted.double.json | #8BC34A | — |
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}!`;
}