Midnight Tide
Publisher: RafaelFreitasFAThemes in package: 1
A dark theme with a cold palette inspired by Catppuccin, vibrant syntax highlighting from Dracula/Monokai, and a strong blue presence.
A dark theme with a cold palette inspired by Catppuccin, vibrant syntax highlighting from Dracula/Monokai, and a strong blue presence.
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 | #5b6078 | italic |
| keyword, keyword.control, keyword.operator.new, keyword.operator.expression, keyword.operator.logical, storage.modifier, storage.type.class, storage.type.function, storage.type.interface, storage.type.enum, storage.type.type | #c6a0f6 | — |
| storage.type | #c6a0f6 | — |
| storage.modifier, storage.modifier.readonly, keyword.control.readonly | #91d7e3 | — |
| entity.name.function, meta.function-call entity.name.function, support.function, meta.function-call.generic | #8aadf4 | — |
| entity.name.type | #7fbbb3 | — |
| entity.name.class, entity.name.type, entity.name.interface, entity.name.enum, support.class, support.type, meta.type.annotation entity.name.type, meta.type.parameters entity.name.type | #8bd5ca | — |
| support.type.primitive, support.type.builtin, keyword.type | #8bd5ca | — |
| string, string.quoted, string.template, punctuation.definition.string | #a6da95 | — |
| constant.numeric, constant.language.boolean | #f5a97f | — |
| constant.language, constant.character | #f5a97f | — |
| variable.other.property.tsx | #b8c0e0 | — |
| variable.other.property, variable.object.property, meta.object.member, support.variable.property, variable.other.object.property | #b8c0e0 | — |
| variable.parameter, meta.function.parameters variable.other, meta.parameters variable.other | #f9b38a | — |
| variable, variable.other, variable.other.readwrite, variable.other.local, variable.other.block | #cad3f5 | — |
| keyword.operator, keyword.operator.assignment, keyword.operator.comparison, keyword.operator.arithmetic, keyword.operator.type | #91d7e3 | — |
| entity.name.function.decorator, meta.decorator, punctuation.decorator | #e8a0b8 | — |
| punctuation, meta.brace, punctuation.definition.block, punctuation.separator, punctuation.terminator | #6e738d | — |
| punctuation.definition.template-expression, punctuation.section.embedded | #c6a0f6 | — |
| entity.name.namespace, entity.name.module | #8bd5ca | — |
| entity.name.tag, support.class.component | #8aadf4 | — |
| entity.other.attribute-name | #e0a3c8 | — |
| support.type.property-name.css, entity.name.tag.css | #8aadf4 | — |
| support.constant.property-value.css | #a6da95 | — |
| invalid, invalid.deprecated | #ed8796 | 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}!`;
}