Slatewave
Publisher: Kevin Langley JrThemes in package: 1
Dark theme matching the Slatewave oh-my-posh prompt — slate foundation, teal signature, sky/rose/purple/amber accents.
Dark theme matching the Slatewave oh-my-posh prompt — slate foundation, teal signature, sky/rose/purple/amber accents.
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.quoted.docstring | #64748b | italic |
| variable, string constant.other.placeholder | #e2e8f0 | — |
| variable.parameter, meta.function.parameters variable | #cbd5e1 | italic |
| variable.other.property, variable.other.object.property, meta.object-literal.key, support.type.property-name | #cbd5e1 | — |
| variable.language, variable.other.readwrite.instance | #B388FF | italic |
| constant, variable.other.constant, constant.other.caps | #fb7185 | — |
| constant.numeric, constant.language.boolean, constant.language.null, constant.language.undefined, constant.language.nan, constant.language.infinity | #fb7185 | — |
| constant.character.escape, constant.character.entity | #fbbf24 | — |
| string, string.quoted, punctuation.definition.string | #5eead4 | — |
| punctuation.definition.template-expression, punctuation.section.embedded | #B388FF | — |
| string.regexp, constant.other.character-class.regexp, keyword.control.anchor.regexp | #fb7185 | — |
| keyword, keyword.control, keyword.other, keyword.operator.new, keyword.operator.expression, keyword.operator.logical, keyword.operator.word | #38bdf8 | — |
| storage, storage.type, storage.modifier | #B388FF | italic |
| entity.name.type, entity.name.class, entity.name.interface, entity.name.enum, support.type, support.class, meta.type.declaration entity.name.type | #99f6e4 | — |
| support.type.primitive, support.type.builtin, keyword.type | #38bdf8 | — |
| entity.name.function, meta.function-call entity.name.function, support.function, meta.require, variable.function | #7dd3fc | — |
| meta.method-call entity.name.function, meta.function-call.method | #7dd3fc | — |
| meta.decorator, meta.decorator entity.name.function, punctuation.decorator, tag.decorator | #fbbf24 | italic |
| keyword.operator, keyword.operator.arithmetic, keyword.operator.assignment, keyword.operator.comparison, keyword.operator.bitwise, keyword.operator.accessor | #94a3b8 | — |
| punctuation, punctuation.separator, punctuation.terminator, meta.brace, meta.delimiter | #94a3b8 | — |
| invalid, invalid.illegal | #ef5350 | italic |
| invalid.deprecated | #b45309 | italic |
| entity.name.tag, meta.tag, support.class.component | #38bdf8 | — |
| entity.other.attribute-name, meta.attribute | #B388FF | italic |
| punctuation.definition.tag, punctuation.definition.tag.begin, punctuation.definition.tag.end | #64748b | — |
| entity.name.tag.css, entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #5eead4 | — |
| support.type.property-name.css, meta.property-name.css | #7dd3fc | — |
| support.constant.property-value.css, meta.property-value.css | #e2e8f0 | — |
| entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #fbbf24 | — |
| variable.css, variable.other.custom-property.css | #B388FF | — |
| keyword.other.unit.css, keyword.other.unit | #94a3b8 | — |
| markup.heading, entity.name.section.markdown, punctuation.definition.heading.markdown | #5eead4 | bold |
| markup.bold, punctuation.definition.bold | #38bdf8 | bold |
| markup.italic, punctuation.definition.italic | #B388FF | italic |
| markup.inline.raw, markup.raw.inline, markup.fenced_code.block | #99f6e4 | — |
| markup.underline.link, string.other.link | #38bdf8 | underline |
| meta.link.inline.markdown string.other.link, entity.name.reference.link.markdown | #5eead4 | — |
| markup.list, punctuation.definition.list.begin | #fb7185 | — |
| markup.quote, punctuation.definition.quote | #94a3b8 | italic |
| markup.inserted, meta.diff.header.to-file | #5eead4 | — |
| markup.deleted, meta.diff.header.from-file | #fb7185 | — |
| markup.changed | #fbbf24 | — |
| meta.diff.header, meta.diff.range | #B388FF | — |
| support.type.property-name.json, meta.structure.dictionary.json support.type.property-name.json | #7dd3fc | — |
| entity.name.tag.yaml, string.unquoted.plain.out.yaml | #7dd3fc | — |
| support.function.builtin.shell, variable.parameter.posix-reserved.shell | #38bdf8 | — |
| variable.other.normal.shell, variable.other.positional.shell | #B388FF | — |
| text.git-commit, meta.scope.message.git-commit | #e2e8f0 | — |
| string.other.link, markup.underline | #38bdf8 | — |
| entity.name.package.go | #5eead4 | — |
| string.quoted.double.go | #5eead4 | — |
| string.quoted.raw.go | #fbbf24 | — |
| variable.language.special.self.python, variable.language.special.cls.python | #B388FF | italic |
| meta.function.decorator.python, entity.name.function.decorator.python | #fbbf24 | italic |
| variable.language.this, variable.language.super | #B388FF | italic |
| punctuation.section.embedded.begin.jsx, punctuation.section.embedded.end.jsx, punctuation.section.embedded.begin.tsx, punctuation.section.embedded.end.tsx | #B388FF | — |
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}!`;
}