gosurajBtw Theme
Publisher: GoSurajThemes in package: 1
Minimal super-dark high-contrast VSCode color theme. Inspired by GoSuraj.
Minimal super-dark high-contrast VSCode color theme. Inspired by GoSuraj.
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 |
|---|---|---|
| variable, entity.name.tag.css, entity.other.attribute-name, source.css entity.other.attribute-name, source.css.less entity.other.attribute-name.id, source.scss entity.other.attribute-name, meta.structure.dictionary.key.python, support.type.vendored.property-name, support.type.property-name, variable.css, variable.scss, variable.parameter, variable.other, variable.other.member, variable.other.readwrite, variable.other.constant, constant.other.caps, variable.other.less, meta.return-type, support.class, entity.name.type, entity.name.class, source.cs storage.type, meta.type.cast.expr, meta.type.new.expr, support.constant, support.constant.math, support.constant.dom, support.constant.json, entity.other.inherited-class, variable, meta.definition.variable.name, support.variable, meta.object-literal.key, meta.object-literal.key, entity.name.function, support.constant.property-value, support.constant.font-name, support.constant.media-type, support.constant.media, constant.other.color.rgb-value, constant.other.rgb-value, support.constant.color, markup.heading, constant.sha.git-rebase, source.python, meta.meta.access.python, meta.attribute.python, meta.function-call.arguments, string.unquoted.argument.shell, constant.other.option, meta.declaration.dart, source.dart, entity.name.tag.yaml, fenced_code.block.language.markdown, keyword.other.definition.ini, storage.modifier.import.java, meta.import.java, source.java, meta.method-call.java, entity.name.package.kotlin, source.kotlin, log.exceptiontype, constant.language.symbol.ruby, constant.language.symbol.hashkey.ruby, source.ruby, source.sql, entity.name.variable.parameter.cs, storage.type.haskell, source.haskell, source.sonic-pi | #00FF00 | — |
| entity.name.tag, support.class.component, entity.name.function, support.function, support.constant.handlebars, support.function.git-rebase, variable.function, meta.method-call, variable.other.method, support.type, meta.function-call.generic.python, source.ruby, markup.underline.link.markdown | #FFFF00 | — |
| constant.language, constant.numeric, constant.other.color.rgb-value, constant.other.rgb-value, support.constant.color, meta.selector, meta.preprocessor, meta.preprocessor.numeric, storage, storage.type, storage.modifier, keyword, keyword.control, keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof, keyword.operator.logical.python, keyword.other.unit, variable.language.wildcard.java, storage.modifier.package.java, variable.language.this, keyword.control, punctuation.definition.keyword, support.function.builtin.shell, string.other.end.yaml, punctuation.definition.quote.begin.markdown, punctuation.definition.list.begin.markdown, meta.link.inline.markdown, punctuation.definition.link.description.begin.markdown, punctuation.definition.markdown, entity.name.tag.localname.xml, keyword.other.import.java, constant.symbol.sonic-pi | #FF00FF | — |
| constant.regexp, meta.preprocessor.string, string, string.quoted, string.interpolated, punctuation.definition.string, string.tag, string.value, string.regexp, punctuation.definition.template-expression.begin.js, punctuation.definition.template-expression.begin.ts, punctuation.definition.template-expression.end.ts, punctuation.definition.template-expression.end.js, markup.inline.raw.string.markdown, markup.underline.link.image.markdown, source.ini, constant.language.symbol.ruby, string.other.link.title.markdown | #00BFFF | — |
| keyword.operator, keyword.operator.assignment, keyword.operator.arithmetic, meta.punctuation.separator, punctuation.definition.tag, meta.diff.header, meta.function-call.python | #FFFFFF | — |
| comment, punctuation.definition.comment.python | #808080 | — |
| emphasis | — | italic |
| strong | — | bold |
| invalid | #FF0000 | — |
| markup.underline | — | underline |
| markup.bold | — | bold |
| markup.italic | — | italic |
| markup.inserted | #00FF00 | — |
| markup.deleted | #FF0000 | — |
| markup.changed | #FFFF00 | — |
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}!`;
}