Coral Reef Dark
Publisher: The Orange CatThemes in package: 1
A coral reef inspired visual studio code theme
A coral reef inspired visual studio code theme
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 |
|---|---|---|
| keyword, storage.type, storage.modifier | #2EC4B6 | — |
| string | #D5C9B7 | — |
| constant.numeric, constant.character.numeric | #FF7F51 | — |
| variable, identifier | #FFAA8A | — |
| entity.name.function, support.function | #CDAFC1 | — |
| variable.other.property | #F2C94C | — |
| punctuation, meta.brace | #FFAA8A | — |
| comment.line.double-slash.js, punctuation.definition.comment.js | #5C6370 | italic |
| entity.name.tag.css, support.type.property-name.css, support.type.vendored.property-name.css | #FFAA8A | — |
| support.constant.property-value.css, punctuation.definition.constant.css, constant.other.color.rgb-value.hex.css, string.quoted.single.css, meta.property-value.css | #F2C94C | — |
| entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css, support.type.property-name.media.css, meta.property-list.css, source.css | #FFAA8A | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #2EC4B6 | — |
| punctuation.definition.entity.css, punctuation.separator.key-value.css | #FFD4C6 | — |
| keyword.other.unit.css, constant.numeric.css | #FF7F51 | — |
| meta.at-rule.keyframes.body.css, source.css | #FF7F51 | — |
| support.function.gradient.css, support.constant.color.css | #CDAFC1 | — |
| entity.other.pseudo-class.css, entity.other.pseudo-element.css | #2EC4B6 | italic |
| punctuation.definition.comment.begin.css, punctuation.definition.comment.end.css, comment.block.css, source.css | #5C6370 | italic |
| entity.name.tag.html, meta.tag.structure.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html | #2EC4B6 | — |
| entity.other.attribute-name.html | #FFAA8A | italic |
| string.quoted.double.html, string.quoted.single.html | #CDAFC1 | — |
| meta.attribute.html | #FF7F51 | — |
| constant.character.entity.html | #CDAFC1 | — |
| invalid.illegal.unmatched-tag.html | #CC6542 | bold |
| markup.heading.html | #2EC4B6 | bold |
| markup.bold.html | #FF7F51 | bold |
| markup.italic.html | #CDAFC1 | italic |
| text.html.derivative | #FFD4C6 | — |
| punctuation.definition.comment.html, comment.block.html | #5C6370 | italic |
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}!`;
}