alpenglow-monokai
Publisher: Kai CataldoThemes in package: 1
A port of the [Alpenglow Monokai](https://github.com/AlpenglowTheme/alpenglow-theme) syntax theme for VS Code
A port of the [Alpenglow Monokai](https://github.com/AlpenglowTheme/alpenglow-theme) syntax theme for VS Code
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #d6d6d6 | — |
| comment | #797979 | — |
| string | #e5b567 | — |
| constant.numeric | #9e86c8 | — |
| constant.language | #9e86c8 | — |
| constant.character, constant.other | #9e86c8 | — |
| variable.other.readwrite.instance.coffee | #E87D3E | — |
| entity.name.type.class.coffee | #b4c973 | — |
| keyword | #b05279 | — |
| storage | #b05279 | |
| storage.type | #6c99bb | — |
| entity.name.class | #b4c973 | — |
| entity.other.inherited-class | #b4c973 | — |
| entity.name.function | #b4c973 | |
| variable.parameter | #E87D3E | — |
| entity.name.tag | #b05279 | |
| entity.other.attribute-name | #b4c973 | |
| support.function | #6c99bb | |
| support.constant | #6c99bb | |
| support.type, support.class | #6c99bb | — |
| support.other.variable | — | |
| invalid | #F8F8F0 | |
| invalid.deprecated | #F8F8F0 | — |
| meta.structure.dictionary.json string.quoted.double.json | #cfcfcf | — |
| meta.diff, meta.diff.header | #767676 | — |
| markup.deleted | #b05279 | — |
| markup.inserted | #b4c973 | — |
| markup.changed | #E5B567 | — |
| constant.numeric.line-number.find-in-files - match | #9e86c8A0 | — |
| entity.name.filename.find-in-files | #E5B567 | — |
| markup.bold, punctuation.definition.bold, todo.bold | #E87D3E | bold |
| markup.italic, punctuation.definition.italic, todo.italic | #B05279 | italic |
| markup.deleted.git_gutter | #E87D3E | — |
| markup.inserted.git_gutter | #B4C973 | — |
| markup.changed.git_gutter | #E5B567 | — |
| markup.ignored.git_gutter | #C0C5CE | — |
| markup.untracked.git_gutter | #EFF1F5 | — |
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}!`;
}