Cupertino Studio
Publisher: Yasin KaratekeThemes in package: 6
Apple-inspired color themes for VS Code — Dark, Light, and Midnight. Seamless UI, zero eye strain, Xcode-grade syntax highlighting.
Apple-inspired color themes for VS Code — Dark, Light, and Midnight. Seamless UI, zero eye strain, Xcode-grade syntax highlighting.
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.line, comment.block, punctuation.definition.comment | #6C7986 | — |
| comment.line.documentation, comment.block.documentation, string.quoted.docstring | #7B8D9E | — |
| string, string.quoted.single, string.quoted.double, string.quoted.triple, string.template, string.unquoted, punctuation.definition.string | #FF9F0A | — |
| string.interpolated, constant.character.escape, punctuation.definition.template-expression | #FFD60A | — |
| constant.numeric, constant.numeric.integer, constant.numeric.float, constant.numeric.hex, constant.numeric.octal, constant.numeric.binary | #FF9F0A | — |
| constant.language, constant.language.boolean, constant.language.null, constant.language.undefined, constant.other | #FF9F0A | |
| keyword.control, keyword.control.conditional, keyword.control.flow, keyword.control.import, keyword.control.from, keyword.control.return, keyword.control.loop, keyword.control.try, keyword.control.exception, keyword.control.await, keyword.control.yield, keyword.operator.logical | #BF5AF2 | — |
| storage.type, storage.modifier, keyword.operator.new, keyword.declaration, keyword.other.declaration | #FF375F | — |
| entity.name.function, entity.name.method, support.function, support.function.construct, meta.function-call, meta.method-call, variable.function | #64D2FF | — |
| entity.name.type, entity.name.type.class, entity.name.type.enum, entity.name.type.struct, entity.name.type.interface, entity.other.inherited-class, support.class, support.type, entity.name.class | #30D158 | — |
| variable, variable.other, variable.assignment, variable.other.member | #FFFFFF | — |
| variable.parameter, variable.parameter.function | #FFFFFFCC | |
| variable.other.property, variable.other.object.property, meta.property | #64D2FF | — |
| variable.other.constant, variable.other.enummember | #FF9F0A | — |
| punctuation, punctuation.terminator, punctuation.separator, meta.brace, punctuation.definition | #FFFFFF66 | — |
| keyword.operator, keyword.operator.arithmetic, keyword.operator.comparison, keyword.operator.assignment, keyword.operator.type | #FFFFFF99 | — |
| entity.name.tag, meta.tag, entity.name.tag.tsx, entity.name.tag.jsx | #64D2FF | — |
| entity.other.attribute-name, entity.other.attribute-name.html, entity.other.attribute-name.jsx, entity.other.attribute-name.tsx | #FF375F | — |
| support.type.property-name.css, support.type.property-name.scss, support.type.property-name.less, meta.property-name | #64D2FF | — |
| support.constant.property-value, meta.property-value, constant.numeric.css, constant.numeric.scss | #FF9F0A | — |
| entity.other.attribute-name.class, entity.other.attribute-name.id, entity.name.tag.css | #64D2FF | — |
| invalid, invalid.illegal | #FF453A | |
| invalid.deprecated | #FF9F0A | strikethrough |
| markup.heading, entity.name.section, markup.heading.setext | #0A84FF | bold |
| markup.bold | #FFFFFF | bold |
| markup.italic | #FFFFFF | — |
| markup.raw, markup.fenced_code, markup.inline.raw | #FF9F0A | — |
| markup.underline.link, string.other.link, meta.link | #0A84FF | underline |
| support.type.property-name.json, string.quoted.double.json, meta.structure.dictionary.key.json > string.quoted.double.json | #64D2FF | — |
| entity.name.tag.yaml | #64D2FF | — |
| string.regexp, constant.other.character-class.regexp, keyword.operator.quantifier.regexp | #FFD60A | — |
| storage.type.swift, keyword.other.declaration-specifier.swift | #FF375F | — |
| keyword.control.flow.swift, keyword.control.branch.swift | #BF5AF2 | — |
| entity.name.type.swift, support.type.swift, entity.name.type.protocol.swift | #30D158 | — |
| keyword.other.attribute.swift, entity.other.attribute.swift, punctuation.definition.attribute.swift | #FF375F | |
| storage.type.ts, storage.type.type.ts, keyword.operator.type.annotation.ts | #FF375F | — |
| entity.name.type.interface.ts, entity.name.type.alias.ts, entity.name.type.enum.ts | #30D158 | — |
| meta.decorator, entity.name.function.decorator, punctuation.decorator | #FF375F | — |
| storage.type.dart, keyword.declaration.dart | #FF375F | — |
| support.class.dart, entity.name.type.dart | #30D158 | — |
| storage.type.function.python, storage.type.class.python, keyword.operator.logical.python | #FF375F | — |
| keyword.control.flow.python | #BF5AF2 | — |
| constant.language.python, constant.language.boolean.python | #FF9F0A | — |
| variable.language.special.self.python, variable.parameter.function.language.special.self.python, support.function.builtin.python | #BF5AF2 | |
| storage.type.go, keyword.go | #FF375F | — |
| storage.type.rust, keyword.control.rust | #FF375F | — |
| meta.attribute.rust, punctuation.definition.attribute.rust | #FF375F | — |
| storage.type.java, keyword.control.java, keyword.other.package.java | #FF375F | — |
| entity.name.type.class.java, entity.name.type.interface.java, entity.name.type.enum.java | #30D158 | — |
| meta.declaration.annotation, storage.type.annotation, punctuation.definition.annotation | #FF375F | — |
| storage.type.kotlin, keyword.control.kotlin, keyword.other.kotlin | #FF375F | — |
| entity.name.type.class.kotlin, entity.name.type.interface.kotlin, entity.name.type.object.kotlin | #30D158 | — |
| meta.annotation.kotlin, punctuation.definition.annotation.kotlin | #FF375F | — |
| keyword.control.ruby, storage.type.ruby, keyword.control.def.ruby, keyword.control.class.ruby | #FF375F | — |
| constant.language.symbol.ruby, constant.other.symbol.ruby | #FF9F0A | — |
| variable.other.readwrite.instance.ruby | #64D2FF | — |
| storage.type.php, keyword.control.php, keyword.other.namespace.php | #FF375F | — |
| entity.name.function.php, support.function.construct.php | #64D2FF | — |
| variable.other.php, variable.other.property.php | #FFFFFF | — |
| storage.type.c, storage.type.cpp, keyword.control.c, keyword.control.cpp | #FF375F | — |
| entity.name.function.c, entity.name.function.cpp | #64D2FF | — |
| meta.preprocessor.c, meta.preprocessor.cpp, keyword.control.directive.c, keyword.control.directive.cpp | #FF375F | — |
| keyword.control.shell, storage.type.shell | #FF375F | — |
| support.function.builtin.shell | #64D2FF | — |
| keyword.other.DML.sql, keyword.other.DDL.sql, keyword.other.sql, keyword.operator.star.sql | #BF5AF2 | — |
| support.function.aggregate.sql, support.function.scalar.sql, support.function.window.sql | #64D2FF | — |
| storage.type.sql | #30D158 | — |
| keyword.control.lua, storage.type.lua | #FF375F | — |
| entity.name.function.lua | #64D2FF | — |
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}!`;
}