SeaShells Theme
Publisher: nemoDreamingThemes in package: 2
A VS Code theme based on the SeaShells terminal color scheme.
A VS Code theme based on the SeaShells terminal color scheme.
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 |
|---|---|---|
| string | #deb88d | — |
| string.template | #027c9b | — |
| string.template punctuation | #50a3b5 | — |
| constant.language | #fca02f | italic |
| constant.numeric | #50a3b5 | — |
| constant.language.json, constant.language.import-export-all | #027c9b | — |
| support.class | #50a3b5 | — |
| support.variable | #deb88d | — |
| variable, meta.definition.variable entity.name.function | #deb88d | — |
| source.vue meta.attribute variable | — | bold |
| variable.parameter | — | italic |
| variable.object.property, meta.field.declaration string, variable.other.object.property | #027c9b | — |
| support.variable.property, variable.other.property | #68d4f1 | — |
| variable.other.constant | #fee4ce | — |
| variable.language.this | — | italic |
| modifier, support.type.object | #027c9b | — |
| keyword | #fca02f | — |
| keyword.control.loop, keyword.control.conditional, keyword.control.trycatch | #fca02f | — |
| keyword.control.import, keyword.control.from, keyword.control.export, keyword.control.default | #fee4ce | italic |
| keyword.control.flow | #68d4f1 | italic |
| entity.name.function, support.function | #50a3b5 | — |
| new.expr entity.name.function | #fee4ce | bold |
| storage.type, storage.modifier | #027c9b | italic |
| support.module, support.node | #deb88d | italic |
| support.type | #68d4f1 | — |
| entity.name.type, entity.other.inherited-class | #fee4ce | — |
| comment | #50a3b566 | italic |
| entity.name.type.class | #68d4f1 | — |
| meta.definition.method entity.name.function | #50a3b5 | — |
| meta.function entity.name.function | #50a3b5 | — |
| template.expression.begin, template.expression.end | #027c9b | — |
| entity.name.tag.yaml | #68d4f1 | — |
| meta.object-literal.key, meta.object-literal.key string, support.type.property-name.json, meta.attribute entity.name, meta.attribute punctuation.separator.label | #50a3b5 | italic |
| entity.other.attribute-name.class | #027c9b | — |
| entity.other.attribute-name.id | #50a3b5 | — |
| source.css | #fca02f | — |
| meta.tag, punctuation.definition.tag | #027c9b | — |
| entity.name.tag | #50a3b5 | — |
| meta.tag entity.other.attribute-name | #027c9b | italic |
| entity.other.attribute-name | #fca02f | — |
| markup.heading | #027c9b | — |
| text.html.markdown meta.link.inline, meta.link.reference | #deb88d | — |
| text.html.markdown beginning.punctuation.definition.list | #027c9b | — |
| markup.italic | #434b53 | italic |
| markup.bold | #fee4ce | bold |
| markup.bold markup.italic, markup.italic markup.bold | #fee4ce | — |
| keyword.other.definition.ini | #deb88d | — |
| entity.name.section.group-title.ini | #027c9b | — |
| punctuation.definition.tag | #50a3b5 | — |
| storage.modifier.ts, entity.name.type.module.ts, support.type.primitive.ts | #50a3b5 | — |
| entity.name.type.instance.jsdoc | #50a3b5 | — |
| punctuation.separator.parameter | #50a3b566 | — |
| meta.brace, punctuation.definition.parameters, punctuation.definition.block, punctuation.terminator.statement, punctuation.separator.comma, punctuation.section.embedded | #50a3b566 | — |
| token.info-token | #1e4950 | — |
| token.warn-token | #fca02f | — |
| token.error-token | #d15123 | — |
| token.debug-token | #027c9b | — |
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}!`;
}