RS Theme
Publisher: resureThemes in package: 2
Simple themes based on Xcode colors
Simple themes based on Xcode colors
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 |
|---|---|---|
| new.expr entity.name | #713DA9 | — |
| comment, comment storage.type | #536579 | italic |
| entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-class.scss, entity.other.attribute-name.pseudo-element.css, entity.other.attribute-name.pseudo-element.scss, support.function.calc.css, support.function.calc.scss, support.type.property-name.css, support.type.property-name.scss, support.type.vendored.property-name.css, support.type.vendored.property-name.scss, meta.property-value.css support.constant, meta.property-value.scss support.constant, meta.property-value.css support.constant.property-value, meta.property-value.scss support.constant.property-value, support.function.transform.css, support.function.transform.scss | #AA0D91 | — |
| meta.decorator, meta.decorator punctuation.decorator, meta.decorator variable.other.readwrite, meta.decorator meta.function-call entity.name.function | #643820 | — |
| meta.tag.sgml.html | #A6A6A6 | — |
| entity.name.function, support.function | #4B22B0 | — |
| meta.property-list meta.property-name, support.type.property-name, support.type.map.key, entity.name.tag.yaml | #4B22B0 | — |
| keyword.control, keyword.declaration, keyword.expressions-and-types, keyword.operator.new, keyword.reserved, keyword.statement, storage.type, storage.modifier, constant.language, variable.language.super, variable.language.this, text.html entity.name.tag, meta.tag entity.name.tag, meta.tag support.class, string.regexp keyword.other | #AD3DA4 | bold |
| storage.type.function.arrow, meta.template.expression punctuation, punctuation.separator.key-value, meta.object-literal.key meta.brace.square, meta.template.expression keyword.operator, keyword.operator.or.regexp, keyword.operator.quantifier, punctuation.definition.group.regexp, punctuation.definition.character-class | #000000 | — |
| meta.tag entity.other.attribute-name, constant.character.escape.backslash | #816927 | — |
| constant.numeric, keyword.other.unit, constant.other.color | #272AD8 | — |
| string, variable.parameter.url.scss, markup.heading.markdown, beginning.punctuation.definition.list.markdown, meta.template.expression meta.embedded punctuation.definition.string.begin, meta.template.expression meta.embedded punctuation.definition.string.end | #D12F1B | — |
| meta.type, meta.return.type, entity.name.type, support.type.primitive | #713DA9 | — |
| meta.objectliteral variable.other.object, entity.name.type.module, entity.other.inherited-class, variable.scss, variable.other.bracket.shell, entity.name.function.scss | #3F6E74 | — |
| keyword.control.at-rule, meta.import variable.other.readwrite, meta.definition.variable variable.other.readwrite, meta.definition.variable variable.other.constant, meta.template.expression variable.other.readwrite, meta.template.expression variable.other.constant, support.constant.property-value | #000000 | — |
| variable.other.property, variable.other.object.property, support.variable.property | #713DA9 | — |
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}!`;
}