Tidepool Color Theme
Publisher: Colby Lee KaukThemes in package: 2
A calm, cool dark theme in greens, teals, and blues - built with red-green color blindness in mind. The editor and integrated terminal share one palette.
A calm, cool dark theme in greens, teals, and blues - built with red-green color blindness in mind. The editor and integrated terminal share one palette.
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, string.comment | #6E6E6E | — |
| string, string.quoted, string.template, punctuation.definition.string | #42B883 | — |
| string.regexp, constant.character.escape | #5BD39B | — |
| constant.numeric, constant.language, constant.language.boolean, constant.language.null, constant.language.undefined, support.constant | #42B883 | — |
| keyword, keyword.control, keyword.operator.expression, keyword.operator.new, keyword.operator.logical, keyword.other, storage.type, storage.modifier, modifier | #4FB0C2 | — |
| keyword.operator, punctuation.separator, punctuation.terminator, punctuation.accessor, meta.brace, punctuation.definition.parameters | #E5E5E5 | — |
| entity.name.type, entity.name.class, entity.other.inherited-class, support.type, support.class, entity.name.type.class, meta.type.declaration | #6FC9DA | — |
| entity.name.function, support.function, meta.function-call.generic, variable.function | #AAC8E4 | — |
| variable, variable.other, variable.other.readwrite, meta.definition.variable.name, variable.other.constant | #5BD39B | — |
| variable.parameter, meta.function.parameters | #5BD39B | — |
| variable.language, variable.language.this | #4FB0C2 | — |
| variable.other.property, variable.other.object.property, support.variable.property, meta.object-literal.key, variable.other.member | #42B883 | — |
| entity.name.tag, punctuation.definition.tag | #4FB0C2 | — |
| entity.other.attribute-name | #6FC9DA | — |
| source.css entity.other.attribute-name.class, source.css entity.other.attribute-name.id | #6FC9DA | — |
| support.type.property-name.css, support.type.property-name | #AAC8E4 | — |
| meta.decorator, entity.name.function.decorator, punctuation.decorator | #AAC8E4 | — |
| entity.name.namespace, entity.name.module | #6FC9DA | — |
| markup.heading, entity.name.section | #4FB0C2 | bold |
| markup.bold | #F6F7F8 | bold |
| markup.italic | #E5E5E5 | italic |
| markup.inline.raw, markup.fenced_code, markup.raw | #42B883 | — |
| markup.underline.link, string.other.link | #4FB0C2 | — |
| markup.inserted | #5BD39B | — |
| markup.deleted | #D5685C | — |
| markup.changed | #E6C275 | — |
| invalid, invalid.illegal | #CC6A4A | — |
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}!`;
}