XCode Darker Theme
Publisher: gussoThemes in package: 1
XCode inspired color theme with darker background and vibrant syntax highlighting.
XCode inspired color theme with darker background and vibrant 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 |
|---|---|---|
| source | #c9d1d9 | — |
| comment, punctuation.definition.comment | #6c7986 | italic |
| comment.block.documentation storage.type, comment.block.documentation keyword, comment.block.documentation entity.name.type, keyword.other.documentation, storage.type.class.jsdoc, punctuation.definition.block.tag.jsdoc | #8b949e | italic |
| variable.other.jsdoc, comment.block.documentation variable | #a1aab5 | italic |
| keyword, keyword.control, keyword.control.conditional, keyword.control.loop, keyword.control.flow, keyword.control.trycatch, keyword.control.switch, keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.as, keyword.control.default, keyword.control.new, keyword.control.directive | #fc5fa3 | bold |
| keyword.operator.new, keyword.operator.delete, keyword.operator.expression, keyword.operator.instanceof, keyword.operator.typeof, keyword.operator.logical, keyword.operator.in, keyword.operator.of, keyword.operator.wordlike, keyword.operator.void, keyword.other.unit | #fc5fa3 | bold |
| keyword.operator, keyword.operator.arithmetic, keyword.operator.assignment, keyword.operator.comparison, keyword.operator.relational, keyword.operator.ternary, keyword.operator.bitwise, keyword.operator.increment, keyword.operator.decrement, keyword.operator.spread, keyword.operator.rest, keyword.operator.type.annotation, keyword.operator.optional, keyword.operator.key-value, punctuation.accessor, punctuation.separator.comma, punctuation.terminator.statement, punctuation.separator.key-value | #c9d1d9 | |
| storage.type, storage.type.class, storage.type.function, storage.type.interface, storage.type.enum, storage.type.struct, storage.type.property, storage.type.ts, storage.type.java, storage.type.cs, storage.type.local, storage.type.primitive, storage.type.built-in, storage.type.generic, keyword.other.class, keyword.other.var | #fc5fa3 | bold |
| storage.modifier, storage.modifier.async, storage.modifier.static, storage.modifier.extends, storage.modifier.implements, storage.modifier.import, storage.modifier.package, keyword.other.package | #fc5fa3 | bold |
| constant.language, constant.language.boolean, constant.language.boolean.true, constant.language.boolean.false, constant.language.null, constant.language.undefined, constant.language.nil, variable.language.this, variable.language.self, variable.language.super, variable.language.special | #fc5fa3 | bold |
| entity.name.type, entity.name.type.class, entity.name.type.struct, entity.name.type.interface, entity.name.type.enum, entity.name.type.type-parameter, entity.name.type.module, entity.name.type.namespace, entity.name.namespace, entity.other.inherited-class | #5dd8ff | |
| support.type, support.type.builtin, support.class, support.class.builtin, support.type.primitive, support.other.namespace | #5dd8ff | |
| meta.type.annotation entity.name.type, meta.type entity.name.type, entity.name.type.alias | #5dd8ff | |
| entity.name.function, entity.name.function.member, entity.name.method, meta.definition.method entity.name.function | #67b7a4 | |
| support.function, support.function.builtin, meta.function-call entity.name.function | #67b7a4 | |
| meta.function-call.arguments | #c9d1d9 | — |
| entity.name.function.constructor, meta.method-call entity.name.function | #67b7a4 | |
| string, string.quoted, string.quoted.single, string.quoted.double, string.quoted.triple, string.template, punctuation.definition.string | #fc6a5d | |
| punctuation.definition.template-expression, punctuation.section.embedded, meta.template.expression, string.interpolated | #fc5fa3 | |
| string.regexp, punctuation.definition.group.regexp, punctuation.definition.character-class.regexp, keyword.operator.quantifier.regexp, keyword.operator.or.regexp, keyword.control.anchor.regexp, keyword.other.back-reference.regexp, constant.other.character-class.regexp | #fc6a5d | |
| constant.character.escape | #d0bf68 | |
| constant.numeric, constant.numeric.integer, constant.numeric.float, constant.numeric.hex, constant.numeric.octal, constant.numeric.binary, constant.numeric.decimal | #d0bf68 | |
| constant.other, constant.other.caps, variable.other.constant, variable.other.enummember, constant.other.enum | #41a1c0 | |
| variable, variable.other, variable.other.readwrite, variable.other.object, variable.other.assignment | #c9d1d9 | |
| variable.parameter, variable.other.parameter, meta.parameter | #c9d1d9 | |
| variable.other.property, variable.other.object.property, support.variable, support.variable.property, meta.object-literal.key, meta.property.object | #c9d1d9 | |
| meta.attribute, meta.decorator, entity.name.function.decorator, punctuation.definition.annotation, storage.type.annotation, punctuation.decorator, meta.decorator punctuation, meta.decorator variable, entity.name.type.annotation | #d28e5d | |
| keyword.control.directive, meta.preprocessor, keyword.control.import, keyword.other.import, keyword.other.preprocessor, entity.name.function.preprocessor, punctuation.definition.preprocessor | #fd8f3f | bold |
| punctuation, meta.brace.round, meta.brace.square, meta.brace.curly, punctuation.definition.block, punctuation.definition.parameters, punctuation.definition.arguments, punctuation.section, punctuation.separator, punctuation.terminator | #c9d1d9 | |
| entity.name.tag, support.class.component | #fc5fa3 | bold |
| punctuation.definition.tag, punctuation.definition.tag.html, punctuation.definition.tag.begin, punctuation.definition.tag.end | #8b949e | |
| entity.other.attribute-name, entity.other.attribute-name.html | #5dd8ff | |
| meta.attribute string, string.quoted.double.html | #fc6a5d | |
| support.type.property-name.css, support.type.property-name.scss, meta.property-name.css, meta.property-name.scss | #5dd8ff | |
| support.constant.property-value.css, support.constant.property-value.scss, meta.property-value.css, meta.property-value.scss, support.constant.color.css, constant.other.color.rgb-value.hex.css | #c9d1d9 | |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #67b7a4 | |
| entity.name.tag.css, entity.name.tag.scss | #fc5fa3 | bold |
| keyword.control.at-rule.css, keyword.control.at-rule.scss, keyword.control.at-rule.media.css | #fc5fa3 | bold |
| keyword.other.unit.css, keyword.other.unit.scss | #d0bf68 | |
| variable.css, variable.scss, variable.argument.css, variable.other.scss | #41a1c0 | |
| heading.1.markdown entity.name, heading.2.markdown entity.name, heading.3.markdown entity.name, heading.4.markdown entity.name, heading.5.markdown entity.name, heading.6.markdown entity.name, markup.heading, markup.heading.setext, markup.heading.markdown, entity.name.section.markdown | #e95da0 | bold |
| markup.bold, punctuation.definition.bold.markdown | #c9d1d9 | bold |
| markup.italic, punctuation.definition.italic.markdown | #c9d1d9 | italic |
| markup.inline.raw.string.markdown, markup.inline.raw, markup.raw.block.markdown | #fc6a5d | — |
| markup.underline.link.markdown, markup.underline.link.image.markdown, string.other.link.title.markdown, string.other.link.description.markdown | #e95da0 | — |
| punctuation.definition.list.begin.markdown, markup.list.numbered.markdown, markup.list.unnumbered.markdown | #fc5fa3 | bold |
| markup.quote.markdown | #8b949e | italic |
| meta.separator.markdown | #30363d | — |
| support.type.property-name.json, support.type.property-name.json.comments | #5dd8ff | |
| string.quoted.double.json, string.quoted.double.json.comments | #fc6a5d | |
| entity.name.tag.yaml | #5dd8ff | |
| entity.name.type.anchor.yaml, variable.other.alias.yaml, punctuation.definition.anchor.yaml, punctuation.definition.alias.yaml | #e95da0 | |
| variable.other.normal.shell, variable.other.positional.shell, variable.other.special.shell, punctuation.definition.variable.shell | #5dd8ff | |
| variable.language.special.self.python | #fc5fa3 | bold |
| support.function.magic.python | #67b7a4 | italic |
| meta.fstring.python, string.interpolated.python | #fc6a5d | — |
| entity.name.function.decorator.python, meta.function.decorator.python | #d28e5d | |
| storage.modifier.lifetime.rust, entity.name.type.lifetime.rust, punctuation.definition.lifetime.rust | #d28e5d | italic |
| entity.name.function.macro.rust, support.macro.rust | #fd8f3f | bold |
| support.function.builtin.go | #67b7a4 | |
| punctuation.section.embedded.begin, punctuation.section.embedded.end | #fc5fa3 | bold |
| invalid.illegal | #f85149 | underline |
| invalid.deprecated | #d29922 | strikethrough |
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}!`;
}