Morning Coffee Theme
Publisher: Nicholas PrietoThemes in package: 1
☕ A light, readable, and community-driven theme for VS Code.
☕ A light, readable, and community-driven theme for VS Code.
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 |
|---|---|---|
| comment | #C0C0C0 | — |
| punctuation.definition.tag, entity.name.tag, variable.language, keyword.control, keyword.operator.new, keyword.operator.expression, keyword.operator.class, keyword.other.important, storage | #0451A5 | — |
| string, support.constant | #A31515 | — |
| support.type, support.class, support.variable, support.function, markup.underline.link | #008000 | — |
| punctuation.section.embedded, meta.object-literal.key punctuation.separator.key-value | #404040 | — |
| entity, meta.object-literal.key | #BF8B00 | — |
| constant.language, constant.other | #E67E00 | — |
| constant.numeric | #8c08c5 | — |
| punctuation.definition.heading.markdown | #cccccc | — |
| comment | #A9A9A9 | — |
| punctuation.definition.comment | #A9A9A9 | — |
| entity.name.function | #008000 | — |
| keyword.other.sql, keyword.other.DDL.create.II.sql, keyword.other.alias.sql, keyword.other.DML.sql, constant.character.escape.json, storage.type.sql, support.function.aggregate.sql, support.function.expression.sql | #007ACC | — |
| source.sql | #404040 | — |
| constant.other.database-name.sql | #008000 | — |
| constant.other.table-name.sql | #008000 | — |
| support.function | #008000 | — |
| entity.name.function.c | #008000 | — |
| punctuation.definition.list.begin.markdown | #008000 | — |
| punctuation.definition.string.begin, punctuation.definition.string.end, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.definition.string.begin, punctuation.separator, punctuation.support.type.property-name.begin.json.comments, punctuation.support.type.property-name.end.json.comments, keyword.operator.assignment.js, punctuation.definition.tag.end.js, punctuation.definition.tag.begin.js, punctuation.terminator.statement.js, punctuation.definition.string.template.begin.js, punctuation.definition.string.template.end.js | #A0A0A0 | — |
| punctuation.definition.template-expression.begin.js, punctuation.definition.template-expression.end.js | #007ACC | — |
| token.info-token | #316BCD | — |
| token.warn-token | #CD9731 | — |
| token.error-token | #CD3131 | — |
| token.debug-token | #800080 | — |
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}!`;
}