Saveur-Biere.com Custom Theme
Publisher: Maxime BLANQUARTThemes in package: 1
A custom theme for Saveur-Biere.com
A custom theme for Saveur-Biere.com
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 |
|---|---|---|
| — | #d3af86 | — |
| meta.embedded, source.groovy.embedded | #d3af86 | — |
| variable.parameter.function | #d3af86 | — |
| comment, punctuation.definition.comment | #a57a4c | — |
| punctuation.definition.string, punctuation.definition.variable, punctuation.definition.string, punctuation.definition.parameters, punctuation.definition.string, punctuation.definition.array | #d3af86 | — |
| none | #d3af86 | — |
| keyword.operator | #d3af86 | — |
| keyword, keyword.control, keyword.operator.new.cpp, keyword.operator.delete.cpp, keyword.other.using, keyword.other.operator | #98676a | — |
| variable | #dc3958 | — |
| entity.name.function, meta.require, support.function.any-method | #8ab1b0 | — |
| support.class, entity.name.class, entity.name.type, entity.name.namespace, entity.name.scope-resolution | #f06431 | — |
| keyword.other.special-method | #8ab1b0 | — |
| storage | #98676a | — |
| support.function | #7e602c | — |
| string, constant.other.symbol, entity.other.inherited-class | #889b4a | — |
| constant.numeric | #f79a32 | — |
| none | #f79a32 | — |
| none | #f79a32 | — |
| constant | #f79a32 | — |
| entity.name.tag | #dc3958 | — |
| entity.other.attribute-name | #f79a32 | — |
| entity.other.attribute-name.id, punctuation.definition.entity | #8ab1b0 | — |
| meta.selector | #98676a | — |
| none | #f79a32 | — |
| markup.heading, markup.heading.setext, punctuation.definition.heading, entity.name.section | #8ab1b0 | |
| keyword.other.unit | #f79a32 | — |
| markup.bold, punctuation.definition.bold | #f06431 | bold |
| markup.italic, punctuation.definition.italic | #98676a | italic |
| markup.inline.raw | #889b4a | — |
| string.other.link | #dc3958 | — |
| meta.link | #f79a32 | — |
| markup.list | #dc3958 | — |
| markup.quote | #f79a32 | — |
| meta.separator | #d3af86 | — |
| markup.inserted | #889b4a | — |
| markup.deleted | #dc3958 | — |
| markup.changed | #98676a | — |
| constant.other.color | #7e602c | — |
| string.regexp | #7e602c | — |
| constant.character.escape | #7e602c | — |
| punctuation.section.embedded, variable.interpolation | #088649 | — |
| invalid.illegal | #dc3958 | — |
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}!`;
}