Pre
Publisher: Leandro MatosThemes in package: 1
A dark theme for VS Code. Neon accents on a neutral ramp, with every colour generated from one measured palette.
A dark theme for VS Code. Neon accents on a neutral ramp, with every colour generated from one measured palette.
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 | #909090 | — |
| string | #fff45e | — |
| constant.numeric | #c064ff | — |
| constant.language | #c064ff | — |
| constant.character, constant.other | #c064ff | — |
| variable | — | — |
| variable.other.readwrite.instance | #ff9831 | — |
| constant.character.escaped, constant.character.escape, string source, string source.ruby | #38ff67 | — |
| keyword | #ff4496 | — |
| storage | #ff4496 | — |
| storage.type | #1ce5ff | italic |
| entity.name.class | #38ff67 | underline |
| entity.other.inherited-class | #38ff67 | italic underline |
| entity.name.function | #38ff67 | — |
| variable.parameter | #ff9831 | italic |
| entity.name.tag | #ff4496 | — |
| entity.other.attribute-name | #38ff67 | — |
| support.function | #1ce5ff | — |
| support.constant | #1ce5ff | — |
| support.type, support.class | #1ce5ff | italic |
| support.other.variable | — | — |
| invalid | #ff5e5d | — |
| invalid.deprecated | #ff5e5d | — |
| meta.structure.dictionary.json string.quoted.double.json | #ff5e5d | — |
| meta.diff, meta.diff.header | #1ce5ff | — |
| markup.deleted | #ff4496 | — |
| markup.inserted | #38ff67 | — |
| markup.changed | #fff45e | — |
| constant.numeric.line-number.find-in-files - match | #c064ff | — |
| entity.name.filename | #fff45e | — |
| message.error | #ff5e5d | — |
| punctuation.definition.string.begin.json - meta.structure.dictionary.value.json, punctuation.definition.string.end.json - meta.structure.dictionary.value.json | #ff5e5d | — |
| meta.structure.dictionary.json string.quoted.double.json | #1ce5ff | — |
| meta.structure.dictionary.value.json string.quoted.double.json | #fff45e | — |
| meta meta meta meta meta meta meta.structure.dictionary.value string | #38ff67 | — |
| meta meta meta meta meta meta.structure.dictionary.value string | #ff9831 | — |
| meta meta meta meta meta.structure.dictionary.value string | #ff4496 | — |
| meta meta meta meta.structure.dictionary.value string | #c064ff | — |
| meta meta meta.structure.dictionary.value string | #38ff67 | — |
| meta meta.structure.dictionary.value string | #ff9831 | — |
| keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.as, keyword.control.default | #ff4496 | — |
| keyword.operator.expression, keyword.operator.new, keyword.operator.logical, keyword.operator.ternary | #ff4496 | — |
| punctuation.accessor | #ff4496 | — |
| variable.language, variable.language.this, variable.language.super, variable.language.self | #ff4496 | — |
| entity.name.type, entity.name.type.interface, entity.name.type.enum, entity.name.type.alias, entity.name.type.parameter | #1ce5ff | — |
| entity.name.namespace, entity.name.module, entity.name.scope-resolution | #1ce5ff | — |
| entity.name.function.member, meta.method entity.name.function, variable.function | #38ff67 | — |
| meta.decorator, meta.decorator entity.name.function, punctuation.decorator | #ff9831 | — |
| entity.name.label, entity.name.section | #38ff67 | — |
| punctuation.definition.template-expression, punctuation.section.embedded | #ff4496 | — |
| meta.embedded, meta.template.expression | #f8f8f8 | — |
| keyword.operator.or.regexp, keyword.control.anchor.regexp, punctuation.definition.group.regexp | #ff4496 | — |
| constant.other.character-class.regexp, constant.character.escape.backslash.regexp | #c064ff | — |
| storage.type.class.jsdoc, punctuation.definition.block.tag.jsdoc | #ff4496 | — |
| entity.name.type.instance.jsdoc, variable.other.jsdoc | #1ce5ff | — |
| markup.heading, entity.name.section.markdown, punctuation.definition.heading.markdown | #38ff67 | bold |
| markup.bold | #ff9831 | bold |
| markup.italic | #ff9831 | italic |
| markup.strikethrough | #909090 | strikethrough |
| markup.quote | #909090 | — |
| markup.inline.raw, markup.fenced_code, markup.raw | #fff45e | — |
| markup.list, beginning.punctuation.definition.list.markdown | #ff4496 | — |
| string.other.link.title, string.other.link.description | #38ff67 | — |
| markup.underline.link, string.other.link | #1ce5ff | — |
| meta.separator.markdown | #909090 | — |
| support.class.component, entity.name.tag.jsx, entity.name.tag.tsx | #38ff67 | — |
| punctuation.definition.tag | #ff4496 | — |
| entity.name.tag.css, entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #38ff67 | — |
| entity.other.attribute-name.pseudo-class, entity.other.attribute-name.pseudo-element | #1ce5ff | — |
| support.type.property-name.css, support.type.property-name.scss, meta.property-name | #1ce5ff | — |
| support.constant.property-value, meta.property-value | #c064ff | — |
| keyword.other.unit | #c064ff | — |
| keyword.control.at-rule, punctuation.definition.keyword.css | #ff4496 | — |
| variable.argument.css, variable.css, support.type.property-name.variable | #ff9831 | — |
| entity.name.tag.yaml | #1ce5ff | — |
| entity.name.type.anchor.yaml, variable.other.alias.yaml | #ff9831 | — |
| keyword.other.definition.ini, entity.name.tag.toml, support.type.property-name.toml | #1ce5ff | — |
| support.function.builtin.shell, entity.name.function.call.shell | #38ff67 | — |
| variable.other.normal.shell, punctuation.definition.variable.shell | #ff9831 | — |
| keyword.other.special-method.dockerfile, keyword.control.dockerfile | #ff4496 | — |
| keyword.other.DML.sql, keyword.other.DDL.sql | #ff4496 | — |
| variable.graphql, meta.selectionset.graphql variable | #f8f8f8 | — |
| support.type.graphql, entity.name.fragment.graphql | #1ce5ff | — |
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}!`;
}