Colors of BJJ
Publisher: Leandro CunhaThemes in package: 1
The VS Code Theme for BJJ lovers and everyone that want try something new
The VS Code Theme for BJJ lovers and everyone that want try something new
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 |
|---|---|---|
| keyword.operator.type.annotation.js, meta.object-literal.key.js, meta.template.expression.js, punctuation.definition.binding-pattern.object.js, punctuation.definition.dictionary.begin.json, punctuation.definition.dictionary.end.json, punctuation.separator.dictionary.key-value.json, punctuation.separator.dictionary.pair.json, punctuation.definition.block.js, variable.other.readwrite.alias.js, variable.object.property.js, variable.other.constant.js, variable.parameter.js, variable.other.object.js | #c792e9 | — |
| variable.other.object.property.js, variable.other.property.js | #B8AEF5 | — |
| punctuation.support.type.property-name.begin.json, punctuation.support.type.property-name.end.json, support.type.property-name.json, entity.name.tag.yaml | #c792e9 | — |
| punctuation.definition.string.begin.json, punctuation.definition.string.end.json, string.quoted.double.json, string.quoted.double.yaml | #F0A800 | — |
| constant.language.json, constant.numeric.json, constant.numeric.integer.yaml, entity.other.attribute-name.js | #60D800 | — |
| punctuation.definition.tag.begin.js, punctuation.definition.tag.end.js, support.class.component.js | #C0D8F0 | — |
| keyword.operator.assignment.js, keyword.operator.comparison.js, keyword.operator.ternary.js, storage.type.js, storage.type.type.js, storage.type.function.arrow.js | #C0D8F0 | bold |
| string.quoted.double.js, string.quoted.single.js, string.template.js, string.unquoted.plain.out.yaml | #D8A878 | — |
| keyword.control.import.js, keyword.control.from.js | #D87800 | — |
| meta.definition.function.js, punctuation.definition.parameters.begin.js, punctuation.definition.parameters.end.js | #F0A800 | — |
| #D8A878 | — | |
| #7848D8 | — | |
| keyword.control.export.js, keyword.control.default.js, keyword.operator.arithmetic.js, keyword.control.flow.js, storage.modifier.async.js, storage.type.function.js, support.type.object.module.js | #4FAD33 | — |
| #D30033 | — | |
| constant.language.boolean.yaml, entity.name.type.alias.js, entity.name.type.js, new.expr.js | #6090F0 | italic |
| meta.var.expr.js, source.js | #6090F0 | — |
| keyword.control.conditional.js, keyword.operator.ternary.js, meta.array.literal.js, punctuation.definition.template-expression.begin.js, punctuation.definition.template-expression.end.js | #FF5370 | — |
| keyword.operator.new.js | #FF5370 | bold |
| constant.numeric, variable.other.readwrite | #E2D0B9 | — |
| comment | #E9C79255 | italic |
| text.html.markdown | #F0A800 | — |
| markup.heading.markdown | #c792e9 | — |
| meta.link.inline.markdown | #6090F0 | — |
| markup.fenced_code.block.markdown | #E2D0B9 | — |
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}!`;
}