samus theme
Publisher: mrwilfordThemes in package: 1
samus theme for vscode
samus 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 |
|---|---|---|
| #CDBD96 | — | |
| emphasis | — | italic |
| strong | — | bold |
| invalid, constant.other, markup.list, meta, meta.parens, meta.definition.function, variable.other.object, storage.modifier.import, storage.modifier.import.java, storage.modifier.package, storage.modifier.package.java, support.type.vendored.property-name, variable.other.jsdoc | #CDBD96 | |
| markup.bold | #CDBD96 | bold |
| markup.italic | #CDBD96 | italic |
| comment, constant.character.escape.line-continuation, storage.type, invalid.deprecated, entity.other.attribute-name.localname.cs, entity.name.tag.localname.cs, meta.brace, meta.tag.block.any.html, meta.tag.inline.any.html, keyword.control.ternary, keyword.operator, keyword.operator.ternary, keyword.operator.comparison, keyword.operator.arithmetic, keyword.operator.logical, keyword.operator.bitwise, keyword.operator.spread, keyword.operator.at.batchfile, keyword.operator.assignment, keyword.codetag.notation, keyword.command.rem, keyword.other.unit, keyword.operator.new, punctuation.dot, punctuation.comma, punctuation.accessor, punctuation.separator, punctuation.terminator, punctuation.support.type.property-name, punctuation.section.block, punctuation.section.parens, punctuation.section.parameters, punctuation.section.arguments, punctuation.section.function, punctuation.section.media, punctuation.section.property-list, punctuation.section.embedded, punctuation.definition.metadata, punctuation.definition.constant, punctuation.definition.array, punctuation.definition.dictionary, punctuation.definition.block, punctuation.definition.parameters, punctuation.definition.binding-pattern, punctuation.definition.tag, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.definition.tag.html, punctuation.definition.template-expression, meta.type.annotation, support.type.primitive, punctuation.definition.typeparameters | #CDBD9666 | |
| storage, variable.language.this, variable.language.super, keyword.control.new, keyword.control.directive, keyword.control.import, keyword.control.break, keyword.control.continue, keyword.other.import, keyword.other.package, keyword.other.special-method, keyword.other.using, keyword.other.important, keyword.preprocessor, keyword.operator.expression, punctuation.definition.directive, punctuation.separator.hash, support.class.builtin, support.constant, support.constant.media, entity.other.attribute-name.pseudo-class.css | #D64E2C | bold |
| keyword.control.flow, keyword.control.return, keyword.control.trycatch, keyword.control.loop | #D64E2C | |
| meta.class.body.java, meta.attribute, meta.object-literal.key, keyword.control, keyword.operator.logical.python, keyword.operator.sizeof, keyword.control.loop.js.for, punctuation.definition.annotation, punctuation.definition.storage.type.objc, punctuation.definition.keyword, support.type.property-name, support.type.vendored.property-name, variable.language, variable.other.java, variable.other.readwrite.batchfile, variable.parameter.function.language.special.self, entity.name.class, entity.name.function.decorator, entity.name.section.group-title.ini, entity.other.attribute-name.tsx, entity.other.attribute-name.id.css, entity.other.inherited-class, string.quoted.docstring, storage.type.annotation, storage.type.annotation.java, storage.type.cs, storage.type.generic, storage.type.generic.java, storage.type.java, storage.type.object, storage.type.object.array.java | #F9B70E | |
| meta.selector, meta.function-call, entity.name.function.call, entity.name.tag, entity.name.tag.css, markup.heading, storage.modifier, storage.type.primitive, storage.type.primitive.java, keyword.declaration, keyword.command.batchfile | #E2812A | |
| constant.language.boolean.false, constant.language.undefined, constant.language.null | #3C7140 | |
| meta.preprocessor, meta.preprocessor.macro, meta.property-value, meta.link.inline, meta.image.inline, entity.name.function.preprocessor, variable.parameter.preprocessor, variable.other.constant.property, source.ini, markup.inline.raw, markup.underline.link, constant.language, constant.numeric, constant.character.escape, constant.other.color, constant.other.color.rgb-value, string, string.quoted.double.html, string.quoted.single.html, string.unquoted.preprocessor, storage.type.number, storage.type.string | #58A75E | |
| support.constant.property-value.css | #58A75E | bold |
| constant.language.boolean.true, string.regexp, meta.group.regexp, punctuation.parenthesis.begin.regexp, punctuation.parenthesis.end.regexp, punctuation.parenthesis.non-capturing.begin.regexp, punctuation.parenthesis.non-capturing.end.regexp, constant.character.escape.backslash.regexp, constant.other.character-class.regexp, constant.other.character-class.set.regexp, constant.other.character-class.range.regexp, constant.character.numeric.regexp, keyword.control.anchor.regexp, keyword.operator.or.regexp, keyword.operator.disjunction.regexp, keyword.operator.quantifier.regexp, keyword.operator.negation.regexp | #76B77B | |
| comment.block.documentation, comment.block.triple-slash | #76B77B | bold |
| meta.example.jsdoc | #CDBD96AA | |
| meta.tag.sgml.doctype, punctuation.definition.block.tag.jsdoc, storage.type.class.jsdoc | #CDBD9644 |
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}!`;
}