Base16 Material Theme
Publisher: polakowskiThemes in package: 1
Base16 syntax theme for VS Code, based on material color palette
Base16 syntax theme for VS Code, based on material color palette
Full workbench mockup using this variant's colors and tokenColors.
Workbench UI color keys from the theme JSON colors map.
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| keyword, storage.type, storage.modifier, keyword.control, keyword.other.special-method, variable.language.this, variable.language.self, markup.bold.markdown punctuation.definition, markup.italic.markdown punctuation.definition, markup.list.unnumbered punctuation.definition.list.begin, constant.language.boolean, constant.language.null, constant.language.undefined | #a47b9c | — |
| string, markup.inline.raw.string, fenced_code.block.language | #f4c98b | — |
| entity.name.function, variable.language.super, support.function.console, string.other.link.title.markdown | #81adbd | — |
| entity.name.type, entity.name.type.class, entity.name.tag, support.class, constant.numeric, source.ruby variable.other.constant, support.type.primitive |
TypeScript sample highlighted with this variant's colors and tokenColors.
| #d7965b |
| — |
| constant.other.symbol, entity.other.attribute-name, meta.object-literal.key, variable.other.env, source.yaml entity.name.tag, markup.list.numbered punctuation.definition.list.begin, variable.other.normal.shell | #9faf72 | — |
| constant.other.symbol punctuation, punctuation.section.embedded, punctuation.separator.key-value, constant.character.escape, entity.other.inherited-class, punctuation.definition.raw, punctuation.definition.heading.markdown, markup.fenced_code.block punctuation.definition.markdown, variable.other.normal.shell punctuation.definition.variable | #9b6a4c | — |
| string.regexp, support.class.console, source.yaml variable.other.alias, entity.name.type.interface | #8bbcb6 | — |
| variable.other.readwrite.instance | #b85042 | — |
| comment | #585858 | — |
| variable, source.js variable.other.constant | #d8d8d8 | — |
| keyword.other.debugger | #dd0000 | bold |
| entity.name.section.markdown | #d7965b | bold |
| markup.italic.markdown | — | italic |
| markup.bold.markdown | — | bold |
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}!`;
}
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}!`;
}