Spacemacs Theme +
Publisher: IdearsThemes in package: 2
A spacemacs like theme optimized for markup languages.
A spacemacs like theme optimized for markup languages.
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 |
|---|---|---|
| markup.heading.1.org, heading.1 | #4f97d7 | bold |
| markup.heading.2.org, heading.2 | #2d9574 | bold |
| markup.heading.3.org, heading.3 | #67b11d | — |
| markup.heading.4.org, heading.4 | #b1951d | — |
| markup.heading.5.org, heading.5 | #4f97d7 | — |
| markup.heading.6.org, heading.6 | #2d9574 | — |
| punctuation.definition.heading.org | #4f97d7 | bold |
| keyword.other.todo.org | #dc752f | bold |
| constant.other.priority.org | #dc752f | bold |
| entity.name.tag.org | #9f8766 | bold |
| constant.other.progress.org | #a45bad | — |
| punctuation.definition.list.begin.org | #4f97d7 | — |
| constant.language.checkbox.org | #7590db | bold |
| entity.name.tag.description.term.org | #c56ec3 | italic |
| punctuation.separator.key-value.org | #9f8766 | bold |
| constant.numeric.list-counter.org | #a45bad | — |
| entity.name.function.org | #9f8766 | bold |
| string.unquoted.org | #bc6ec5 | — |
| markup.bold.org | — | bold |
| markup.italic.org | — | italic |
| markup.underline.org | — | underline |
| markup.strikethrough.org | #dc322f | strikethrough |
| markup.inline.raw.org | #28def0 | — |
| markup.underline.link.org | #4f97d7 | underline |
| — | #6688cc | — |
| comment | #2aa1ae | — |
| string | #2d9574 | — |
| constant.numeric | #a45bad | — |
| constant.language | #a45bad | — |
| constant.character, constant.other | #a45bad | — |
| variable | #7590db | |
| keyword | #4f97d7 | — |
| storage | #4f97d7 | |
| storage.type | #ce537a | italic |
| entity.name.class, entity.name.type | #4f97d7 | bold |
| entity.other.inherited-class | #bc6ec5 | italic underline |
| entity.name.function | #bc6ec5 | |
| variable.parameter | #7590db | |
| entity.name.tag | #4f97d7 | |
| punctuation.definition.tag | #2aa1ae | — |
| entity.other.attribute-name | #bc6ec5 | |
| support.function | #bc6ec5 | bold |
| support.constant | #a45bad | |
| support.type, support.class | #ce537a | italic |
| invalid | #e0211d | — |
| meta.diff, meta.diff.header | #E0EDDD | italic |
| markup.deleted | #dc322f | — |
| markup.changed | #cb4b16 | — |
| markup.inserted | #219186 | — |
| markup.quote | #22aa44 | — |
| markup.bold, markup.italic | #22aa44 | — |
| markup.inline.raw | #9966b8 | — |
| markup.heading.setext | #ddbb88 | — |
| source.java storage.modifier.import, source.java storage.modifier.package, source.java entity.name.type.class, source.java storage.type, source.java meta.definition.class.implemented.interfaces, source.java entity.other.inherited-class | #ce537a | |
| meta.method.body.java, meta.function-call.java | #cbc1d5ff | — |
| source.java keyword.operator.assignment, source.java keyword.operator.arithmetic, source.java storage.type.function.arrow.java, source.java punctuation.definition.parameters.begin.bracket.round, source.java punctuation.definition.parameters.end.bracket.round | #cbc1d5ff | — |
| source.java begin.bracket.curly, source.java end.bracket.curly | #4f97d7 | — |
| source.java entity.name.function meta | #ce537a | — |
| source.java keyword.other.documentation.javadoc.java | #9966b8 | — |
| source.cpp keyword.control.directive | #9966b8 | — |
| source.cpp storage.type, source.cpp storage.modifier | #4f97d7 | — |
| source.clojure meta.symbol | #cbc1d5ff | — |
| source.clojure entity.global, source.clojure meta.definition.global | #ce537a | — |
| source.clojure constant.keyword | #9966b8 | — |
| source.clojure meta.symbol meta.expression, source.clojure meta.vector | #ce537a | — |
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}!`;
}