Theme Charcoal Mint Co.
Publisher: charcoal-mint-studioThemes in package: 2
A refreshing dark theme with charcoal background and mint accents that reduces eye strain and brings natural freshness to your coding experience
A refreshing dark theme with charcoal background and mint accents that reduces eye strain and brings natural freshness to your coding experience
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 |
|---|---|---|
| emphasis | — | italic |
| strong | — | bold |
| header | #98fb98 | — |
| comment, punctuation.definition.comment | #9aa09a | italic |
| comment keyword.codetag.notation, comment.block.documentation keyword | #9fe2bf | — |
| string | #9fe2bf | — |
| punctuation.definition.string.begin, punctuation.definition.string.end | #50c878 | — |
| constant, variable.other.constant | #00ff7f | — |
| constant.numeric | #00ff7f | — |
| keyword, storage.type, storage.modifier | #98fb98 | bold |
| entity.name.function, meta.function-call | #74c0fc | — |
| variable.parameter | #c8d0c8 | italic |
| entity.name.type.class, entity.name.class | #ffd93d | — |
| entity.name.type, storage.type | #da77f2 | italic |
| variable | #f0f5f0 | — |
| variable.language | #ff6b6b | italic |
| entity.name.tag | #98fb98 | — |
| entity.other.attribute-name | #9fe2bf | italic |
| meta.selector | #98fb98 | — |
| support.type.property-name | #74c0fc | — |
| keyword.operator | #98fb98 | — |
| punctuation | #c8d0c8 | — |
| string.regexp | #ffd93d | — |
| markup.heading | #98fb98 | bold |
| markup.bold | #f0f5f0 | bold |
| markup.italic | #c8d0c8 | italic |
| markup.underline.link | #74c0fc | — |
| markup.inline.raw | #9fe2bf | — |
| invalid | #ff6b6b | underline |
| invalid.deprecated | #ffd93d | strikethrough |
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}!`;
}