Raindrop (Unofficial)
Publisher: jdussoldThemes in package: 1
An unofficial port of the Raindrop theme from ray.so
An unofficial port of the Raindrop theme from ray.so
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 |
|---|---|---|
| comment, punctuation.definition.comment | #6c808b | italic |
| comment.block.documentation | #6c808b | italic |
| storage.type.class.jsdoc, punctuation.definition.block.tag.jsdoc | #008bb7 | — |
| string | #9dd8eb | — |
| constant.character.escape | #2ed9ff | — |
| punctuation.section.embedded, punctuation.definition.template-expression | #2ed9ff | — |
| constant.numeric | #9984ee | — |
| constant.language | #9984ee | — |
| constant.other, support.constant | #9984ee | — |
| keyword, storage | #2ed9ff | — |
| keyword.operator | #2ed9ff | — |
| entity.name.function, support.function, meta.function-call entity.name.function | #1ad6b5 | — |
| entity.name.type, entity.name.class, entity.other.inherited-class, support.class, support.type | #1ad6b5 | — |
| variable | #008bb7 | — |
| variable.language | #008bb7 | italic |
| variable.other.readwrite.alias | #e4f2ff | — |
| variable.other.property, meta.property.object, support.variable.property | #e4f2ff | — |
| meta.decorator punctuation.decorator, meta.decorator entity.name.function | #1ad6b5 | italic |
| — | — | |
| entity.name.tag, support.class.component | #008bb7 | — |
| punctuation.definition.tag | #6c808b | — |
| entity.other.attribute-name | #9984ee | italic |
| — | — | |
| entity.name.tag.css, entity.name.tag.scss, entity.name.tag.less | #008bb7 | — |
| entity.other.attribute-name.class.css | #9984ee | — |
| entity.other.attribute-name.id.css | #9984ee | — |
| entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #9984ee | italic |
| support.type.property-name.css, support.type.property-name | #2ed9ff | — |
| support.constant.property-value.css, meta.property-value.css | #9dd8eb | — |
| keyword.other.unit | #9984ee | — |
| constant.other.color | #7eddb8 | — |
| keyword.other.important.css | #ff6b8a | bold |
| — | — | |
| support.type.property-name.json | #2ed9ff | — |
| source.json string | #9dd8eb | — |
| — | — | |
| string.regexp | #9dd8eb | — |
| keyword.control.anchor.regexp | #9984ee | — |
| keyword.operator.quantifier.regexp, keyword.operator.or.regexp | #2ed9ff | — |
| constant.other.character-class.regexp, constant.other.character-class.set.regexp | #1ad6b5 | — |
| punctuation.definition.group.regexp | #2ed9ff | — |
| — | — | |
| markup.heading, entity.name.section.markdown | #1ad6b5 | bold |
| markup.bold | #9984ee | bold |
| markup.italic | #9984ee | italic |
| markup.underline.link, string.other.link | #2ed9ff | underline |
| string.other.link.title.markdown | #9dd8eb | — |
| markup.inline.raw, markup.fenced_code | #7eddb8 | — |
| markup.list, punctuation.definition.list | #008bb7 | — |
| markup.quote | #6c808b | italic |
| — | — | |
| markup.inserted | #7eddb8 | — |
| markup.deleted | #ff6b8a | — |
| markup.changed | #9984ee | — |
| — | — | |
| invalid, invalid.illegal | #ff6b8a | — |
| invalid.deprecated | #ff6b8a | italic strikethrough |
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}!`;
}