Ubuntu Style Theme
Publisher: Jun HanThemes in package: 1
Ubuntu Style Theme for VS Code
Ubuntu Style 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 |
|---|---|---|
| — | #F8F8F2 | — |
| comment | #AEA79F | italic |
| string | #925375 | — |
| constant.numeric | #924D8B | — |
| constant.language | #924D8B | — |
| constant.character, constant.other | #924D8B | — |
| variable | #F29879 | — |
| keyword | #9F6986 | — |
| storage | #806678 | — |
| storage.type | #E95420 | — |
| entity.name.class | #F08763 | underline |
| entity.other.inherited-class | #F08763 | italic underline |
| entity.name.function | #F08763 | — |
| variable.parameter | #F29879 | italic |
| entity.name.tag | #E95420 | |
| entity.other.attribute-name | #F08763 | |
| support.function | #AD79A8 | |
| support.constant | #AD79A8 | — |
| support.type, support.class | #F4AA90 | — |
| support.other.variable | #E84F17 | — |
| invalid | #333333 | |
| invalid.deprecated | #333333 | — |
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}!`;
}