Tomorrow and Tomorrow Night Theme Kit
Publisher: MicrosoftThemes in package: 4
Additional Tomorrow and Tomorrow Night themes for VS Code. Based on the TextMate themes.
Additional Tomorrow and Tomorrow Night themes for VS Code. Based on the TextMate themes.
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #CCCCCC | — |
| comment | #999999 | — |
| keyword.operator.class, constant.other, source.php.embedded.line | #CCCCCC | |
| variable, support.other.variable, string.other.link, entity.name.tag, entity.other.attribute-name, meta.tag, declaration.tag | #F2777A | — |
| constant.numeric, constant.language, support.constant, constant.character, variable.parameter, punctuation.section.embedded, keyword.other.unit | #F99157 | |
| entity.name.class, entity.name.type.class, support.type, support.class | #FFCC66 | |
| string, constant.other.symbol, entity.other.inherited-class, markup.heading | #99CC99 | |
| keyword.operator, constant.other.color | #66CCCC | — |
| entity.name.function, meta.function-call, support.function, keyword.other.special-method, meta.block-level | #6699CC | |
| keyword, storage, storage.type, entity.name.tag.css | #CC99CC | |
| invalid | #CDCDCD | |
| meta.separator | #CDCDCD | — |
| invalid.deprecated | #CDCDCD |
TypeScript sample highlighted with this variant's colors and tokenColors.
Loading...
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}!`;
}