Hackers Haze Theme
Publisher: NuufThemes in package: 1
A bias theme with a dark background and a warm foreground
A bias theme with a dark background and a warm foreground
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #1FFF2A | — |
| comment | #7D7D69 | bold italic |
| string | #F3FF6E | — |
| string.regexp | #9EFFFF | — |
| constant.numeric | #37D6CB | — |
| variable.language, variable.other | #1BDE3B | — |
| keyword | #A1AD64 | bold |
| storage | #215C1F | bold italic |
| entity.name.class, entity.name.type.class | #CDF5CC | — |
| entity.name.function | #E3CD26 | — |
| punctuation.definition.variable | — | |
| punctuation.section.embedded.begin, punctuation.section.embedded.end | #54814eff | — |
| constant.language, meta.preprocessor | #07A85D | — |
| support.function.construct, keyword.other.new | #54814eff | — |
| constant.character, constant.other | #3F8A16 | — |
| entity.other.inherited-class | — | — |
| variable.parameter | #B548BD | — |
| entity.name.tag | #7B4D94 | — |
| punctuation.definition.tag.begin, punctuation.definition.tag.end | #337275 | — |
| entity.other.attribute-name | #8DAD56 | — |
| support.function | #998842 | — |
| punctuation.separator.continuation | #54814eff | — |
| support.constant | — | — |
| support.type, support.class | #668F6E | — |
| support.type.exception | #4f8949ff | — |
| support.other.variable | — | — |
| invalid | #CC7E7E | — |
| markup.quote | #68AD1F | — |
| markup.list | #9DC734 | — |
| markup.bold, markup.italic | #519b49ff | — |
| markup.inline.raw | #54814eff | |
| markup.heading | #E08C48 | — |
| markup.heading.setext | #519449ff | |
| variable.language | #8FFFE9 | — |
| entity.name.function | #948D59 | — |
| meta.brace.round | #99FF7A | — |
| string.quoted.double.html | #82FF5C | — |
| punctuation.definition.tag | #996287 | — |
| entity.name.type.instance | #855E78 | — |
| string.quoted.js | #C7BA00 | — |
TypeScript sample highlighted with this variant's colors and tokenColors.
Loading...
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}!`;
}
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}!`;
}