Lucid
Publisher: doekeThemes in package: 1
Clear syntax colors
Clear syntax colors
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 |
|---|---|---|
| — | #cfcfcf | — |
| comment, string.comment, punctuation.definition.comment | #737373 | — |
| string, punctuation.definition.string, variable.css.string, variable.scss.string, variable.less.string, variable.sass.string, markup.changed, entity.name.filename.find-in-files, structure.dictionary.property-name.json | #00d68e | — |
| constant.numeric, constant.language, constant.character, constant.other | #FFBF69 | — |
| punctuation, meta.brace, keyword, keyword.operator, storage, storage.type, entity.name.tag, entity.name.tag.class.js, entity.name.tag.class.jsx, support.type, support.class, support.dictionary.json, support.type.property-name, unit, string.embedded, string.embedded.begin, string.embedded.end, variable.language | #a49eb1 | — |
| support.function, entity.name.function, entity.name.module, entity.name.type | #9EA8F7 | — |
| meta.definition entity.name.function, storage.identifier, entity.name.tag.class, entity.name.tag.id, entity.other.attribute-name, entity.other.inherited-class | #FFBF69 | — |
| variable.parameter, meta.definition variable | #D6788C | — |
| invalid | #F8F8F0 | — |
| invalid.deprecated | #F8F8F0 | — |
| string.detected-link | #61afef | — |
| meta.diff, meta.diff.header | #75715E | — |
| markup.deleted | #c678dd | — |
| constant.numeric.line-number.find-in-files - match | #56b6c2A0 | — |
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}!`;
}