Gatot Kaca
Publisher: Hafizh Maulana YThemes in package: 1
A vscode theme that suits your eyes of night coders.
A vscode theme that suits your eyes of night coders.
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 |
|---|---|---|
| string.quoted.single, string.quoted.double, string.template, string.json.comments | #EFD5AF | — |
| variable.other.property.php, source.unknown, meta.tag.metadata.doctype.html, entity.name.tag.html, keyword.control.from.js.jsx, keyword.control.from.ts.tsx, storage.type.class.php, punctuation.terminator.rule.css, constant.numeric.css, meta.property-list.css, punctuation.terminator.rule.scss, support.constant.property-value.css, support.function.basic_functions.php, variable.other.php, keyword.control.exit.php, support.other.namespace.php, variable.other.constant.property, meta.object-literal.key, meta.structure.dictionary.value.json.comments, variable.other.property.js.jsx, variable.other.property.ts.tsx, punctuation.terminator.tailwind.tailwind, text.html.php.blade, storage.type.function.php, meta.tag, meta.selector.pseudo-element.css, punctuation.terminator.apply.tailwind, entity.name.type.namespace.php, text.html.vue-html, meta.tag.block.any.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, meta.directive.vue, source.vue | #D1D5DB | — |
| comment.block, comment.line.double-slash.js, comment.line.double-slash.ts, comment.line.double-slash.php | #6B7280 | — |
| entity.other.attribute-name.html, entity.other.attribute-name.js.jsx, entity.other.attribute-name.ts.tsx, entity.other.attribute-name.class.css, entity.name.function.php, variable.language.this.php, support.function.string.php, entity.other.attribute-name.js, entity.other.attribute-name.ts, storage.type.class.php, storage.type.class.js, storage.modifier.extends.php, storage.modifier.js, storage.modifier.implements.php, keyword.other.use.php, keyword.other.namespace.php, entity.other.attribute-name.localname.xml, storage.type.enum.php, storage.modifier.php, entity.other.attribute-name.tsx, keyword.control, keyword.operator | #A5CAFF | — |
| meta.function.php, support.class.php, entity.name.type.class.php, punctuation.section.embedded.begin.php, storage.type.php, keyword.control.import.js, keyword.control.import.js.jsx, variable.other.constant.js.jsx, variable.parameter.js.jsx, variable.other.readwrite.js.jsx, variable.parameter.ts.tsx, variable.other.readwrite.ts.tsx, variable.parameter.js, variable.parameter.ts, variable.other.constant.js, variable.other.constant.ts, variable.other.readwrite.js, variable.other.readwrite.ts, keyword.control.import.ts, keyword.control.import.ts.tsx, variable.other.constant.ts.tsx, meta.import.tsx, support.type.property-name.css, meta.property-list.scss, keyword.other.class.php, constant.language.boolean.true, keyword.operator.new, keyword.other.new, keyword.other.definition.ini, variable.parameter.tailwind.tailwind, variable.parameter.layer.tailwind, entity.name.function.blade, keyword.blade, constant.numeric.decimal.php, variable.other.readwrite.tsx | #7DD3FC | — |
| keyword.other.phpdoc.php, keyword.control.return.php, keyword.operator.null-coalescing.php, entity.name.tag.js.jsx, entity.name.tag.html, variable.other.readwrite.alias.js.jsx, keyword.control.at-rule.import.css, keyword.control.at-rule.layer.tailwind, source.css, meta.at-rule.apply.tailwind, entity.name.tag.css.sass.symbol, keyword.operator.logical.php, entity.name.type.class.php, support.class.php, variable.other.readwrite.alias.js, variable.other.property.js, meta.definition.function.js.jsx, entity.name.function.js, entity.name.tag.js, variable.other.readwrite.alias.ts, variable.other.property.ts, meta.definition.function.ts.tsx, entity.name.function.ts, entity.name.function.tsx, entity.name.tag.ts, entity.name.tag.tsx, entity.other.inherited-class.php, entity.name.tag.localname.xml, entity.name.type.enum.php, entity.name.tag.template.html, entity.name.tag.script.html, meta.tag.block.any.html, entity.name.tag.style.html, variable.other.readwrite.alias.tsx | #F45282 | — |
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}!`;
}