EDUSER Light Theme
Publisher: EDUSERThemes in package: 1
Professional clean white VS Code light theme for EDUSER ecosystem. Optimized for SQL, HTML, CSS, JavaScript and Python.
Professional clean white VS Code light theme for EDUSER ecosystem. Optimized for SQL, HTML, CSS, JavaScript and Python.
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 |
|---|---|---|
| entity.name.tag.html | #FF0000 | — |
| entity.other.attribute-name.html | #00A72A | — |
| string.quoted.double.html, string.quoted.single.html | #0061F1 | — |
| comment.block.html, comment.line.html | #999999 | italic |
| punctuation.definition.tag | #070038 | — |
| support.type.property-name.css, support.type.property-name.scss, meta.attribute.style.html source.css | #A626A4 | |
| support.constant.property-value.css, constant.numeric.css, constant.other.color.hex.css | #FF7700 | |
| source.js variable, source.js variable.other.readwrite, source.jsx variable, source.jsx variable.other.readwrite | #070038 | |
| source.js keyword, source.js storage.type, source.js storage.modifier, source.js keyword.control.async, source.js keyword.control.await, source.js keyword.control.import, source.js keyword.control.export, source.jsx keyword, source.jsx storage.type, source.jsx storage.modifier | #A626A4 | |
| source.js entity.name.function, source.js support.function, source.js meta.function-call, source.jsx entity.name.function, source.jsx meta.function-call | #0044FF | |
| source.js variable.parameter, source.jsx variable.parameter | #070038 | |
| source.js variable.language.this, source.jsx variable.language.this | #A64000 | |
| source.js variable.other.property, source.js variable.other.object.property, source.jsx variable.other.property, source.jsx variable.other.object.property | #00AAFF | |
| source.python, variable, variable.other.readwrite | #070038 | |
| keyword, storage.type, storage.modifier | #A626A4 | |
| entity.name.function, support.function, meta.function-call.generic | #0044FF | |
| variable.parameter | #A64000 | |
| variable.other.object.property, meta.attribute.python | #00AAFF | |
| string | #00A72A | |
| constant.numeric | #FF6400 | |
| constant.language, constant.other | #01C7F3 | |
| keyword.operator, punctuation | #A64000 | |
| comment, punctuation.definition.comment | #999999 | italic |
| support.type.python | #FF008C | |
| storage.type.sql, support.type.sql, keyword.type.sql, storage.type.numeric.sql, storage.type.string.sql | #FF6600 | |
| source.sql keyword, keyword.other.sql, keyword.control.sql | #A626A4 | |
| source.sql constant.other.table-name | #070038 | |
| source.sql variable.other, source.sql meta.column | #009999 | |
| source.sql support.function | #0044FF | 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}!`;
}