Springbok Theme
Publisher: chrpThemes in package: 3
Springbok Theme
Springbok 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 |
|---|---|---|
| constant.numeric, constant.numeric keyword.other.unit, constant.other.timestamp | #E6CF00 | — |
| string | #E68A00 | — |
| constant.character.escape | #ff6a14 | — |
| punctuation.definition.template-expression | #ff6a14 | — |
| meta.template.expression | #eeeeff | — |
| string.regexp | #C365CA | — |
| constant.character.escape.backslash.regexp | #e5bde8 | — |
| punctuation.definition.group.regexp, punctuation.definition.character-class.regexp | #f0daf2 | — |
| constant.language | #D34F4A | — |
| constant.other.color | #ffffff | — |
| comment, comment.block | #707070 | — |
| comment.block.documentation | #6A8759 | — |
| storage.type.class.jsdoc, punctuation.definition.block.tag.jsdoc | #6A8759 | bold underline |
| variable.other.jsdoc | #629755 | italic |
| storage.type, storage.modifier | #D37947 | bold |
| storage.modifier | — | bold italic |
| keyword, keyword.operator, keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof, keyword.operator.logical.python, keyword.control | #D37947 | — |
| entity.other.attribute-name | #D3C64A | — |
| meta.object-literal.key | #B57E26 | — |
| entity.name.function.preprocessor | #D34AC1 | bold |
| entity.name.type.class | #fefefe | bold |
| entity.name.function | #B488E2 | bold |
| variable.language | #D37947 | bold |
| variable.parameter | #ebebeb | italic |
| variable.other.enummember | #4A93D3 | bold italic |
| entity.name.variable, meta.definition.variable, variable.object.property | #ebebeb | — |
| meta.import variable.other.readwrite | #aaaabb | — |
| meta.import variable.other.readwrite.alias | #ddddee | — |
| entity.name.type | #88B8E2 | — |
| meta.definition.property | #4A93D3 | — |
| support.type.builtin, support.type.primitive, storage.type.built-in | #88B8E2 | bold |
| punctuation.definition.tag, entity.name.tag | #B5A726 | — |
| support.class.component | — | bold |
| meta.tag.attributes punctuation.section.embedded | #eeeeff | — |
| meta.jsx.children punctuation.section.embedded, meta.tag.attributes meta.jsx.children punctuation.section.embedded | #ff6a14 | — |
| support.type.property-name | #B57E26 | — |
| variable.other.env | #B57E26 | — |
| source.env | #FFA014 | — |
| markup.heading | #D37947 | bold |
| markup.underline | — | underline |
| markup.bold | — | bold |
| markup.italic | — | italic |
| markup.underline.link | #B55A26 | — |
| markup.quote | #B526A2 | — |
| markup.list punctuation.definition.list.begin | #B57E26 | bold |
| source.css entity.other.attribute-name.id | — | bold |
| source.css entity.name.tag | #B5A726 | bold |
| source.css support.function | #B488E2 | — |
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}!`;
}