Like Material Theme
Publisher: LikeThemes in package: 1
Like Material Theme for VSCode
Like Material Theme for 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 |
|---|---|---|
| entity.name.tag.html invalid.illegal.unrecognized-tag.html, meta.tag.other.unrecognized.html.derivative entity.name.tag.html | #FFCB6B | — |
| meta.class meta.method.declaration storage.type.property | #58C9B9 | — |
| meta.block.js meta.var.expr.js storage.type.js, meta.block.tsx meta.var.expr.tsx storage.type.tsx | #58C9B9 | — |
| meta.jsx.children.js | #BBBBBB | — |
| entity.other.inherited-class | #FFCB6B | — |
| entity.name.type.ts, meta.function.ts meta.type.parameters.ts entity.name.type.ts, meta.function.ts meta.block.ts entity.name.type.ts, meta.type.declaration.ts meta.type.parameters.ts entity.name.type.ts, meta.object.type.ts meta.indexer.mappedtype.declaration.ts entity.name.type.ts, meta.var.expr.ts cast.expr.ts entity.name.type.ts, meta.var.expr.ts entity.name.type.ts, meta.return.type.ts entity.name.type.ts, support.type.primitive.ts, support.type.builtin.ts, meta.type.annotation.ts entity.name.type.ts, meta.class.ts meta.type.parameters.ts entity.name.type.ts, new.expr.ts meta.type.parameters.ts entity.name.type.ts, meta.interface.ts meta.type.parameters.ts entity.name.type.ts | #A5651D | — |
| entity.name.type.tsx, meta.function.tsx meta.type.parameters.tsx entity.name.type.tsx, meta.function.tsx meta.block.tsx entity.name.type.tsx, meta.type.declaration.tsx meta.type.parameters.tsx entity.name.type.tsx, meta.object.type.tsx meta.indexer.mappedtype.declaration.tsx entity.name.type.tsx, meta.var.expr.tsx cast.expr.tsx entity.name.type.tsx, meta.var.expr.tsx entity.name.type.tsx, meta.return.type.tsx entity.name.type.tsx, support.type.primitive.tsx, support.type.builtin.tsx, meta.type.annotation.tsx entity.name.type.tsx, meta.class.tsx meta.type.parameters.tsx entity.name.type.tsx, new.expr.tsx meta.type.parameters.tsx entity.name.type.tsx, meta.interface.tsx meta.type.parameters.tsx entity.name.type.tsx | #A5651D | — |
| meta.object.type.ts meta.indexer.mappedtype.declaration.ts storage.modifier.ts, meta.interface.ts storage.modifier.ts, meta.type.parameters storage.modifier, meta.type.declaration.ts storage.modifier.ts | #C678DD | italic |
| meta.enum.declaration variable.other.enummember | #BCD4FF | — |
| variable.other.constant.object.vue | #EEFFFF | — |
| meta.property-list.css meta.property-value.css | #61AFEF | — |
| entity.name.tag.html invalid.illegal.unrecognized-tag.html, meta.tag.other.unrecognized.html.derivative entity.name.tag.html | #FFCB6B | — |
| meta.property-list.scss, meta.property-list.scss meta.property-name.scss | #BCD4FF | — |
| meta.attribute.id.html entity.other.attribute-name | #FD971F | — |
| keyword.other.important.css, keyword.other.important.scss, keyword.other.default.scss | #FF5370 | — |
| source.ts.embedded.html.vue meta.block entity.name.label | #BCD4FF | — |
| keyword.operator.expression.import | #61AFEF | — |
| variable.other.constant.property | #89DDFF | — |
| meta.jsx.children.tsx, meta.jsx.children.jsx | #BBBBBB | — |
| comment, punctuation.definition.comment | #546E7A | italic |
| variable, string constant.other.placeholder | #EEFFFF | — |
| constant.other.color | #ffffff | — |
| invalid, invalid.illegal | #FF5370 | — |
| storage.type, storage.modifier | #58C9B9 | — |
| meta.class storage.modifier | #C678DD | italic |
| meta.class meta.method.declaration storage.type | #61AFEF | italic |
| meta.var.expr storage.modifier | #C678DD | italic |
| storage.type.function | #C678DD | italic |
| support.type.object.module | #C678DD | italic |
| storage.modifier.async | #C678DD | — |
| meta.namespace.declaration storage.modifier, meta.function storage.modifier | #C678DD | italic |
| keyword.operator | #89DDFF | — |
| keyword.operator.new | #C678DD | italic |
| constant.other.color, punctuation, meta.tag, punctuation.definition.tag, punctuation.separator.inheritance.php, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.section.embedded, keyword.other.template, keyword.other.substitution | #89DDFF | — |
| keyword | #C678DD | — |
| keyword.control | #C678DD | italic |
| keyword.operator.expression.instanceof | #C678DD | italic |
| entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter | #f07178 | — |
| entity.name.function, meta.function-call, variable.function, support.function, keyword.other.special-method, meta.class-method.js entity.name.function.js, variable.function.constructor, entity.name.method.js | #61AFEF | — |
| meta.block variable.other | #EEFFFF | — |
| entity.name.type.class | #FFCB6B | — |
| meta.class entity.other.inherited-class | #FFCB6B | — |
| variable.other.property, variable.other.object.property, meta.object-literal.key, support.variable.property | #BCD4FF | — |
| support.other.variable | #FFCB6B | — |
| string.other.link | #f07178 | — |
| variable.parameter | #FF5370 | — |
| constant.numeric.decimal, constant.language | #FD971F | — |
| constant.numeric, support.constant, constant.character, constant.escape, keyword.other.unit, keyword.other | #F78C6C | — |
| string, constant.other.symbol, constant.other.key, entity.other.inherited-class, markup.heading, markup.inserted.git_gutter, meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js | #C3E88D | — |
| entity.name, support.type, support.class, support.other.namespace.use.php, meta.use.php, support.other.namespace.php, markup.changed.git_gutter, support.type.sys-types | #FFCB6B | — |
| support.type | #B2CCD6 | — |
| source.css support.type.property-name, source.sass support.type.property-name, source.scss support.type.property-name, source.less support.type.property-name, source.stylus support.type.property-name, source.postcss support.type.property-name | #B2CCD6 | — |
| entity.name.module.js, variable.import.parameter.js, variable.other.class.js | #FF5370 | — |
| variable.language | #FF5370 | italic |
| entity.other.attribute-name | #C792EA | italic |
| text.html.basic entity.other.attribute-name.html, text.html.basic entity.other.attribute-name | #FFCB6B | italic |
| entity.other.attribute-name.class | #FFCB6B | — |
| source.sass keyword.control | #82AAFF | — |
| markup.inserted | #C3E88D | — |
| markup.deleted | #FF5370 | — |
| markup.changed | #C792EA | — |
| string.regexp | #89DDFF | — |
| constant.character.escape | #89DDFF | — |
| *url*, *link*, *uri* | — | underline |
| tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #89DDFF | italic |
| source.js constant.other.object.key.js string.unquoted.label.js | #FF5370 | italic |
| source.json meta.structure.dictionary.json support.type.property-name.json | #C792EA | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #FFCB6B | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #F78C6C | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #FF5370 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #C17E70 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #82AAFF | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #f07178 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #C792EA | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #C3E88D | — |
| text.html.markdown, punctuation.definition.list_item.markdown | #EEFFFF | — |
| text.html.markdown markup.inline.raw.markdown | #C792EA | — |
| text.html.markdown markup.inline.raw.markdown punctuation.definition.raw.markdown | #65737E | — |
| markdown.heading, markup.heading | markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown | #C3E88D | — |
| markup.italic | #f07178 | italic |
| markup.bold, markup.bold string | #f07178 | bold |
| markup.bold markup.italic, markup.italic markup.bold, markup.quote markup.bold, markup.bold markup.italic string, markup.italic markup.bold string, markup.quote markup.bold string | #f07178 | bold |
| markup.underline | #F78C6C | underline |
| markup.quote punctuation.definition.blockquote.markdown | #65737E | — |
| markup.quote | — | italic |
| string.other.link.title.markdown | #82AAFF | — |
| string.other.link.description.title.markdown | #C792EA | — |
| constant.other.reference.link.markdown | #FFCB6B | — |
| markup.raw.block | #C792EA | — |
| markup.raw.block.fenced.markdown | #00000050 | — |
| punctuation.definition.fenced.markdown | #00000050 | — |
| markup.raw.block.fenced.markdown, variable.language.fenced.markdown, punctuation.section.class.end | #EEFFFF | — |
| variable.language.fenced.markdown | #65737E | — |
| meta.separator | #65737E | bold |
| markup.table | #EEFFFF | — |
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}!`;
}