Zen theme for VS Code
Publisher: cmionThemes in package: 2
Zen theme for VS Code
Zen theme for VS Code
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, text | #f8f8f2 | — |
| comment, punctuation.definition.comment | #616161 | italic |
| comment.block.documentation, comment.line.documentation | #616161 | italic |
| comment.block.documentation storage.type, comment.block.documentation punctuation.definition.block.tag, comment.block.documentation variable.other | #f780bf | italic underline |
| comment.block.documentation string | #f8f8f2 | italic |
| string | #feff80 | — |
| constant.character.escape, string .source.regexp .meta.character-class | #f89580 | — |
| string.regexp | #feff80 | — |
| constant.numeric | #9580ff | — |
| constant.language.boolean | #9580ff | italic |
| constant.language.null, constant.language.nil, constant.language.undefined | #9580ff | italic |
| keyword, storage.type, storage.modifier | #f780bf | italic |
| keyword.operator | #f780bf | — |
| meta.type.parameters, keyword.control, keyword.control.flow, keyword.control.conditional, keyword.control.loop, keyword.control.exception, meta.parameters, keyword.operator.expression.typeof.ts, keyword.operator.new | #f780bf | italic |
| punctuation, meta.brace, meta.delimiter | #f8f8f2 | — |
| meta.import, meta.block.ts | #80ffea | — |
| variable, variable.other.object, variable.other.constant, support.variable | #f8f8f2 | — |
| variable.parameter | #9580ff | — |
| variable.other.reassigned | — | — |
| variable.language.this, variable.language.super, variable.language.self | #78dce8 | italic |
| entity.name.function, support.function | #8aff80 | — |
| meta.function-call entity.name.function, support.function.any-method | #50fa78 | — |
| entity.name.class, support.class | #78dce8 | — |
| entity.name.type.abstract | #80ffea | — |
| declaration, entity.name.type, entity.name.interface, entity.name.type.interface | #80ffea | italic |
| entity.name.type.parameter | #f89580 | — |
| entity.other.inherited-class | #80ffea | — |
| variable.instance, variable.other.property, member.access | #f8f8f2 | — |
| variable.static, variable.other.static | #f8f8f2 | italic |
| variable.other.constant.static.final | #f8f8f2 | italic bold |
| meta.decorator entity.name.function, meta.decorator punctuation.decorator, meta.annotation entity.name.type, meta.annotation punctuation.definition.annotation | #f780bf | — |
| meta.annotation meta.attribute-pair variable.other | #f89580 | — |
| entity.name.tag, punctuation.definition.tag | #f780bf | — |
| punctuation.definition.tag | #f8f8f2 | — |
| entity.other.attribute-name | #8aff80 | italic |
| string.quoted.double.html | #feff80 | — |
| constant.character.entity | #9580ff | — |
| entity.name.tag.css | #f780bf | — |
| entity.other.attribute-name.class.css | #78dce8 | italic |
| entity.other.attribute-name.id.css | #f780bf | — |
| entity.other.attribute-name.pseudo-element.css, entity.other.attribute-name.pseudo-class.css | #f780bf | italic |
| support.type.property-name.css | #80ffea | — |
| support.constant.property-value.css, constant.numeric.css, support.constant.color.css | #feff80 | — |
| support.function.misc.css | #80ffea | — |
| keyword.other.important.css | #feff80 | italic |
| variable.parameter.url.css | #f780bf | underline |
| support.type.property-name.json | #f780bf | — |
| constant.language.json | #9580ff | italic |
| markup.heading | #feff80 | — |
| markup.bold | #f780bf | bold |
| markup.italic | #f780bf | italic |
| markup.strikethrough | — | strikethrough |
| string.other.link.title.markdown | #f780bf | underline italic |
| markup.underline.link.markdown | #f780bf | — |
| markup.inline.raw.string.markdown, markup.fenced_code.block.markdown | #f780bf | italic |
| markup.quote.markdown | #50fa78 | italic |
| punctuation.definition.list.begin.markdown | #ff5555 | italic |
| entity.name.function.decorator.python | #8aff80 | — |
| variable.parameter.function.language.special.self.python, variable.parameter.function.language.special.cls.python, variable.parameter.function.keyword.python | #78dce8 | italic |
| variable.language.this.java | #78dce8 | italic |
| support.type.object.console.js | #78dce8 | — |
| string.quoted.double.js, string.quoted.single.js, variable.other.module.js | syntax.defaultString | italic |
| entity.name.type.parameter.ts | #78dce8 | — |
| keyword.operator.expression, support.type.primitive, support.type.builtin, support.type.python, support.type.go, support.type.c, support.type.cpp, support.type.rust, entity.name.type.primitive.rust | #f780bf | italic |
| variable.other.readwrite | #78dce8 | italic |
| keyword.other.rust, variable.language.self.rust, entity.name.namespace.rust | #f89580 | — |
| variable.language.self.rust | #78dce8 | italic |
| entity.name.type.lifetime.rust | #78dce8 | italic |
| support.function.macro.rust | #f8f8f2 | — |
| invalid | #ff5555 | — |
| invalid.deprecated | #616161 | strikethrough |
| meta.todo, keyword.other.documentation.todo | #79cbdc | 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}!`;
}