PHP Point (light theme)
Publisher: phppointThemes in package: 1
Best color combination light theme.
Best color combination light 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, punctuation.definition.comment | #1c8422f6 | italic strikethrough |
| comment.block.preprocessor | #a23a3a | |
| comment.documentation, comment.block.documentation | #448C27 | — |
| invalid.illegal | #f73232 | — |
| keyword.operator | #0864a5 | — |
| keyword, storage | #f07f34 | italic |
| storage.type, support.type | #c60673 | — |
| constant.language, support.constant, variable.language | #e05a06 | italic bold |
| variable, support.variable | #cd4915 | — |
| entity.name.function, support.function | #a2470a | bold |
| entity.name.type, entity.other.inherited-class, support.class | #056e2f | bold |
| entity.name.exception | #660000 | — |
| entity.name.section | — | bold |
| constant.numeric, constant.character, constant | #096f91 | italic |
| string | #0a791fd7 | — |
| constant.character.escape | #ad2572 | — |
| string.regexp | #4bcd69 | — |
| constant.other.symbol | #d1d71b | — |
| punctuation | #af1524c5 | bold |
| meta.tag.sgml.doctype, meta.tag.sgml.doctype string, meta.tag.sgml.doctype entity.name.tag, meta.tag.sgml punctuation.definition.tag.html | #ea8d31 | — |
| meta.tag, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html | #9e061c | — |
| entity.name.tag | #d65418 | italic |
| meta.tag entity.other.attribute-name, entity.other.attribute-name.html | #068c95 | italic |
| constant.character.entity, punctuation.definition.entity | #AB6526 | — |
| meta.selector, meta.selector entity, meta.selector entity punctuation, entity.name.tag.css | #0e5fa1 | italic bold |
| meta.property-name, support.type.property-name | #0e5c8d | italic bold |
| meta.property-value, meta.property-value constant.other, support.constant.property-value | #448C27 | — |
| keyword.other.important | — | bold |
| markup.changed | #000000 | — |
| markup.deleted | #000000 | — |
| markup.italic | — | italic |
| markup.error | #660000 | — |
| markup.inserted | #000000 | — |
| meta.link | #4B83CD | — |
| markup.output, markup.raw | #777777 | — |
| markup.prompt | #777777 | — |
| markup.heading | #AA3731 | — |
| markup.bold | — | bold |
| markup.traceback | #660000 | — |
| markup.underline | — | italic bold |
| markup.quote | #7A3E9D | — |
| markup.list | #4B83CD | — |
| markup.bold, markup.italic | #448C27 | — |
| markup.inline.raw | #AB6526 | |
| meta.diff.range, meta.diff.index, meta.separator | #434343 | — |
| meta.diff.header.from-file | #434343 | — |
| meta.diff.header.to-file | #434343 | — |
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}!`;
}