blueweather
Publisher: BWThemes in package: 1
Dark blue 🐋 theme for VScode from BW
Dark blue 🐋 theme for VScode from BW
Full workbench mockup using this variant's colors and tokenColors.
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #61FFF7 | — |
| comment | #969387ff | italic |
| string | #ffcc00ff | — |
| constant.numeric | #c853feff | — |
| constant.language |
TypeScript sample highlighted with this variant's colors and tokenColors.
| — |
| constant.character, constant.other | #ae81ffff | — |
| variable | #e64053ff |
| keyword | #CA582C | — |
| storage | #F92672 |
| storage.type | #66d9efff | italic |
| entity.name.class | #9cd139ff | underline |
| entity.other.inherited-class | #a6e22eff | italic underline |
| entity.name.function | #9ad62bff | — |
| variable.parameter | #fd971fff | italic |
| entity.name.tag | #F92672 |
| entity.other.attribute-name | #a6e22eff |
| support.function | #00ff22ff |
| support.constant | #30ddffff |
| support.type, support.class | #66d9efff | italic |
| support.other.variable | — |
| invalid | #f8f8f0ff | — |
| invalid.deprecated | #f8f8f0ff | — |
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}!`;
}