Smooth Yellow Theme
Publisher: maxmckinneyThemes in package: 1
Visual Studio code syntax theme featuring a smooth golden yellow with a contrasting dark background.
Visual Studio code syntax theme featuring a smooth golden yellow with a contrasting dark background.
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #F8F8F2 | — |
| comment | #858585 | — |
| string | #B4C2D6 | — |
| constant.numeric | #B4C2D6 | — |
| constant.language | #B4C2D6 | — |
| constant.character, constant.other | #B4C2D6 | — |
| variable | — | |
| keyword | #FFC107 | — |
| storage | #FFC107 | |
| storage.type | #FD971F | italic |
| entity.name.class | #FFC107 | underline |
| entity.other.inherited-class | #FFC107 | italic underline |
| entity.name.function | #FFC107 | |
| variable.parameter | #FD971F | italic |
| entity.name.tag | #FD971F | |
| entity.other.attribute-name | #FFC107 | |
| punctuation.section.embedded.begin.metatag.php | #FD971F | |
| meta.function-call.php | #FD971F | |
| punctuation.definition.heading.markdown | #FFC107 | |
| support.function | #FD971F | |
| support.constant | #FD971F | |
| support.type, support.class | #FD971F | italic |
| support.other.variable | — | |
| invalid | #F8F8F0 | |
| invalid.deprecated | #F8F8F0 | — |
| entity.name.section.markdown | #FFC107 | — |
| beginning.punctuation.definition.list.markdown | #FFC107 | — |
| markup.underline.link.image.markdown | #FFC107 | — |
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}!`;
}