Astroid Theme
Publisher: simmxnsThemes in package: 1
Astroid is a vscode theme that improves vscode's dark+ theme considerably
Astroid is a vscode theme that improves vscode's dark+ theme considerably
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 |
|---|---|---|
| source.shell | #D4CEBB | — |
| comment, punctuation.definition.comment, punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php, punctuation.definition.tag | #6B6B6B | — |
| support.type.object.module, keyword.other.type.php, entity.name.class, keyword.operator.logical.shell, keyword.control, keyword.blade, storage.type.type, storage.type, storage.type.function, punctuation.definition.block.tag, storage.modifier, keyword.other.use.php, keyword.other.phpdoc.php, meta.at-rule.include.scss, meta.at-rule.mixin.scss, variable.language.super, keyword.other.using.directive.cpp, keyword.operator.arithmetic, keyword.operator.logical, keyword.operator.comparison, keyword.operator.ternary, keyword.operator.assignment, keyword.operator.or.regexp, storage.modifier.reference.cpp, keyword.operator.bitwise.cpp | #D2A8FF | — |
| constant.language.boolean, constant.language, entity.name.section.group-title.ini, constant.numeric.decimal, support.type.builtin, support.type.primitive, string.regexp, entity.other.attribute-name.id.css, entity.other.attribute-name.class.css, entity.name.tag.html, entity.name.tag.localname.xml | #80C0F5 | — |
| entity.name.function, punctuation.decorator, support.function.builtin.shell, meta.scope.logical-expression.shell, keyword.other.unit.percentage.css, variable.other.bracket.shell, keyword.cmake, keyword.operator.wordlike.cpp, keyword.operator.functionlike.cpp, keyword.other.definition.ini | #E96192 | — |
| support.constant.property-value.css, support.constant.font-name.css, keyword.other.unit.suffix.floating-point.cpp, entity.name.scope-resolution.cpp, variable.parameter, variable.other.object, entity.name.type.class.cpp, entity.name.scope-resolution.parameter.cpp, entity.name.type.cpp, entity.name.type.alias, entity.name.type.instance, entity.other.inherited-class, support.class, entity.name.type, entity.name.tag, string.quoted.double.html, meta.attribute.name.html | #F28773 | — |
| string | #77C9BF | — |
| constant.character.escape | #3A857C | — |
| variable.language.this | #F28773 | italic |
| meta.import, variable.other.readwrite, meta.definition.variable, support.type.property-name, meta.object-literal.key, meta.function-call, variable.other.constant.object, variable.other.constant, variable.other.enummember, support.type.property-name.css, variable.other.php, meta.jsx.children.tsx, punctuation.definition.block, keyword.operator.increment, meta.brace.square, meta.brace.round, variable.scss, source.ignore, variable.other.normal.shell, variable.other.positional.shell, text, source.cmake, source.ini, support.variable, meta.function-call.ts | #D4CEBB | — |
| entity.other.attribute-name, keyword.operator.new, support.other.namespace.php, variable.other.readwrite.cpp, entity.name.scope-resolution.template.call.cpp, meta.body.function.definition.cpp, variable.object.property, variable.other.object.property, variable.other.property | #C1BEB0 | — |
| keyword.operator.class.php, punctuation.terminator.statement, punctuation.terminator.expression, punctuation.separator, punctuation.definition.typeparameters.end, punctuation.definition.typeparameters.begin, keyword.operator.type, punctuation.definition.bracket.curly, entity.name.function.operator.member.cpp, entity.name.function.operator.cpp | #808080 | — |
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}!`;
}