Base16 Tomorrow Night Theme
Publisher: Daniel NashokinThemes in package: 1
Base16 Tomorrow Night, theme for Visual Studio Code
Base16 Tomorrow Night, theme for Visual Studio Code
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #c5c8c6 | — |
| variable.parameter.function | #c5c8c6 | — |
| comment, punctuation.definition.comment | #969896 | — |
| punctuation.definition.string, punctuation.definition.variable, punctuation.definition.string, punctuation.definition.parameters, punctuation.definition.string, punctuation.definition.array | #c5c8c6 | — |
| none | #c5c8c6 | — |
| keyword.operator | #c5c8c6 | — |
| keyword | #b39ddb | — |
| variable | #cc6666 | — |
| entity.name.function, meta.require, support.function.any-method | #81a2be | — |
| entity.name.label | #a3685a | — |
| support.class, entity.name.class, entity.name.type.class | #f0c674 | — |
| meta.class | #e9e9e9 | — |
| keyword.other.special-method | #81a2be | — |
| storage | #b39ddb | — |
| support.function | #8abeb7 | — |
| string, constant.other.symbol, entity.other.inherited-class | #b5bd68 | — |
| constant.numeric | #de935f | — |
| none | #de935f | — |
| none | #de935f | — |
| constant | #de935f | — |
| entity.name.tag | #cc6666 | — |
| entity.other.attribute-name | #de935f | — |
| entity.other.attribute-name.id, punctuation.definition.entity | #81a2be | — |
| meta.selector | #b39ddb | — |
| none | #de935f | — |
| markup.heading punctuation.definition.heading, entity.name.section | #81a2be | |
| keyword.other.unit | #de935f | — |
| markup.bold, punctuation.definition.bold | #f0c674 | bold |
| markup.italic, punctuation.definition.italic | #b39ddb | italic |
| markup.raw.inline | #b5bd68 | — |
| string.other.link, punctuation.definition.string.end.markdown, punctuation.definition.string.begin.markdown | #cc6666 | — |
| meta.link | #de935f | — |
| markup.list | #cc6666 | — |
| markup.quote | #de935f | — |
| meta.separator | #c5c8c6 | — |
| markup.inserted | #b5bd68 | — |
| markup.deleted | #cc6666 | — |
| markup.changed | #b39ddb | — |
| constant.other.color | #8abeb7 | — |
| string.regexp | #8abeb7 | — |
| constant.character.escape | #8abeb7 | — |
| punctuation.section.embedded, variable.interpolation | #b39ddb | — |
| invalid.illegal | #e9e9e9 | — |
| invalid.broken | #1d1f21 | — |
| invalid.deprecated | #e9e9e9 | — |
| invalid.unimplemented | #e9e9e9 | — |
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}!`;
}