Beryl
Publisher: Akshay GaneshenThemes in package: 1
VS Code colour scheme based on material colours.
VS Code colour scheme based on material colours.
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, punctuation.definition.comment | #757575 | italic |
| meta.definition.variable | #FFA726 | — |
| constant.other.color | #FAFAFA | — |
| invalid, invalid.illegal | #EF5350 | — |
| keyword | #FF5252 | — |
| storage.modifier | #FF7043 | — |
| storage.type, keyword.interface, keyword.struct, keyword.function, keyword.type, keyword.var | #42A5F5 | — |
| keyword.control, punctuation - punctuation.other, 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 | #FF5252 | — |
| entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter | #FF7043 | — |
| entity.name.function, variable.function, support.function, keyword.other.special-method | #00C853 | — |
| support.other.variable, string.other.link | #F5F5F5 | — |
| constant.numeric | #FFC107 | — |
| constant.language, support.constant, constant.character, constant.escape | #AB47BC | — |
| variable.parameter | #FFA726 | italic |
| keyword.other.unit, keyword.other | #FF5252 | — |
| string, string.quoted, string.quoted punctuation, entity.name.import | #00C853 | — |
| string.template, string.template punctuation | #BDBDBD | — |
| 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 | #EF5350 | — |
| entity.name - entity.name.package, support.type, support.class, support.other.namespace.use.php, meta.use.php, support.other.namespace.php, markup.changed.git_gutter, support.type.sys-types | #66BB6A | — |
| support.type | #FFC107 | — |
| 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 | #42A5F5 | — |
| entity.name.module.js, variable.import.parameter.js, variable.other.class.js | #00C853 | — |
| variable.language | #FFA726 | italic |
| support.function.builtin | #66BB6A | — |
| entity.name.method.js, entity.name.method.jsx, entity.name.method.ts, entity.name.method.tsx, meta.class-method.js entity.name.function.js, meta.class-method.jsx entity.name.function.jsx, meta.class-method.ts entity.name.function.ts, meta.class-method.tsx entity.name.function.tsx, variable.function.constructor | #42A5F5 | italic |
| entity.other.attribute-name | #66BB6A | — |
| text.html.basic entity.other.attribute-name.html, text.html.basic entity.other.attribute-name | #66BB6A | italic |
| entity.other.attribute-name.class, entity.other.attribute-name.class punctuation | #66BB6A | — |
| source.sass keyword.control, entity.other.attribute-name.id, entity.other.attribute-name.id punctuation | #FFAB40 | — |
| meta.diff, meta.diff.header | #F5F5F5 | italic |
| meta.diff.range | #AB47BC | italic |
| markup.ignored | #757575 | italic |
| markup.untracked | #9E9E9E | italic |
| markup.inserted | #66BB6A | — |
| markup.deleted | #EF5350 | — |
| markup.changed | #29B6F6 | — |
| string.regexp, string.regexp punctuation | #FFAB40 | — |
| constant.character.escape | #E040FB | — |
| string constant.other.placeholder | #E040FB | — |
| *url*, *link*, *uri* | — | underline |
| tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #42A5F5 | italic |
| source.json meta.structure.dictionary.json support.type.property-name.json, source.json meta.structure.dictionary.json support.type.property-name.json punctuation | #EF5350 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json, source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json punctuation | #FF7043 | — |
| 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, 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 punctuation | #FFEE58 | — |
| 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, 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 punctuation | #9CCC65 | — |
| 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, 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 punctuation | #26A69A | — |
| 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, 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 punctuation | #42A5F5 | — |
| 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, 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 punctuation | #5C6BC0 | — |
| 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, 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 punctuation | #AB47BC | — |
| 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, 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 punctuation | #EC407A | — |
| text.html.markdown, punctuation.definition.list_item.markdown | #FAFAFA | — |
| text.html.markdown markup.inline.raw.markdown, text.html.markdown markup.inline.raw.string.markdown, text.html.markdown markup.inline.raw.markdown punctuation, text.html.markdown markup.inline.raw.string.markdown punctuation | #FF6E40 | — |
| markdown.heading, markup.heading, markup.heading | markup.heading entity.name | #00C853 | — |
| markup.heading.markdown punctuation.definition.heading.markdown | #EF5350 | — |
| markup.heading heading.1.markdown | #EF5350 | — |
| markup.heading heading.2.markdown | #FFA726 | — |
| markup.heading heading.3.markdown | #26A69A | — |
| markup.heading heading.4.markdown | #5C6BC0 | — |
| markup.italic | — | italic |
| markup.bold, markup.bold string | — | 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 | — | italic bold |
| markup.underline | — | underline |
| markup.quote punctuation.definition.blockquote.markdown, markup.quote punctuation.definition.quote.begin.markdown | #757575 | — |
| markup.quote meta.paragraph | — | italic |
| string.other.link.title.markdown, meta.link.inline.markdown punctuation.definition.link.title, meta.link.reference.markdown punctuation.definition.link.title | #E040FB | — |
| string.other.link.description.title.markdown, meta.link.inline.markdown punctuation.definition.metadata | #F5F5F5 | — |
| constant.other.reference.link.markdown, meta.link.reference.markdown punctuation.definition.constant | #66BB6A | — |
| markup.raw.block, markup.fenced_code.block.markdown punctuation.definition.markdown, markup.fenced_code.block.markdown punctuation.definition.fenced.markdown, markup.fenced_code.block.markdown fenced_code.block.language.markdown | #E040FB | — |
| meta.separator, markup.list punctuation | #757575 | — |
| markup.table | #757575 | — |
| markup.bold punctuation.definition, markup.italic punctuation.definition, markup.strikethrough punctuation.definition | #EEEEEE | — |
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}!`;
}