britecore
Publisher: z3byThemes in package: 1
A BriteCore inspired VSCode theme
A BriteCore inspired VSCode 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 | #6272a4 | |
| string | #efb38f | — |
| constant.numeric | #efb38f | — |
| constant.language, variable.language | #efb38f | — |
| constant.character, constant.other | #efb38f | — |
| variable | #f8f8f2 | |
| variable.other.readwrite.instance | #ffb86c | |
| string.template meta.template.expression | #f8f8f2 | — |
| punctuation.definition.template-expression | #0AB3D1 | |
| constant.character.escaped, constant.character.escape, string source, string source.ruby | #0AB3D1 | |
| punctuation.section.embedded | #0AB3D1 | — |
| keyword | #0AB3D1 | — |
| storage | #0AB3D1 | |
| storage.type | #8be9fd | italic |
| entity.name | #7fcc9e | |
| variable.parameter | #ffb86c | italic |
| entity.name.tag | #0AB3D1 | |
| entity.other.attribute-name | #7fcc9e | |
| support.function | #8be9fd | |
| support.constant | #8be9fd | |
| support.type, support.class | #8be9fd | italic |
| support.other.variable | — | |
| invalid | #F8F8F0 | |
| invalid.deprecated | #F8F8F0 | — |
| meta.structure.dictionary.json string.quoted.double.json | #CFCFC2 | — |
| meta.diff, meta.diff.header | #6272a4 | — |
| markup.deleted | #0AB3D1 | — |
| markup.inserted | #7fcc9e | — |
| markup.changed | #efb38f | — |
| constant.numeric.line-number.find-in-files - match | #efb38f | — |
| entity.name.filename | #efb38f | — |
| message.error | #ff5555 | — |
| punctuation.definition.string.begin.json - meta.structure.dictionary.value.json, punctuation.definition.string.end.json - meta.structure.dictionary.value.json | #EEEEEE | |
| meta.structure.dictionary.json string.quoted.double.json | #8be9fd | — |
| meta.structure.dictionary.value.json string.quoted.double.json | #fcf0e9 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name | #7fcc9e | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name | #ffb86c | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name | #0AB3D1 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name | #efb38f | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name | #7fcc9e | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name | #ffb86c | — |
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}!`;
}