Wind Theme Dark
Publisher: wlheThemes in package: 1
Wind Theme Dark for VSCode
Wind Theme Dark for VSCode
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #ABB2BF | — |
| comment | #336600 | italic |
| string | #AEC70A | — |
| constant.numeric | #C90028 | — |
| constant.language | #4C7CFF | italic |
| constant.character, constant.other | #80b55aff | italic |
| variable | #A098F5 | |
| keyword | #CC25BB | — |
| storage | #BA4AAB | italic |
| storage.type | #3385FF | — |
| entity.name.class | #ECA542 | — |
| entity.other.inherited-class | #E66670 | italic |
| entity.name.function | #28CCDE | bold |
| variable.parameter | #A7BADF | — |
| entity.name.tag | #FFA34C | |
| entity.other.attribute-name | #E2BC83 | italic |
| support.function | #5BB0F5 | |
| support.constant | #FF3845 | |
| support.type, support.class | #E66670 | — |
| support.other.variable | #ffa34cff | |
| invalid | #D9D934 | |
| invalid.deprecated | #482800ff | — |
| markup.quote | #ffe5b0ff | — |
| markup.bold, markup.italic | #ffe5b0ff | — |
| markup.inline.raw | #7278a1ff | |
| markup.heading.setext | #ffa34cff |
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}!`;
}