SoftC#
Publisher: ErmiqThemes in package: 1
SoftC#
SoftC#
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 |
|---|---|---|
| — | #60ee8b | — |
| comment, punctuation.definition.comment | #7f817e | italic |
| variable, string constant.other.placeholder, variable.other.object.property | #c7c7c7 | — |
| variable.other.object | #4f89d6 | — |
| constant.other.color | #ffffff | — |
| invalid, invalid.illegal | #FF5370 | — |
| keyword, storage.type | #4f89d6 | — |
| constant.other.color, punctuation | #4f89d6 | — |
| meta.preprocessor, punctuation.separator.hash, keyword.preprocessor.define, keyword.preprocessor.else, keyword.preprocessor.endif | #b85fce | — |
| keyword.control, keyword.other.template, keyword.other.substitution | #6693ce | — |
| keyword.operator.logical, keyword.operator.assignment, keyword.operator.comparison, keyword.operator.increment, keyword.operator.relational, keyword.operator.bitwise | #ce6666 | — |
| keyword.control.conditional, keyword.control.loop, keyword.control.switch, keyword.control.case, keyword.control.flow | #56ac53 | — |
| meta.tag, entity.name.tag, entity.name.tag.localname | #ce6666 | — |
| entity.other.attribute-name | #c7c7c7 | — |
| entity.name.function, meta.function-call, variable.function, support.function, keyword.other.special-method | #c2a966 | italic |
| meta.block variable.other | #f07178 | — |
| keyword.other, constant.language, storage.modifier, support.other.variable, string.other.link | #ce6666 | — |
| constant.numeric, support.constant, constant.character, constant.escape, variable.parameter | #c9c9c9 | — |
| string.quoted.single, string.quoted.double, punctuation.definition.string.begin, punctuation.definition.string.end, constant.other.symbol, constant.other.key, entity.other.inherited-class | #b4792b | italic bold |
| entity.name, support.type, support.class, support.type.sys-types | #c7c7c7 | — |
| support.type | #4f89d6 | — |
| 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 | #B2CCD6 | — |
| entity.name.module.js, variable.import.parameter.js, variable.other.class.js | #FF5370 | — |
| variable.language | #FF5370 | italic |
| entity.name.method.js | #82AAFF | italic |
| meta.class-method.js entity.name.function.js, variable.function.constructor | #82AAFF | — |
| text.html.basic entity.other.attribute-name.html, text.html.basic entity.other.attribute-name | #FFCB6B | italic |
| entity.other.attribute-name.class | #FFCB6B | — |
| source.sass keyword.control | #82AAFF | — |
| markup.inserted | #C3E88D | — |
| markup.deleted | #FF5370 | — |
| markup.changed | #C792EA | — |
| string.regexp | #d19292 | — |
| constant.character.escape | #35688a | — |
| *url*, *link*, *uri* | — | underline |
| tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #82AAFF | italic |
| source.js constant.other.object.key.js string.unquoted.label.js | #FF5370 | italic |
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}!`;
}