Clouds_Midnight Theme
Publisher: geraneThemes in package: 1
Clouds_Midnight Theme ported from the CloudsMidnight TextMate Theme
Clouds_Midnight Theme ported from the CloudsMidnight TextMate Theme
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #929292 | — |
| comment | #3C403B | |
| string | #5D90CD | |
| constant.numeric | #46A609 | — |
| constant.language | #39946A | |
| constant.character, constant.other | — | — |
| variable.language, variable.other | — | |
| keyword, support.constant.property-value, constant.other.color | #927C5D | |
| keyword.other.unit | #366F1A | — |
| entity.other.attribute-name.html | #A46763 | — |
| keyword.operator | #4B4B4B | — |
| storage | #E92E2E | |
| entity.name.class | — | |
| entity.other.inherited-class | #858585 | |
| entity.name.function | — | |
| variable.parameter | — | — |
| entity.name.tag | #606060 | |
| constant.character.entity | #A165AC | — |
| support.class.js | #A165AC | — |
| entity.other.attribute-name | #606060 | |
| meta.selector.css, entity.name.tag.css, entity.other.attribute-name.id.css, entity.other.attribute-name.class.css | #E92E2E | |
| meta.property-name.css | #616161 | — |
| support.function | #E92E2E | — |
| support.constant | — | — |
| support.type, support.class | — | — |
| support.other.variable | — | |
| invalid | #FFFFFF | — |
| punctuation.section.embedded | #E92E2E | |
| punctuation.definition.tag | #606060 | |
| constant.other.color.rgb-value.css, support.constant.property-value.css | #A165AC | — |
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}!`;
}