SpaceBlack
Publisher: Noufal PPThemes in package: 1
Dark theme forked from sublime material spaceblack theme.
Dark theme forked from sublime material spaceblack 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 |
|---|---|---|
| — | #c0c5ce | — |
| variable.parameter.function | #c0c5ce | — |
| comment, punctuation.definition.comment, string.quoted.docstring.multi.python, string.quoted.docstring.multi.python punctuation.definition.string.begin.python, string.quoted.docstring.multi.python punctuation.definition.string.end.python, string.quoted.docstring.multi.python constant.character.escape.python | #65737e | — |
| punctuation.definition.string, punctuation.definition.variable, punctuation.definition.string, punctuation.definition.parameters, punctuation.definition.string, punctuation.definition.array | #c0c5ce | — |
| none | #c0c5ce | — |
| keyword.operator | #c0c5ce | — |
| keyword | #BB80B0 | — |
| variable | #d0d5ce | — |
| variable.language.this.js | #C15863 | — |
| variable.other.readwrite.instance.ruby | #C15863 | — |
| entity.name.function, meta.require, support.function.any-method | #7194B8 | — |
| support.class, entity.name.class, entity.name.type.class | #ebcb8b | — |
| meta.class | #eff1f5 | — |
| keyword.other.special-method | #7194B8 | — |
| storage | #BB80B0 | — |
| support.function | #96b5b4 | — |
| string, constant.other.symbol, entity.other.inherited-class | #a3be8c | — |
| constant.numeric | #d08770 | — |
| none | #d08770 | — |
| none | #d08770 | — |
| constant | #d08770 | — |
| entity.name.tag | #C15863 | — |
| entity.other.attribute-name | #d08770 | — |
| entity.other.attribute-name.id, punctuation.definition.entity | #7194B8 | — |
| meta.selector | #BB80B0 | — |
| none | #d08770 | — |
| markup.heading punctuation.definition.heading, entity.name.section | #7194B8 | |
| keyword.other.unit | #d08770 | — |
| markup.bold, punctuation.definition.bold | #ebcb8b | bold |
| markup.italic, punctuation.definition.italic | #BB80B0 | italic |
| markup.raw.inline | #a3be8c | — |
| string.other.link, punctuation.definition.string.end.markdown | #C15863 | — |
| meta.link | #d08770 | — |
| markup.list | #C15863 | — |
| markup.quote | #d08770 | — |
| meta.separator | #c0c5ce | — |
| markup.inserted, markup.inserted.git_gutter | #a3be8c | — |
| markup.deleted, markup.deleted.git_gutter | #C15863 | — |
| markup.changed, markup.changed.git_gutter | #BB80B0 | — |
| markup.ignored, markup.ignored.git_gutter | #4f5b66 | — |
| markup.untracked, markup.untracked.git_gutter | #4f5b66 | — |
| constant.other.color | #96b5b4 | — |
| string.regexp | #96b5b4 | — |
| constant.character.escape | #96b5b4 | — |
| punctuation.section.embedded, variable.interpolation | #ab7967 | — |
| invalid.illegal | #647187 | — |
| sublimelinter.mark.warning | #DDB700 | — |
| sublimelinter.gutter-mark | #FFFFFF | — |
| sublimelinter.mark.error | #D02000 | — |
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}!`;
}