xcode-presentation-dark
Publisher: Nagy BotondThemes in package: 1
Xcode's "Presentation Dark" port to VSCode
Xcode's "Presentation Dark" port to 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 |
|---|---|---|
| keyword.operator.type.annotation | #FF3000 | — |
| support.type.primitive | #D3D3D3D3 | — |
| variable.language.this.ts | #F39C13 | — |
| entity.name.type.trait | #EE5C43 | — |
| comment, markup.quote.markdown, meta.diff, meta.diff.header | #5F6167 | — |
| meta.template.expression.js, constant.name.attribute.tag.jade, punctuation.definition.metadata.markdown, punctuation.definition.string.end.markdown, punctuation.definition.string.begin.markdown | #D5CED9 | — |
| variable, support.variable, entity.name.tag.yaml, constant.character.entity.html, source.css entity.name.tag.reference, beginning.punctuation.definition.list.markdown, source.css entity.other.attribute-name.parent-selector, meta.structure.dictionary.json support.type.property-name | #00E8C6 | — |
| markup.bold, constant.numeric, meta.group.regexp, constant.other.php, support.constant.ext.php, constant.other.class.php, support.constant.core.php, fenced_code.block.language, constant.other.caps.python, entity.other.attribute-name, support.type.exception.python, source.css keyword.other.unit, variable.other.object.property.js.jsx, variable.other.object.js | #F39C12 | — |
| markup.list, text.xml string, entity.name.type, support.function, entity.other.attribute-name, meta.at-rule.extend, entity.name.function, entity.other.keyframe-offset.css, text.html.markdown string.quoted, meta.function-call.generic.python, meta.at-rule.extend support.constant, entity.other.attribute-name.class.jade, source.css entity.other.attribute-name, text.xml punctuation.definition.string | #FFE66D | — |
| markup.heading, variable.language.this.js, variable.language.special.self.python | #FF00AA | — |
| punctuation.definition.interpolation, punctuation.section.embedded.end.php, punctuation.section.embedded.end.ruby, punctuation.section.embedded.begin.php, punctuation.section.embedded.begin.ruby, punctuation.definition.template-expression, entity.name.tag | #F92672 | — |
| storage, keyword, meta.link, meta.image, markup.italic, source.js support.type | #C74DED | — |
| string.regexp, markup.changed | #7CB7FF | — |
| constant, support.class, keyword.operator, support.constant, text.html.markdown string, source.css support.function, source.php support.function, support.function.magic.python, entity.other.attribute-name.id, markup.deleted | #EE5D43 | — |
| string, text.html.php string, markup.inline.raw, markup.inserted, punctuation.definition.string, punctuation.definition.markdown, text.html meta.embedded source.js string, text.html.php punctuation.definition.string, text.html meta.embedded source.js punctuation.definition.string, text.html punctuation.definition.string, text.html string | #96E072 | — |
| entity.other.inherited-class | #BC80FF | underline |
| keyword.operator.type.annotation | #FF3000 | — |
| support.type.primitive | #D3D3D3D3 | — |
| variable.language.this.ts | #F39C13 | — |
| token.info-token | #6796E6 | — |
| token.warn-token | #CD9731 | — |
| token.error-token | #F44747 | — |
| token.debug-token | #B267E6 | — |
| keyword.operator.type.annotation | #FF3000 | — |
| support.type.primitive | #D3D3D3D3 | — |
| variable.language.this.ts | #F39C13 | — |
| entity.name.type.trait | #EE5C43 | — |
| keyword.operator.type.annotation | #FF3000 | — |
| support.type.primitive | #D3D3D3D3 | — |
| variable.language.this.ts | #F39C13 | — |
| entity.name.type.trait | #EE5C43 | — |
| variable.language.special.self.python | #F7439D | — |
| keyword, constant.language, storage.type.class, storage.type.function, variable.language.special.self, variable.parameter.function.language.special.self, variable.parameter.function.language.special.cls, keyword.operator.logical, storage.type.rust | #F7439D | — |
| entity.name.type.class | #75E1FF | — |
| variable.parameter.function-call, entity.name.function.decorator.python, entity.name.type.result | #DABAFF | — |
| punctuation.definition.inheritance, keyword.operator.bitwise.python, punctuation.separator.colon, punctuation.section.function.begin, punctuation.section.function.end, punctuation.definition.parameters.begin, punctuation.definition.parameters.end, punctuation.separator.annotation.result, punctuation.separator.annotation, punctuation.separator.period, punctuation.separator.arguments, punctuation.section.class.begin, keyword.operator.assignment, punctuation.separator.dict, punctuation.separator.parameters, keyword.operator.arithmetic, punctuation.separator.element, keyword.operator.unpacking.arguments, keyword.operator.unpacking.parameter, punctuation.section.function.lambda.begin, keyword.operator.comparison, punctuation.separator.slice, punctuation.definition.list, keyword.operator.access.dot, keyword.operator.namespace, keyword.operator.arrow.skinny, keyword.operator.arrow.fat, keyword.operator.key-value | #FFFFFF | — |
| meta.function-call.generic.python, meta.indexed-name, support.function.builtin.python, support.type.python, entity.name.function | #BC80FF | — |
| string, punctuation.definition.string | #FF5F64 | — |
| meta.item-access.arguments.python | #B6FDEF | — |
| entity.name.function.python, entity.name.type.rust | #3EBEE0 | — |
| meta.function-call.arguments.python, source.python | #63D7C0 | — |
| constant.numeric | #FFE97F | — |
| constant.other.caps | #EE5D43 | — |
| support.type.exception.python | #F39C12 | — |
| punctuation.definition.arguments, punctuation.definition.dict, constant.character.format.placeholder.other | #FFFFFF | — |
| support.type.exception.python | #F39C13 | — |
| support.type.primitive | #D3D3D3D3 | — |
| variable.language.this.ts | #F39C13 | — |
| punctuation.definition.arguments, punctuation.definition.dict, constant.character.format.placeholder.other | #FFFFFF | — |
| support.type.exception.python | #F39C13 | — |
| support.type.primitive | #D3D3D3D3 | — |
| variable.language.this.ts | #F39C13 | — |
| punctuation.definition.string.begin.json, punctuation.definition.string.end.json, punctuation.definition.string.begin.python, punctuation.definition.string.end.python | #FF5F64 | — |
| constant.character.format.placeholder.other, punctuation.definition.arguments, punctuation.definition.dict, punctuation.parenthesis.begin, punctuation.parenthesis.end | #FFFFFF | — |
| support.type.exception.python | #F39C13 | — |
| support.type.primitive | #D3D3D3D3 | — |
| variable.language.this.ts | #F39C13 | — |
| punctuation.definition.string.begin.json, punctuation.definition.string.end.json, punctuation.definition.string.begin.python, punctuation.definition.string.end.python | #FF5F64 | — |
| support.type.property-name.json.comments, constant.character.format.placeholder.other, punctuation.definition.arguments, punctuation.definition.dict, punctuation.parenthesis.begin, punctuation.parenthesis.end | #FFFFFF | — |
| support.type.exception.python | #F39C13 | — |
| support.type.primitive | #D3D3D3D3 | — |
| variable.language.this.ts | #F39C13 | — |
| meta.class.inheritance.python, entity.other.inherited-class.python | #DABBFF | — |
| punctuation.definition.string.begin.json, punctuation.definition.string.end.json, punctuation.definition.string.begin.python, punctuation.definition.string.end.python | #FF5F64 | — |
| meta.function.parameters.python, support.type.property-name.json.comments, constant.character.format.placeholder.other, punctuation.definition.arguments, punctuation.definition.dict, punctuation.parenthesis.begin, punctuation.parenthesis.end | #FFFFFF | — |
| support.type.exception.python | #F39C13 | — |
| support.type.primitive | #D3D3D3D3 | — |
| variable.language.this.ts | #F39C13 | — |
| meta.class.inheritance.python, entity.other.inherited-class.python | #DABBFF | — |
| punctuation.definition.string.begin.json, punctuation.definition.string.end.json, punctuation.definition.string.begin.python, punctuation.definition.string.end.python | #FF5F64 | — |
| meta.function.parameters.python, support.type.property-name.json.comments, constant.character.format.placeholder.other, punctuation.definition.arguments, punctuation.definition.dict, punctuation.parenthesis.begin, punctuation.parenthesis.end | #FFFFFF | — |
| support.type.exception.python | #F39C13 | — |
| support.type.primitive | #D3D3D3D3 | — |
| variable.language.this.ts | #F39C13 | — |
| meta.class.inheritance.python, entity.other.inherited-class.python | #DABBFF | — |
| punctuation.definition.string.begin.json, punctuation.definition.string.end.json, punctuation.definition.string.begin.python, punctuation.definition.string.end.python, keyword.operator.arithmetic.python | #FF5F64 | — |
| meta.function.parameters.python, support.type.property-name.json.comments, constant.character.format.placeholder.other, punctuation.definition.arguments, punctuation.definition.dict, punctuation.parenthesis.begin, punctuation.parenthesis.end | #FFFFFF | — |
| support.type.primitive | #D3D3D3D3 | — |
| meta.class.inheritance.python, entity.other.inherited-class.python | #DABBFF | — |
| keyword.operator.unpacking.arguments.python, keyword.operator.unpacking.parameter.python, variable.language.this.ts | #F7439D | — |
| punctuation.definition.string.begin.json, punctuation.definition.string.end.json, punctuation.definition.string.begin.python, punctuation.definition.string.end.python, keyword.operator.arithmetic.python | #FF5F64 | — |
| meta.function.parameters.python, support.type.property-name.json.comments, constant.character.format.placeholder.other, punctuation.definition.arguments, punctuation.definition.dict, punctuation.parenthesis.begin, punctuation.parenthesis.end | #FFFFFF | — |
| support.type.primitive | #D3D3D3D3 | — |
| meta.class.inheritance.python, entity.other.inherited-class.python | #DABBFF | — |
| keyword.operator.unpacking.arguments.python, keyword.operator.unpacking.parameter.python, variable.language.this.ts | #F7439D | — |
| punctuation.definition.string.begin.json, punctuation.definition.string.end.json, punctuation.definition.string.begin.python, punctuation.definition.string.end.python, keyword.operator.arithmetic.python, string.quoted.double.html, punctuation.definition.string.end.html, punctuation.definition.string.begin.html, string.quoted.single.ts, punctuation.definition.string.begin.ts, punctuation.definition.string.end.ts | #FF5F64 | — |
| meta.brace, meta.function.parameters.python, support.type.property-name.json.comments, constant.character.format.placeholder.other, punctuation.definition.arguments, punctuation.definition.dict, punctuation.parenthesis.begin, punctuation.accessor, punctuation.parenthesis.end, keyword.operator.type.annotation.ts, punctuation.accessor.ts, punctuation.definition.block.ts, entity.other.attribute-name.html, variable.other.readwrite.alias.ts, keyword.operator.comparison.ts, keyword.operator.logical.ts | #FFFFFF | — |
| support.type.primitive | #D3D3D3D3 | — |
| meta.class.inheritance.python, entity.other.inherited-class.python, entity.other.ng-binding-name | #DABBFF | — |
| keyword.operator.unpacking.arguments.python, keyword.operator.unpacking.parameter.python, variable.language.this.ts, punctuation.decorator.ts, keyword.operator.new.ts, keyword.operator.expression.of.ts, keyword.operator.optional.ts, entity.other.ng-binding-name.template.html, keyword.operator.definiteassignment.ts, support.type.builtin.ts, entity.name.tag.html, meta.type.parameters.ts | #F7439D | — |
| entity.name.type.interface.ts, support.type.primitive.ts | #75E1FF | — |
| variable.other.readwrite.ts | #3EBDE0 | bold |
| punctuation.definition.string.begin.json, punctuation.definition.string.end.json, punctuation.definition.string.begin.python, punctuation.definition.string.end.python, keyword.operator.arithmetic.python, string.quoted.double.html, punctuation.definition.string.end.html, punctuation.definition.string.begin.html, string.quoted.single.ts, punctuation.definition.string.begin.ts, punctuation.definition.string.end.ts | #FF5F64 | — |
| meta.brace, meta.function.parameters.python, support.type.property-name.json.comments, constant.character.format.placeholder.other, punctuation.definition.arguments, punctuation.definition.dict, punctuation.parenthesis.begin, punctuation.accessor, punctuation.parenthesis.end, keyword.operator.type.annotation.ts, punctuation.accessor.ts, punctuation.definition.block.ts, entity.other.attribute-name.html, variable.other.readwrite.alias.ts, keyword.operator.comparison.ts | #FFFFFF | — |
| support.type.primitive | #D3D3D3D3 | — |
| meta.class.inheritance.python, entity.other.inherited-class.python, entity.other.ng-binding-name | #DABBFF | — |
| keyword.operator.unpacking.arguments.python, keyword.operator.unpacking.parameter.python, variable.language.this.ts, punctuation.decorator.ts, keyword.operator.new.ts, keyword.operator.expression.of.ts, keyword.operator.optional.ts, entity.other.ng-binding-name.template.html, keyword.operator.definiteassignment.ts, support.type.builtin.ts, entity.name.tag.html, meta.type.parameters.ts, storage.type.ts, storage.modifier.ts, keyword.operator.logical.ts, keyword.operator.expression.keyof.ts | #F7439D | — |
| entity.name.type.interface.ts, support.type.primitive.ts, entity.name.type.enum.prisma, entity.name.type.model.prisma, entity.name.type.config.prisma | #75E1FF | — |
| variable.other.readwrite.ts | #3EBDE0 | bold |
| support.function.functional.prisma | #C74DED | — |
| punctuation.definition.string.begin.json, punctuation.definition.string.end.json, punctuation.definition.string.begin.python, punctuation.definition.string.end.python, keyword.operator.arithmetic.python, string.quoted.double.html, punctuation.definition.string.end.html, punctuation.definition.string.begin.html, string.quoted.single.ts, punctuation.definition.string.begin.ts, punctuation.definition.string.end.ts, keyword.operator.dereference.rust, keyword.operator.borrow.and.rust | #FF5F64 | — |
| meta.brace, meta.function.parameters.python, support.type.property-name.json.comments, constant.character.format.placeholder.other, punctuation.definition.arguments, punctuation.definition.dict, punctuation.parenthesis.begin, punctuation.accessor, punctuation.parenthesis.end, keyword.operator.type.annotation.ts, punctuation.accessor.ts, punctuation.definition.block.ts, entity.other.attribute-name.html, variable.other.readwrite.alias.ts, keyword.operator.comparison.ts, keyword.operator.access.dot.rust, variable.other.rust | #FFFFFF | — |
| support.type.primitive | #D3D3D3D3 | — |
| meta.class.inheritance.python, entity.other.inherited-class.python, entity.other.ng-binding-name | #DABBFF | — |
| keyword.operator.unpacking.arguments.python, keyword.operator.unpacking.parameter.python, variable.language.this.ts, punctuation.decorator.ts, keyword.operator.new.ts, keyword.operator.expression.of.ts, keyword.operator.optional.ts, entity.other.ng-binding-name.template.html, keyword.operator.definiteassignment.ts, support.type.builtin.ts, entity.name.tag.html, meta.type.parameters.ts, storage.type.ts, storage.modifier.ts, keyword.operator.logical.ts, keyword.operator.expression.keyof.ts | #F7439D | — |
| entity.name.type.interface.ts, support.type.primitive.ts, entity.name.type.enum.prisma, entity.name.type.model.prisma, entity.name.type.config.prisma | #75E1FF | — |
| variable.other.readwrite.ts | #3EBDE0 | bold |
| support.function.functional.prisma | #C74DED | — |
| punctuation.definition.comment.python, comment.line.number-sign.python, comment.typehint.directive.notation.python, comment.typehint.ignore.notation.python | #D3D3D3D3 | — |
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}!`;
}