Tulin Design
Publisher: tulindesignThemes in package: 2
My custom theme, because I couldn't choose :)
My custom theme, because I couldn't choose :)
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, punctuation.definition.comment, source.diff | #647884 | — |
| entity.name.function, support.function, meta.definition.function, meta.diff.range, punctuation.definition.range.diff | #B978E8 | — |
| keyword.control.conditional.js, keyword.control.loop.js, punctuation.definition.keyword, variable.language, markup.deleted, meta.diff.header.from-file, punctuation.definition.deleted, punctuation.definition.from-file.diff | #E06C75 | — |
| constant, support.constant | #60D1DE | — |
| variable.other.readwrite.alias.js | #E5C07B | — |
| storage, entity.name.namespace, meta.diff.header, entity.name.tag.html, entity.name.tag.js, keyword.operator.expression.in.js | #61AFEF | — |
| markup.inline.raw.string, string, markup.inserted, punctuation.definition.inserted, meta.diff.header.to-file, punctuation.definition.to-file.diff | #87C379 | — |
| punctuation.definition.entity, meta.function-call.js, meta.selector.css | #E5C07B | — |
| variable.other.constant.js, variable.other.object.js, meta.var-single-variable.expr.js, entity.other.attribute-name.js, variable.language.this.js, keyword.operator.arithmetic.js, keyword.operator.assignment.js, keyword.operator.comparison.js, keyword.operator.assignment.compound.js, meta.property-name.css, entity.other.attribute-name.html, string.quoted.double.json | #BDD8FF | — |
| variable.parameter.js, meta.object-literal.key.js, meta.object.member.js, variable.other.property.js, support.constant.property-value.css, meta.property-value.css, meta.property-list.css | #D3D9E3 | — |
| keyword.other.important.css | #e06c75 | — |
| keyword.control.flow.js | #FE9EA5 | — |
| meta.brace, punctuation | #7D91A4 | — |
| keyword | #61AFEF | — |
| markup.bold, punctuation.definition.bold, entity.other.attribute-name.id | — | bold |
| comment, markup.italic, punctuation.definition.italic | — | italic |
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}!`;
}