Base16 Ocean Dark Extended Theme
Publisher: Kleber SilvaThemes in package: 1
Base16 Ocean Dark Theme extended to Visual Studio Code workbench
Base16 Ocean Dark Theme extended to Visual Studio Code workbench
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 |
|---|---|---|
| variable.parameter.function | #c0c5ce | — |
| comment, punctuation.definition.comment | #65737e | — |
| punctuation.definition.string, punctuation.definition.variable, punctuation.definition.string, punctuation.definition.parameters, punctuation.definition.string, punctuation.definition.array | #c0c5ce | — |
| none | #c0c5ce | — |
| keyword.operator | #c0c5ce | — |
| keyword | #b48ead | — |
| variable | #bf616a | — |
| entity.name.function, meta.require, support.function.any-method | #8fa1b3 | — |
| support.class, entity.name.class, entity.name.type.class | #ebcb8b | — |
| keyword.other.special-method | #8fa1b3 | — |
| storage | #b48ead | — |
| support.function | #96b5b4 | — |
| string, constant.other.symbol, entity.other.inherited-class | #a3be8c | — |
| support.type.property-name | #8fa1b3 | — |
| constant.numeric | #d08770 | — |
| none | #d08770 | — |
| none | #d08770 | — |
| constant | #d08770 | — |
| entity.name.tag | #bf616a | — |
| entity.other.attribute-name | #d08770 | — |
| entity.other.attribute-name.id, punctuation.definition.entity | #8fa1b3 | — |
| meta.selector | #b48ead | — |
| none | #d08770 | — |
| markup.heading punctuation.definition.heading, entity.name.section | #8fa1b3 | |
| keyword.other.unit | #d08770 | — |
| markup.bold, punctuation.definition.bold | #ebcb8b | bold |
| markup.italic, punctuation.definition.italic | #b48ead | italic |
| markup.raw.inline | #a3be8c | — |
| string.other.link, punctuation.definition.string.end.markdown | #bf616a | — |
| meta.link | #d08770 | — |
| markup.list | #bf616a | — |
| markup.quote | #d08770 | — |
| meta.separator | #c0c5ce | — |
| markup.inserted | #a3be8c | — |
| markup.deleted | #bf616a | — |
| markup.changed | #b48ead | — |
| constant.other.color | #96b5b4 | — |
| string.regexp | #96b5b4 | — |
| constant.character.escape | #96b5b4 | — |
| punctuation.section.embedded, variable.interpolation | #ab7967 | — |
| invalid.illegal | #eff1f5 | — |
| invalid.broken | #2b303b | — |
| invalid.deprecated | #eff1f5 | — |
| invalid.unimplemented | #eff1f5 | — |
| token.info-token | #6796e6 | — |
| token.warn-token | #cd9731 | — |
| token.error-token | #f44747 | — |
| token.debug-token | #b267e6 | — |
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}!`;
}