fabric
Publisher: HKGThemes in package: 1
A code theme
A code theme
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 |
|---|---|---|
| constant.numeric | #00bfa5 | — |
| meta.function-call, entity.name.function | #80cbc4 | — |
| meta.function-call.arguments | #FFFFFF | — |
| constant.language | #7373e5 | bold |
| string.quoted, string.quoted | #9a9aef | — |
| keyword.operator.logical | #80deea | bold |
| *url*, *link*, *uri* | — | underline |
| storage.type.class | #9fa8da | bold |
| meta.attribute | #a4e29a | — |
| storage.type.function | #ce93d8 | bold |
| keyword.control | #fff176 | — |
| keyword.control.import | #ff8a80 | italic |
| comment | #b3e5fcbb | — |
| entity.name.tag.yaml | #d89ae2 | italic |
| string.quoted.single.yaml | #f48fb1 | — |
| variable.language.special.self.python, variable.parameter.function.language.special.cls.python | #d89ae2 | italic |
| support.type.python | #e29aa4 | — |
| meta.function.decorator.python punctuation.separator.period.python | #FFFFFF | — |
| meta.structure.dictionary.json | #D89AE2 | — |
| meta.structure.dictionary.json meta.structure.dictionary.json | #A4E29A | — |
| meta.structure.dictionary.json meta.structure.dictionary.json meta.structure.dictionary.json | #E2B49A | — |
| meta.structure.dictionary.json meta.structure.dictionary.json meta.structure.dictionary.json | #9AC8E2 | — |
| punctuation.separator.dictionary.key-value.json.comments, punctuation.separator.array.json | #ffffff | — |
| markup.heading heading.1 | #A4E29A | — |
| markup.heading heading.2 | #D89AE2 | — |
| markup.heading heading.3 | #E2B49A | — |
| markup.heading heading.4 | #9AC8E2 | — |
| markup.bold | — | bold |
| markup.bold markup.italic | — | italic bold |
| markup.italic | — | italic |
| markup.quote | #4FC3F7 | — |
| markup.quote markup.quote | #D74FF7 | — |
| markup.quote markup.quote markup.quote | #F7834F | — |
| markup.quote markup.quote markup.quote markup.quote | #6FF74F | — |
| markup.list | #ff8a80 | — |
| markup.list markup.list | #B6FF80 | — |
| markup.list markup.list markup.list | #80F5FF | — |
| markup.list markup.list markup.list | #C980FF | — |
| keyword.fsharp | #ce93d8 | bold |
| record.fsharp keyword.fsharp | #9fa8da | bold |
| keyword.symbol.fsharp | #d89ae2 | — |
| binding.fsharp variable.fsharp | #80cbc4 | italic |
| binding.fsharp entity.name.type.fsharp | #e29aa4 | bold |
| binding.fsharp variable.parameter.fsharp | #54a1e0 | italic |
| record.fsharp entity.name.type.fsharp | #e29aa4 | italic |
| support.function.attribute.fsharp | #80cbc4 | bold |
| namespace.open.fsharp keyword.fsharp | #ff8a80 | — |
| namespace.open.fsharp | #80d7ff | — |
| entity.name.tag.html | #d89ae2 | italic bold |
| punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html | #80deea | — |
| meta.tag.metadata.doctype.html entity.name.tag.html, meta.tag.metadata.doctype.html | #ff8a80 | bold |
| punctuation.separator.key-value.html | #ffffff | — |
| entity.name.tag.wildcard.css | #d89ae2 | italic |
| meta.property-name.css | #80cbc4 | bold |
| entity.name.tag.css | #9fa8da | — |
| entity.other.attribute-name.id.css | #e29aa4 | — |
| entity.other.attribute-name.pseudo-element.css | #54a1e0 | — |
| entity.other.attribute-name.pseudo-element.css punctuation.definition.entity.css | #ffffff | — |
| support.constant.font-name.css, support.constant.property-value.css | #7373e5 | — |
| entity.other.attribute-name.pseudo-class.css | #d89ae2 | — |
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}!`;
}