Xcode Light Theme
Publisher: yugosdexThemes in package: 1
A faithful recreation of Xcode's default light theme for Visual Studio Code with Xcode-style project navigator layout and enhanced syntax highlighting
A faithful recreation of Xcode's default light theme for Visual Studio Code with Xcode-style project navigator layout and enhanced 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, punctuation.definition.comment | #536579 | italic |
| variable, string constant.other.placeholder | #24292e | — |
| constant.other.color | #24292e | — |
| invalid, invalid.illegal | #f97583 | — |
| keyword, storage.type, storage.modifier, keyword.control, keyword.operator, keyword.other.import, keyword.other.package | #ad3da4 | — |
| keyword.control, constant.other.color, punctuation, meta.tag, punctuation.definition.tag, punctuation.separator.inheritance.php, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.section.embedded, keyword.other.template, keyword.other.substitution | #d73a49 | — |
| entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter | #22863a | — |
| entity.name.function, meta.function-call, variable.function, support.function, keyword.other.special-method, entity.name.function.member, support.function.builtin | #4b21b0 | — |
| meta.block variable.other | #24292e | — |
| support.other.variable, string.other.link | #e36209 | — |
| constant.numeric, constant.language, support.constant, constant.character, constant.escape, variable.parameter, keyword.other.unit, keyword.other, constant.numeric.integer, constant.numeric.float, constant.numeric.hex, constant.language.boolean, constant.language.null | #272ad8 | — |
| string, string.quoted, string.quoted.single, string.quoted.double, string.template, constant.other.symbol, constant.other.key, entity.other.inherited-class, markup.heading, markup.inserted.git_gutter, meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js | #d12f1b | — |
| entity.name, entity.name.class, entity.name.type, entity.name.type.class, support.type, support.class, support.other.namespace.use.php, meta.use.php, support.other.namespace.php, markup.changed.git_gutter, support.type.sys-types, entity.name.namespace, entity.other.inherited-class | #703daa | — |
| support.type | #005cc5 | — |
| source.css support.type.property-name, source.sass support.type.property-name, source.scss support.type.property-name, source.less support.type.property-name, source.stylus support.type.property-name, source.postcss support.type.property-name | #005cc5 | — |
| entity.name.module.js, variable.import.parameter.js, variable.other.class.js | #24292e | — |
| variable.language | #6f42c1 | italic |
| entity.name.method.js | #6f42c1 | italic |
| meta.class-method.js entity.name.function.js, variable.function.constructor | #6f42c1 | — |
| entity.other.attribute-name | #6f42c1 | — |
| text.html.basic entity.other.attribute-name.html, text.html.basic entity.other.attribute-name | #6f42c1 | italic |
| entity.other.attribute-name.class | #6f42c1 | — |
| source.sass keyword.control | #6f42c1 | — |
| markup.inserted | #22863a | — |
| markup.deleted | #b31d28 | — |
| markup.changed | #e36209 | — |
| string.regexp | #032f62 | — |
| constant.character.escape | #032f62 | — |
| *url*, *link*, *uri* | — | underline |
| tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #6f42c1 | italic |
| source.js constant.other.object.key.js string.unquoted.label.js | #24292e | italic |
| source.json meta.structure.dictionary.json support.type.property-name.json | #6f42c1 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #005cc5 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #e36209 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #d73a49 | — |
| text.html.markdown, punctuation.definition.list_item.markdown | #24292e | — |
| text.html.markdown markup.inline.raw.markdown | #032f62 | — |
| text.html.markdown markup.inline.raw.markdown punctuation.definition.raw.markdown | #6a737d | — |
| markdown.heading, markup.heading | markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown | #005cc5 | — |
| markup.italic | #24292e | italic |
| markup.bold, markup.bold string | #24292e | bold |
| markup.bold markup.italic, markup.italic markup.bold, markup.quote markup.bold, markup.bold markup.italic string, markup.italic markup.bold string, markup.quote markup.bold string | #24292e | bold |
| markup.underline | #d73a49 | underline |
| markup.quote punctuation.definition.blockquote.markdown | #6a737d | — |
| markup.quote | — | italic |
| string.other.link.title.markdown | #005cc5 | — |
| string.other.link.description.title.markdown | #6f42c1 | — |
| constant.other.reference.link.markdown | #032f62 | — |
| markup.raw.block | #6f42c1 | — |
| markup.raw.block.fenced.markdown | #24292e | — |
| punctuation.definition.fenced.markdown | #24292e | — |
| markup.raw.block.fenced.markdown, variable.language.fenced.markdown, punctuation.section.class.end | #032f62 | — |
| variable.language.fenced.markdown | #6a737d | — |
| meta.separator | #6a737d | bold |
| markup.table | #24292e | — |
| source.swift storage.type.attribute, source.swift keyword.other.declaration-specifier | #ad3da4 | — |
| source.swift support.type, source.swift entity.name.type | #703daa | — |
| source.objc meta.preprocessor, source.objcpp meta.preprocessor | #ad3da4 | — |
| source.objc entity.name.type.class, source.objcpp entity.name.type.class | #703daa | — |
| source.ts entity.name.type, source.tsx entity.name.type, source.js entity.name.type, source.jsx entity.name.type | #703daa | — |
| source.python entity.name.function.decorator, source.python meta.function.decorator | #ad3da4 | — |
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}!`;
}