Cupertino for VSCode
Publisher: JustEthanCodesThemes in package: 6
A SwiftUI-inspired Cupertino theme for Visual Studio Code with soft light and dark variants.
A SwiftUI-inspired Cupertino theme for Visual Studio Code with soft light and dark 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 | #8F8F94 | italic |
| keyword, storage, keyword.control, keyword.operator.new | #6155F5 | — |
| keyword.operator, punctuation.accessor, punctuation.separator | #0088FF | — |
| entity.name.type, entity.name.class, support.type, support.class | #0088FF | — |
| entity.name.function, meta.function-call, support.function | #0088FF | — |
| variable, meta.definition.variable.name, support.variable | #D9DEE8 | — |
| constant, variable.other.constant, variable.other.enummember, support.constant | #AC7F5E | — |
| string, punctuation.definition.string | #33C758 | — |
| constant.character.escape, constant.other.placeholder | #FF8D28 | — |
| constant.numeric, constant.language.boolean, constant.language.null | #FF8D28 | — |
| entity.name.decorator, meta.decorator, storage.type.annotation | #0088FF | — |
| entity.name.tag, entity.other.attribute-name, markup.heading | #0088FF | — |
| markup.bold, markup.italic | #6155F5 | — |
| support.type.property-name.json, meta.structure.dictionary.key.json string.quoted.double.json, support.type.property-name.toml, meta.key.toml, meta.table.toml entity.name.section.group-title.toml | #0088FF | — |
| markup.underline.link.markdown, string.other.link.title.markdown, markup.inline.raw.markdown, markup.quote.markdown | #00C0E8 | — |
| support.type.property-name.css, meta.property-name.css, entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, entity.other.attribute-name.pseudo-class.css | #00C0E8 | — |
| meta.preprocessor, keyword.control.directive, punctuation.definition.directive | #FF8D28 | — |
| entity.name.function.macro.rust, support.function.macro.rust, storage.modifier.lifetime.rust | #00C0E8 | — |
| support.function.builtin.python, support.type.python, variable.language.special.self.python, variable.language.special.cls.python, support.function.builtin.lua, support.function.library.lua, support.variable.builtin.lua | #0088FF | — |
| markup.inserted, markup.deleted | #AC7F5E | — |
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}!`;
}