JZ Themes
Publisher: Jay ZelenkovThemes in package: 2
DBT-inspired dark and light color themes for VS Code and Cursor
DBT-inspired dark and light color themes for VS Code and Cursor
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 |
|---|---|---|
| punctuation | #2f2d2cff | — |
| delimiter | #2f2d2cff | — |
| delimiter.jinja | #2f2d2cff | — |
| comment | #497f16ff | — |
| keyword | #006dceff | — |
| operator | #736d6cff | — |
| operator.sql | #736d6cff | — |
| type | #4e4a49ff | — |
| class | #17806cff | — |
| function | #ab5100ff | — |
| method | #ab5100ff | — |
| variable | #0079a2ff | — |
| string | #c13900ff | — |
| string.value | #006dceff | — |
| string.sql | #c13900ff | — |
| string.jinja.sql | #c13900ff | — |
| support.type.property-name.json | #0079a2ff | — |
| support.type.property-name.yaml | #0079a2ff | — |
| support.type.property-name.yml | #0079a2ff | — |
| entity.name.tag.yaml | #0079a2ff | — |
| entity.name.tag.yml | #0079a2ff | — |
| constant.language.json | #8b0839ff | — |
| constant.language.yaml | #8b0839ff | — |
| constant.language.yml | #8b0839ff | — |
| punctuation.definition.string.begin.json | #2f2d2cff | — |
| punctuation.definition.string.end.json | #2f2d2cff | — |
| punctuation.definition.string.begin.yaml | #2f2d2cff | — |
| punctuation.definition.string.end.yaml | #2f2d2cff | — |
| punctuation.definition.string.begin.yml | #2f2d2cff | — |
| punctuation.definition.string.end.yml | #2f2d2cff | — |
| punctuation.separator.key-value.json | #2f2d2cff | — |
| punctuation.separator.key-value.yaml | #2f2d2cff | — |
| punctuation.separator.key-value.yml | #2f2d2cff | — |
| number | #1e8432ff | — |
| constant | #8b0839ff | — |
| boolean | #4e4a49ff | — |
| jinja | #0079a2ff | — |
| jinja.expression | #0079a2ff | — |
| jinja.control | #0079a2ff | — |
| jinja.variable | #0079a2ff | — |
| tag.delimiter | #4e4a49ff | — |
| predefined.sql | #4e4a49ff | — |
| namespace | #17806cff | — |
| enum | #4e4a49ff | — |
| interface | #4e4a49ff | — |
| struct | #4e4a49ff | — |
| typeParameter | #4e4a49ff | — |
| property | #0079a2ff | — |
| enumMember | #8b0839ff | — |
| decorator | #ab5100ff | — |
| event | #0079a2ff | — |
| macro | #ab5100ff | — |
| label | #0079a2ff | — |
| regexp | #c13900ff | — |
| #2f2d2cff | — |
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}!`;
}