Urban Twilight Teal Theme
Publisher: tpsTechThemes in package: 1
A modern VS Code theme inspired by Tokyo Night, featuring teal accents, balanced contrast for all-day usability, and vibrant syntax highlighting.
A modern VS Code theme inspired by Tokyo Night, featuring teal accents, balanced contrast for all-day usability, 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 |
|---|---|---|
| accent.xi | #60a5fa | — |
| entity.other.attribute-name.id, entity.other.attribute-name.class.css | #60a5fa | |
| entity.other.attribute-name | #ffedd5 | — |
| beginning.punctuation.definition.list.markdown | #7dd3fc | — |
| block.scope.end,block.scope.begin | #f4f4f5 | — |
| punctuation.definition.bold, markup.bold, todo.bold | #fde68a | — |
| function.brace | #f4f4f5 | — |
| invalid.broken | #f4f4f5 | — |
| entity.name.class, variable.other.class, entity.name.type.class, entity.name.type.namespace, support.class | #fde68a | — |
| comment.line.double-slash,comment.block.documentation | — | italic |
| comment markup.link | #a8a29e | — |
| beginning.punctuation.definition.list.markdown.xi | #a8a29e | — |
| comment, punctuation.definition.comment | #a8a29e | italic |
| constant.other.symbol | #c084fc | — |
| punctuation.definition.constant | #fde68a | — |
| control.elements | #fde68a | — |
| support.constant.color.w3c-standard-color-name.css | #6ee7b7 | — |
| support.constant.color.w3c-standard-color-name.css, support.constant.color.w3c-standard-color-name.scss | #6ee7b7 | — |
| punctuation.separator.list.comma.css | #f4f4f5 | — |
| support.type.vendored.property-name.css | #c084fc | — |
| keyword.operator.css, keyword.operator.scss, keyword.operator.less | #c084fc | — |
| markup.deleted.diff | #f87171 | — |
| invalid.deprecated | #f4f4f5 | — |
| meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff | #60a5fa | — |
| punctuation.definition.tag.xi | #525252 | — |
| punctuation.section.embedded, variable.interpolation | #7dd3fc | — |
| punctuation.section.embedded.begin,punctuation.section.embedded.end | #c084fc | italic |
| emphasis md | #c084fc | italic |
| constant.character.escape | #c084fc | — |
| support.constant.font-name | #fde68a | — |
| entity.name.function, meta.require, support.function.any-method, variable.function | #60a5fa | — |
| entity.name.function.xi | #fde68a | — |
| entity.name.class.xi | #c084fc | — |
| constant.character.character-class.regexp.xi | #7dd3fc | — |
| constant.regexp.xi | #7dd3fc | italic |
| keyword.control.xi | #c695c6 | — |
| invalid.xi | #f4f4f5 | — |
| markup.heading | #7dd3fc | — |
| markup.heading punctuation.definition.heading, entity.name.section | #60a5fa | — |
| constant.character.entity | #7dd3fc | — |
| invalid.illegal | #f4f4f5 | — |
| invalid.illegal.bad-ampersand.html | #f4f4f5 | — |
| entity.other.inherited-class | #fde68a | — |
| source.ini | #6ee7b7 | — |
| markup.inserted.diff | #6ee7b7 | — |
| constant.numeric | #FF8A65 | — |
| meta.property.object | #7dd3fc | — |
| support.type.type.flowtype | #fdba74 | — |
| variable.parameter.function | #7dd3fc | — |
| keyword.other.template.begin, keyword.other.template.end | #6ee7b7 | — |
| keyword.other.substitution.begin, keyword.other.substitution.end | #fde68a | — |
| support.type.object.console | #7dd3fc | — |
| entity.name.function,support.function.console | #60a5fa | — |
| punctuation.definition.block.tag.jsdoc | #7dd3fc | — |
| variable.type.dollar, support.class.dollar | #5fb4b4 | bold |
| support.variable.dom,support.variable.property.dom | #7dd3fc | — |
| keyword.control.flow, storage.modifier.async, constant.language.boolean.false, constant.language.boolean.true, variable.language.this, variable.language.super, constant.language.null, constant.language.undefined | #F7768E | italic bold |
| support.constant.json | #fde68a | — |
| token.storage, storage, keyword, keyword.control, keyword.operator, keyword.operator.new, keyword.operator.expression.delete, keyword.operator.expression.in, keyword.operator.expression.of, keyword.operator.expression.instanceof, keyword.operator.expression.typeof, keyword.operator.expression.void, keyword.operator.expression.keyof, keyword.operator.expression.import, keyword.operator.less, keyword.operator.module, keyword.operator.assignment, keyword.operator.assignment.compound, keyword.operator.expression.instanceof, keyword.operator.ternary, keyword.operator.optional, keyword.operator.logical, keyword.operator.channel, keyword.operator.bitwise, keyword.operator.arithmetic, keyword.operator.comparison, keyword.operator.decrement, keyword.operator.increment, keyword.operator.relational, keyword.operator.delete, support.type.object.dom | #c084fc | italic |
| support.module.node, support.type.object.module, support.module.node | #fde68a | — |
| function.parameter | #f4f4f5 | — |
| punctuation.separator.key-value | #f4f4f5 | — |
| support.variable.property.process | #fde68a | — |
| variable.other.property | #9FA8DA | — |
| variable.other.readwrite, variable.other.readonly, support.class.component | #ccfbf1 | — |
| variable.other.constant | #fde68a | — |
| meta.object-literal.key, support.variable.property, support.variable.object.process, support.variable.object.node | #7dd3fc | — |
| support.type.property-name.json | #7dd3fc | — |
| support.type.property-name.json punctuation | #7dd3fc | — |
| constant.other.color.rgb-value.xi | #f4f4f5 | — |
| constant.character.xi | #60a5fa | — |
| punctuation.definition.heading.markdown | #7dd3fc | — |
| markup.heading.setext | #f4f4f5 | — |
| entity.name.section.markdown | #7dd3fc | — |
| markup.inline.raw.markdown | #6ee7b7 | — |
| markup.inline.raw.string.markdown | #6ee7b7 | — |
| string.other.link.title.markdown,string.other.link.description.markdown | #60a5fa | — |
| punctuation.definition.list.markdown | #7dd3fc | — |
| punctuation.definition.bold.markdown | #fde68a | — |
| punctuation.definition.metadata.markdown | #7dd3fc | — |
| punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown | #7dd3fc | — |
| markup.quote.markdown | #a8a29e | — |
| markup.underline.link.markdown,markup.underline.link.image.markdown | #c084fc | italic |
| entity.name.label.cs, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown | #7dd3fc | — |
| markup.changed.diff | #fde68a | — |
| markup.italic, punctuation.definition.italic,todo.emphasis | #c084fc | italic |
| markup.italic.markdown | — | italic |
| support.constant.math, support.constant.property.math | #fde68a | — |
| meta.tag | #f4f4f5 | — |
| meta.brace.square | #f4f4f5 | — |
| keyword.other.special-method | #60a5fa | — |
| entity.name.namespace | #fde68a | — |
| token.package.keyword | #c084fc | italic |
| token.package | #f4f4f5 | — |
| support.type.property-name | #7dd3fc | — |
| support.constant.property-value | #fde68a | — |
| punctuation.separator.delimiter | #f4f4f5 | — |
| punctuation.definition.string.begin,punctuation.definition.string.end | #6ee7b7 | — |
| punctuation.definition.list.begin.markdown | #7dd3fc | — |
| constant.other.character-class.regexp | #7dd3fc | — |
| keyword.operator.quantifier.regexp | #fde68a | — |
| string.regexp | #f472b6 | — |
| meta.template.expression | #f4f4f5 | — |
| inline-color-decoration rgb-value | #fde68a | — |
| less rgb-value | #fde68a | — |
| rgb-value | #c084fc | — |
| selector.sass | #7dd3fc | — |
| meta.selector | #c084fc | italic |
| source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json | #c084fc | — |
| source.json meta.structure.dictionary.json > string.quoted.json | #7dd3fc | — |
| source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string | #7dd3fc | — |
| source.json meta.structure.dictionary.json > value.json > string.quoted.json,source.json meta.structure.array.json > value.json > string.quoted.json,source.json meta.structure.dictionary.json > value.json > string.quoted.json > punctuation,source.json meta.structure.array.json > value.json > string.quoted.json > punctuation | #6ee7b7 | — |
| beginning.punctuation.definition.quote.markdown.xi | #6ee7b7 | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded | #A1887F | — |
| string | #6ee7b7 | — |
| entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class | #c084fc | — |
| support.function | #60a5fa | — |
| support.constant.property-value.scss, support.constant.property-value.css | #c084fc | — |
| entity.name.tag | #fda4af | bold |
| punctuation.quasi.element | #c084fc | italic |
| variable.parameter.function | #f4f4f5 | — |
| token.debug-token | #c084fc | — |
| token error | #f87171 | — |
| token.info-token | #60a5fa | — |
| token.warn-token | #fde68a | — |
| entity.name.type, support.type.primitive, support.type.builtin, entity.name.class.identifier.namespace.type | #fdba74 | italic |
| invalid.unimplemented | #f4f4f5 | — |
| keyword.other.unit | #7dd3fc | — |
| variable | #7dd3fc | — |
| wikiword.xi | #fde68a | — |
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}!`;
}