Cloud City
Publisher: Christian NathsThemes in package: 1
A neutral, low-contrast, light colour theme for VSCode
A neutral, low-contrast, light colour theme for VSCode
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 |
|---|---|---|
| meta, keyword.control.import, keyword.control.from, keyword.control.export, keyword.control.default, support.type.property-name.css, support.function.misc.css, meta.function-call variable, constant.language.symbol.hashkey.ruby | #90a4ae | — |
| #eceff1 | — | |
| comment, keyword.operator, punctuation, meta.brace | #ccd7de | italic |
| meta.import variable, meta.export variable, meta.export.default, meta.definition.function, meta.object.member, entity.name.function, entity.name.type.class, variable.other.constant, source.ruby entity.other.inherited-class, support.constant.property-value, constant.other.color, meta.tag.attributes variable, variable.other.object, entity.name.function.ruby, source.ruby, entity.name.tag.dockerfile | #031530 | — |
| string | #31c89d | — |
| storage.type, meta.function, source.ruby keyword.other.special-method, entity.other.attribute-name.id.css, entity.other.attribute-name.class.css, keyword.control.class.ruby, keyword.control.ruby, constant.language.json, entity.name.section.dockerfile | #896ac3 | — |
| keyword.operator.expression, support.class.component, entity.name.tag, source.ruby entity.name.type.class, support.type.property-name.json, meta.entry.toml | #dc3568 | — |
| meta.function-call, meta.function-call entity.name.function, keyword.control, support.function, constant.language.symbol.ruby, keyword.other.special-method, meta.table.toml | #1dafd9 | — |
| keyword.todo, support.variable.dom, support.class.console, support.function.console | #fdbc40 | — |
| constant.numeric, support.constant.math | #2b3291 | — |
| #f0652a | — | |
| entity.name.tag.dockerfile | — | italic |
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}!`;
}