Power Teal
Publisher: breaking-brakeThemes in package: 1
A dark theme featuring that iconic teal — the color trusted by craftsmen worldwide.
A dark theme featuring that iconic teal — the color trusted by craftsmen worldwide.
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 | #5A6B4A | |
| string | #f8f8f8 | — |
| string.quoted, string.template | #f8f8f8 | — |
| constant.numeric, constant.character.numeric | #ff9500 | — |
| constant.language, punctuation.definition.constant, variable.other.constant | #ff7575 | — |
| constant.character, constant.other | #00B0B9 | — |
| constant.character.escape | #ff9500 | — |
| string.regexp, string.regexp keyword.other | #5cc9c9 | — |
| variable | #f8f8f8 | — |
| keyword, punctuation.accessor | #c792ea | — |
| storage, storage.type | #c792ea | — |
| entity.name.class, entity.name.type.class, support.class | #ffcc00 | — |
| entity.other.inherited-class | #5cc9c9 | — |
| entity.name.function, support.function | #82b1ff | — |
| meta.function-call, variable.function | #82b1ff | — |
| variable.parameter | #ffcc00 | — |
| punctuation.definition.tag, meta.tag | #00B0B9 | — |
| entity.name.tag | #00B0B9 | — |
| entity.other.attribute-name | #ffcc00 | — |
| support.constant | #00B0B9 | — |
| support.type, entity.name.type | #ffcc00 | — |
| keyword.operator | #00B0B9 | — |
| keyword.operator.logical, keyword.operator.comparison, keyword.operator.relational | #c792ea | — |
| keyword.control, keyword.control.flow, keyword.control.conditional, keyword.control.loop | #c792ea | — |
| keyword.control.import, keyword.control.export, keyword.control.from | #c792ea | — |
| constant.language.boolean, constant.language.null, constant.language.undefined | #ff7575 | — |
| variable.language.this, variable.language.self | #5cc9c9 | italic |
| variable.other.property, variable.other.object.property | #f8f8f8 | — |
| meta.object-literal.key | #00B0B9 | — |
| punctuation.definition.string, punctuation.definition.parameters, punctuation.definition.array, punctuation.definition.block, punctuation.separator, punctuation.terminator, meta.brace | #f8f8f8 | — |
| support.type.property-name.json | #00B0B9 | — |
| meta.structure.dictionary.value.json string.quoted.double | #f8f8f8 | — |
| markup.heading, entity.name.section.markdown | #00B0B9 | bold |
| markup.bold | #ffcc00 | bold |
| markup.italic | #c792ea | italic |
| markup.inline.raw, markup.fenced_code.block | #f8f8f8 | — |
| markup.underline.link, string.other.link | #5a9bcf | — |
| markup.quote | #808080 | italic |
| markup.list | #f8f8f8 | — |
| entity.name.tag.css, entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #00B0B9 | — |
| support.type.property-name.css, meta.property-name.css | #82b1ff | — |
| support.constant.property-value.css, meta.property-value.css | #f8f8f8 | — |
| keyword.other.unit.css | #ff9500 | — |
| entity.name.function.decorator.python, punctuation.definition.decorator.python | #ffcc00 | — |
| support.function.magic.python | #5cc9c9 | — |
| entity.name.type.ts, entity.name.type.tsx, support.type.primitive.ts, support.type.primitive.tsx | #ffcc00 | — |
| entity.name.type.interface.ts, entity.name.type.interface.tsx | #5cc9c9 | — |
| keyword.package.go, keyword.import.go, keyword.function.go, keyword.type.go, keyword.struct.go, keyword.interface.go | #c792ea | — |
| entity.name.function.macro.rust, support.macro.rust | #5cc9c9 | — |
| variable.other.normal.shell, variable.other.special.shell | #00B0B9 | — |
| entity.name.tag.yaml | #00B0B9 | — |
| entity.name.type.anchor.yaml, punctuation.definition.anchor.yaml | #ffcc00 | — |
| markup.inserted, markup.inserted.diff | #008C95 | — |
| markup.deleted, markup.deleted.diff | #e05050 | — |
| markup.changed, markup.changed.diff | #ffcc00 | — |
| invalid | #ffffff | — |
| invalid.deprecated | #ffffff | — |
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}!`;
}