Xcode Dark (WebStorm port)
Publisher: IvanMarchenkoThemes in package: 1
Xcode-Dark color theme ported from the WebStorm/JetBrains 'Xcode-Dark' plugin to VS Code and Cursor.
Xcode-Dark color theme ported from the WebStorm/JetBrains 'Xcode-Dark' plugin to VS Code and Cursor.
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 | #7f8c99 | italic |
| string, string.quoted, punctuation.definition.string | #ff806c | — |
| constant.character.escape | #fcfcfc | — |
| invalid.illegal.string | #fd9a86 | — |
| constant.numeric | #d7c781 | — |
| constant.language, constant.other, support.constant | #ffa245 | italic |
| keyword, keyword.control, keyword.operator.new, keyword.operator.expression, storage.type, storage.modifier | #f97bb0 | bold |
| keyword.operator, punctuation.separator, punctuation.terminator | #dfdfe0 | — |
| variable, variable.other, variable.other.readwrite | #fcfcfc | — |
| variable.parameter, variable.language.this | #fcfcfc | — |
| variable.other.property, variable.other.object.property, meta.property-name, support.type.property-name, variable.object.property | #49b0ce | — |
| variable.other.constant, variable.other.enummember | #49b0ce | italic |
| variable.language, variable.other.global, support.variable | #b37eee | — |
| support.constant.builtin, support.variable.dom | #dbb8ff | — |
| entity.name.function, meta.function-call entity.name.function, support.function, variable.function | #75c2b3 | — |
| meta.method.declaration entity.name.function, meta.definition.method entity.name.function, variable.function.member | #75c2b3 | — |
| meta.method.static entity.name.function | #75c2b3 | italic |
| entity.name.class, entity.name.type.class, support.class | #82e6ff | — |
| entity.other.inherited-class, entity.name.type, support.type, storage.type.class | #49b0ce | — |
| entity.name.type.interface, entity.name.interface | #65dfff | — |
| entity.name.namespace, entity.name.module, entity.name.type.module, support.module | #ffbf67 | — |
| meta.decorator, tag.decorator, punctuation.decorator, entity.name.function.decorator | #f19a9a | — |
| storage.type.annotation, meta.annotation, punctuation.definition.annotation | #ff78b2 | — |
| entity.name.label | #75c2b3 | — |
| entity.name.tag, meta.tag, punctuation.definition.tag | #fd7cb2 | — |
| entity.other.attribute-name | #ffa245 | — |
| meta.attribute string, string.quoted.double.html, string.quoted.single.html | #fd8273 | — |
| support.type.property-name.css, meta.property-name.css | #82e6ff | — |
| support.constant.property-value.css, meta.property-value.css | #ff806c | — |
| keyword.other.unit.css, keyword.control.at-rule.css | #ffa245 | bold |
| support.type.property-name.json, string.quoted.double.json support.type.property-name.json | #82e6ff | — |
| markup.heading, entity.name.section.markdown | #f97bb0 | bold |
| markup.bold | #dfdfe0 | bold |
| markup.italic | #dfdfe0 | italic |
| markup.inline.raw, markup.fenced_code | #75c2b3 | — |
| markup.underline.link, string.other.link | #428EE1 | — |
| string.regexp | #ff806c | — |
| invalid, invalid.illegal | #FC545B | bold |
| invalid.deprecated | #8d8e95 | italic |
| variable.language.self, variable.language.this | #b37eee | italic |
| variable.parameter.function.language.special.self.python | #b37eee | 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}!`;
}