Base16 Themes
Publisher: J. Ryan StinnettThemes in package: 76
Base 16 themes ported from TextMate/Sublime
Base 16 themes ported from TextMate/Sublime
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 |
|---|---|---|
| — | #cbd6e2 | — |
| variable.parameter.function | #cbd6e2 | — |
| comment, punctuation.definition.comment | #627e99 | — |
| punctuation.definition.string, punctuation.definition.variable, punctuation.definition.string, punctuation.definition.parameters, punctuation.definition.string, punctuation.definition.array | #cbd6e2 | — |
| none | #cbd6e2 | — |
| keyword.operator | #cbd6e2 | — |
| keyword | #bf568b | — |
| variable | #bf8b56 | — |
| entity.name.function, meta.require, support.function.any-method | #8b56bf | — |
| support.class, entity.name.class, entity.name.type.class | #8bbf56 | — |
| meta.class | #f7f9fb | — |
| keyword.other.special-method | #8b56bf | — |
| storage | #bf568b | — |
| support.function | #568bbf | — |
| string, constant.other.symbol, entity.other.inherited-class | #56bf8b | — |
| constant.numeric | #bfbf56 | — |
| none | #bfbf56 | — |
| none | #bfbf56 | — |
| constant | #bfbf56 | — |
| entity.name.tag | #bf8b56 | — |
| entity.other.attribute-name | #bfbf56 | — |
| entity.other.attribute-name.id, punctuation.definition.entity | #8b56bf | — |
| meta.selector | #bf568b | — |
| none | #bfbf56 | — |
| markup.heading punctuation.definition.heading, entity.name.section | #8b56bf | |
| keyword.other.unit | #bfbf56 | — |
| markup.bold, punctuation.definition.bold | #8bbf56 | bold |
| markup.italic, punctuation.definition.italic | #bf568b | italic |
| markup.raw.inline | #56bf8b | — |
| string.other.link, punctuation.definition.string.end.markdown | #bf8b56 | — |
| meta.link | #bfbf56 | — |
| markup.list | #bf8b56 | — |
| markup.quote | #bfbf56 | — |
| meta.separator | #cbd6e2 | — |
| markup.inserted | #56bf8b | — |
| markup.deleted | #bf8b56 | — |
| markup.changed | #bf568b | — |
| constant.other.color | #568bbf | — |
| string.regexp | #568bbf | — |
| constant.character.escape | #568bbf | — |
| punctuation.section.embedded, variable.interpolation | #bf5656 | — |
| invalid.illegal | #f7f9fb | — |
| invalid.broken | #0b1c2c | — |
| invalid.deprecated | #f7f9fb | — |
| invalid.unimplemented | #f7f9fb | — |
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}!`;
}