Hardcore
Publisher: Daniel ProbstThemes in package: 1
A very dark theme inspired by the hardcore windows terminal theme.
A very dark theme inspired by the hardcore windows terminal 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 |
|---|---|---|
| comment | #575757 | |
| variable | #FFFFFF | — |
| keyword | #3498DB | — |
| keyword.operator.comparison | #CCCCC6 | — |
| keyword.operator.assignment | #CCCCC6 | — |
| keyword.operator.arithmetic | #CCCCC6 | — |
| constant.numeric | #FD971F | — |
| constant | #FD971F | — |
| constant.language | #FD971F | |
| constant.language.boolean | #FD971F | |
| string | #BEED5F | |
| constant.character.escape, string source | #A6E22E | — |
| meta.preprocessor | #5E7175 | — |
| keyword.control.import | #5E7175 | — |
| entity.name.function, keyword.other.name-of-parameter.objc | #FFFFFF | — |
| entity.name.type | #F92672 | — |
| storage.type | #7AB8E1 | — |
| storage.modifier | #569CD6 | — |
| entity.other.inherited-class | #FF669D | |
| variable.parameter | — | — |
| storage.type.method | #70727E | |
| meta.section entity.name.section, declaration.section entity.name.section | — | — |
| support.function | #DCDCDC | — |
| support.class, support.type | #DCDCDC | — |
| support.constant | #FFFFFF | — |
| support.variable | #DCDCDC | — |
| keyword.operator.js | #687687 | — |
| invalid | #ff3333 | — |
| invalid.deprecated.trailing-whitespace | — | — |
| text source, string.unquoted | — | — |
| meta.xml-processing, declaration.xml-processing | #68685B | — |
| meta.doctype, declaration.doctype | #808080 | — |
| meta.doctype.DTD, declaration.doctype.DTD | — | — |
| meta.tag, declaration.tag | #808080 | |
| entity.name.tag | #569CD6 | |
| entity.other.attribute-name | #92CAF4 | |
| string.quoted.double.xml, string.quoted.double.html | #C8C8C8 | |
| markup.heading | #569CD6 | |
| markup.quote | #DCDCDC | |
| markup.list | #DCDCDC | — |
| meta.selector.css entity.name.tag | #F92672 | bold |
| meta.selector.css entity.other.attribute-name.tag.pseudo-class | #D7BA7D | — |
| meta.selector.css entity.other.attribute-name.id | #A6E22E | — |
| meta.selector.css entity.other.attribute-name.class | #3498DB | — |
| support.type.property-name.css | #DCDCDC | — |
| meta.property-group support.constant.property-value.css, meta.property-value support.constant.property-value.css | #FFFFFF | — |
| meta.preprocessor.at-rule keyword.control.at-rule | #87CEFA | — |
| source.cs comment.block.documentation.source.cs meta.tag.xml, source.cs comment.block.documentation.source.cs meta.tag.xml entity.name.tag.localname.xml, source.cs comment.block.documentation.source.cs meta.tag.xml entity.other.attribute-name | #608B4E | — |
| markup.deleted.git_gutter | #F92672 | — |
| markup.inserted.git_gutter | #A6E22E | — |
| markup.changed.git_gutter | #967EFB | — |
| markup.ignored.git_gutter | #565656 | — |
| markup.untracked.git_gutter | #565656 | — |
| git.changes.x | — | — |
| git.changes.+ | — | — |
| git.changes.- | — | — |
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}!`;
}