After Work Theme
Publisher: Maximilian SauerThemes in package: 3
Simple global useable theme
Simple global useable 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 |
|---|---|---|
| — | #AFAFAF | — |
| keyword.package.go, keyword.import.go, keyword.var.go, keyword.const.go, keyword.function.go, keyword.other.namespace.php, keyword.other.use.php, storage.modifier.final.php, storage.modifier.php, storage.modifier.extends.php, storage.type.class.php, storage.type.php, meta.class.js | #1976d2 | none |
| entity.name.type.class.php, entity.other.inherited-class.php, entity.name.type.class.js | — | italic |
| meta.function.php, keyword.control.return.php, keyword.control.exception.php, keyword.other.new.php, support.function.construct.output.php, keyword.control, keyword.operator, storage.type.js, keyword.control.flow.js, keyword.operator.expression.typeof.js | #63a4ff | italic |
| support.function.construct.php, support.function.var.php, support.function.array.php, support.function.network.php, support.function.json.php, support.function.mysqli.php, support.function.curl.php, keyword.control.die.php, keyword.control.exit.php, support.function.dom.js, support.function.console.js, storage.type.function.js | #fbc02d | italic |
| constant.language.php, constant.language.boolean.false.js, constant.language.boolean.true.js, constant.language.null.js, constant.language.undefined.js | #63a4ff | — |
| support.function.go, entity.name.function, support.function.magic.php, meta.function-call.php, support.type.property-name.css | #fbc02d | none |
| variable.language.this.php, variable.other.global.safer.php, constant.other.php, support.constant.property-value.css | #6ab7ff | italic |
| variable.other.assignment.go, source.go, punctuation.definition.variable.php, variable.other.class.php, variable.other.php, variable.other.property.php, variable.other.readwrite.js, variable.other.object.js, variable.other.object.property.js, variable.other.property.js, entity.other.attribute-name.class.css, punctuation.definition.entity.css, entity.other.attribute-name.id.css, support.type.property-name.json | #8ec8ff | none |
| keyword.operator.class.php | #e1e1e1 | italic |
| string.quoted.single, string.quoted.double | #99d066 | — |
| entity.name.package.go, support.class.php, support.class.builtin.php, support.class.console.js, support.other.namespace.php, entity.name.type.class.php, entity.other.inherited-class.php, entity.name.type.js, entity.name.type.namespace.php, entity.name.type.class.js, entity.other.inherited-class.js | #bebebe | italic |
| punctuation.definition.arguments.begin.bracket.round.php, punctuation.definition.arguments.end.bracket.round.php, punctuation.definition.begin.bracket.round.php, punctuation.definition.end.bracket.round.php, punctuation.definition.parameters.begin.bracket.round.php, punctuation.definition.parameters.end.bracket.round.php, punctuation.section.property-list.begin.bracket.curly.css, punctuation.section.property-list.end.bracket.curly.css, punctuation.separator.delimiter.php | #f0f0f0 | none |
| keyword.operator.assignment.php, keyword.operator.assignment.js | #f0f0f0 | none |
| keyword.operator.comparison.php, keyword.operator.logical.php, keyword.operator.comparison.js | #f0f0f0 | bold |
| punctuation.definition.end.bracket.curly.php, punctuation.definition.begin.bracket.curly.php, punctuation.definition.class.end.bracket.curly.php, punctuation.definition.class.begin.bracket.curly.php, punctuation.definition.block.js, punctuation.definition.dictionary.end.json, punctuation.definition.dictionary.begin.json, punctuation.definition.array.end.json, punctuation.definition.array.begin.json | #afafaf | — |
| punctuation.section.array.begin.php, punctuation.section.array.end.php, keyword.operator.string.php | #f0f0f0 | none |
| comment.block.documentation.phpdoc.php, comment.line.number-sign, comment.line.double-slash, comment.block, comment.line.double-dash | #558b2f | italic |
| keyword.other.phpdoc.php | — | underline |
| support.class.builtin.php, support.class.console.js | afafaf | italic |
| variable.parameter.js | #6ab7ff | underline |
| keyword.operator.error-control.php, punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php | #d32f2f | bold |
| constant.numeric | #00b0ff | — |
| meta.tag.preprocessor.xml, punctuation.definition.tag.html, entity.name.tag.structure.any.html, entity.name.tag.block.any.html, entity.name.tag.inline.any.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, entity.name.tag.html | #99d066 | — |
| entity.other.attribute-name.xml, entity.other.attribute-name.id.html, entity.other.attribute-name.html | #fbc02d | italic |
| string.quoted.double.xml, string.quoted.single.xml, string.quoted.double.html, string.quoted.single.html | #63a4ff | — |
| meta.tag.sgml.doctype.html | #f57c00 | — |
| comment.block.html | #afafaf | — |
| keyword.other.DML.sql, keyword.other.alias.sql, keyword.other.DDL.create.II.sql | #ff6e40 | bold |
| constant.other.table-name.sql, constant.other.database-name.sql | #8ec8ff | none |
| keyword.other.sql | #fbc02d | none |
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}!`;
}