YAAST - Yet Another Atom Styled Theme
Publisher: jerhosThemes in package: 1
This is yet another one of those themes inspired by Atom's One Dark Pro.
This is yet another one of those themes inspired by Atom's One Dark Pro.
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 | #5C6A7E | italic |
| builtinConstant, constant.numeric, constant.language, constant.character, constant.character.escape, keyword.other.unit | #9f5cc9 | |
| constant.other.caps.python, keyword.other, support.constant, support.constant, support.variable.readonly, variable.other.constant | — | bold |
| string, string.interpolated, constant.other.symbol, constant.other.key, meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js | #d7dae0 | — |
| constant.regexp, string.regexp, support.constant.regex | #d7dae0 | italic |
| constant.other.color, constant.rgb-value, support.constant.color | #9f5cc9 | underline |
| *url*, *link*, *uri* | — | italic underline |
| support.type.property-name.path | — | italic underline |
| entity.name.function, meta.function-call, variable.function, support.function, keyword.other.special-method | #6B9CFF | — |
| namespace, module, entity.name.namespace | #d7dae0 | bold |
| entity.name.type, entity.name.class, entity.name..type.class, entity.other.inherited-class, support.class, support.type.struct | #C7AA55 | underline |
| invalid, invalid.deprecated | — | strikethrough |
| invalid.illegal | #ff0000 | strikethrough |
| keyword, keyword.control, keyword.operator, keyword.other.template, keyword.other.substitution, keyword.other.unit, keyword.other | #B1366F | italic |
| storage, storage.type, storage.modifier | #B1366F | italic |
| variable, support.variable, support.variable.write, support.variable.readwrite | #90AEC0 | — |
| variable.parameter, variable.language, variable.other, support.variable.parameter, support.variable.language, support.variable.other, variable.language.super, variable.language.this | #90AEC0 | italic |
| meta.tag, entity.name.tag, punctuation.definition.tag, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.separator.inheritance.php, support.type.tag, source.php.embedded.html | #c43879 | — |
| text.html.basic entity.other.attribute-name.html, entity.other.attribute-name.html | #88C26F | italic |
| *.documentation, variable.other.jsdoc, string.quoted.docstring.multi.python | #90AEC090 | bold |
| storage.type.class.jsdoc | #B1366F70 | bold italic |
| keyword.operator.assignment.jsdoc | #B1366F70 | bold italic |
| entity.name.type.instance.jsdoc | #B1366F70 | italic |
| punctuation.definition.bracket.curly.begin.jsdoc, punctuation.definition.bracket.curly.end.jsdoc | #90AEC090 | bold |
| comment.block meta.embedded comment.line, comment.block meta.example comment.line | #5C6A7E90 | — |
| meta.example.jsdoc, comment.block meta.example entity.name | #21BCBC80 | — |
| comment.block meta.example constant.numeric, comment.block meta.example constant.language, comment.block meta.example constant.character, comment.block meta.example constant.character.escape, comment.block meta.example support.constant, comment.block meta.example support.variable.readonly, comment.block meta.example keyword.other.unit, comment.block meta.example keyword.other | #9f5cc980 | — |
| comment.block meta.example string, comment.block meta.example string.interpolated, comment.block meta.example constant.other, comment.block meta.example constant.other.symbol, comment.block meta.example constant.other.key, comment.block meta.example meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js | #d7dae080 | — |
| comment.block meta.example constant.regexp, comment.block meta.example string.regexp, comment.block meta.example support.constant.regex | #d7dae080 | — |
| comment.block meta.example constant.other.color, comment.block meta.example constant.rgb-value, comment.block meta.example support.constant.color | #9f5cc980 | — |
| comment.block meta.example entity.name.function, comment.block meta.example meta.function-call, comment.block meta.example variable.function, comment.block meta.example support.function, comment.block meta.example keyword.other.special-method | #82AAFF80 | — |
| comment.block meta.example entity.name.type, comment.block meta.example entity.name.class, comment.block meta.example entity.name..type.class, comment.block meta.example entity.other.inherited-class, comment.block meta.example support.class, comment.block meta.example support.type.struct | #C7AA5580 | — |
| comment.block meta.example keyword, comment.block meta.example keyword.control, comment.block meta.example keyword.operator, comment.block meta.example keyword.other.template, comment.block meta.example keyword.other.substitution, comment.block meta.example keyword.other.unit, comment.block meta.example keyword.other | #B1366F80 | — |
| comment.block meta.example storage, comment.block meta.example storage.type, comment.block meta.example storage.modifier | #B1366F80 | — |
| comment.block meta.example variable, comment.block meta.example support.variable, comment.block meta.example support.variable.write, comment.block meta.example support.variable.readwrite | #90AEC080 | — |
| comment.block meta.example variable.parameter, comment.block meta.example variable.language, comment.block meta.example variable.other, comment.block meta.example support.variable.parameter, comment.block meta.example support.variable.language, comment.block meta.example support.variable.other, comment.block meta.example variable.language.super, comment.block meta.example variable.language.this | #90AEC080 | — |
| support.type.property-name.css, support.type.property-name.sass, support.type.property-name.scss, support.type.property-name.less, support.type.property-name.stylus, support.type.property-name.postcss | #C753DE | — |
| entity.name.tag.css | #88C26F | — |
| entity.other.attribute-name.class, entity.other.attribute-name.id, entity.other.attribute-name.pseudo-class.css | #88C26F | — |
| entity.name.method.js | #82AAFF | italic |
| meta.class-method.js entity.name.function.js, variable.function.constructor | #82AAFF | — |
| tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #82AAFF | italic |
| entity.name.module.js, variable.import.parameter.js, variable.other.class.js | #FF5370 | — |
| source.js constant.other.object.key.js string.unquoted.label.js | #FF5370 | italic |
| meta.structure.dictionary.json support.type.property-name.json, source.dart meta.structure.dictionary.json support.type.property-name.json | #90AEC0 | — |
| meta.structure.dictionary.json string.quoted.double.json | #d7dae0 | — |
| text.html.markdown, punctuation.definition.list_item.markdown, meta.paragraph.markdown | #d7dae0 | — |
| markdown.heading, entity.name.section.markdown, markup.heading | markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown, support.entity.name.section.markdown | #88C26F | bold |
| markup.bold.markdown, punctuation.definition.bold.markdown | — | bold |
| markup.italic.markdown, punctuation.definition.italic.markdown | — | italic |
| markup.strikethrough.markdown, punctuation.definition.strikethrough.markdown | — | strikethrough |
| markup.quote.markdown | #C95CC7 | — |
| string.other.link.title.markdown, punctuation.definition.link, constant.other.reference.link.markdown, string.other.link.description.markdown | #82AAFF | — |
| markup.list.unnumbered.markdown, markup.list.numbered.markdown | #C7B655 | — |
| markup.fenced_code.block.markdown, markup.inline.raw.string.markdown | #21BCBC | — |
| meta.separator.markdown | #d7dae066 | bold |
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}!`;
}