fairyfloss
Publisher: nopjmpThemes in package: 1
fairy floss text editor theme by sailorhg - http://sailorhg.github.io/fairyfloss
fairy floss text editor theme by sailorhg - http://sailorhg.github.io/fairyfloss
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 |
|---|---|---|
| comment | #E6C000 | — |
| string | #FFEA00 | — |
| constant.numeric | #C5A3FF | — |
| constant.language | #C5A3FF | — |
| constant.character, constant.other | #C5A3FF | — |
| variable | — | |
| keyword | #FFB8D1 | — |
| storage | #FFB8D1 | |
| storage.type | #C2FFDF | italic |
| entity.name.class | #FFF352 | underline |
| variable.language.this | #d5c6f0 | — |
| entity.other.inherited-class | #FFF352 | italic underline |
| entity.name.function | #FFF352 | |
| variable.parameter | #FF857F | italic |
| entity.name.tag | #FFB8D1 | |
| entity.other.attribute-name | #FFF352 | |
| support.function | #C2FFDF | |
| support.constant | #C2FFDF | |
| support.type, support.class | #C2FFDF | italic |
| support.other.variable | — | |
| invalid | #ffb0b0 | |
| invalid.deprecated | #dfdfcb | — |
| meta.diff, meta.diff.header | #FFF352 | italic |
| markup.deleted | #fa736e | — |
| markup.changed | #fa9d99 | — |
| markup.inserted | #afecad | — |
| markup.quote | #FF857F | — |
| markup.bold | #C2FFDF | bold |
| markup.italic | #C2FFDF | italic |
| markup.inline.raw | #FFF352 | — |
| markup.heading.markdown | #ddbb88 | bold |
| text.html.php punctuation.section.embedded.begin.php, text.html.php punctuation.section.embedded.end.php | #d5c6f0 | — |
| source.java storage.modifier.import, source.java storage.modifier.package | #dda0b4 | |
| source.java keyword.other.documentation.javadoc.java | #9966b8 | — |
| source.clojure meta.symbol | #beb0cc | — |
| source.clojure entity.global, source.clojure meta.definition.global | #df7e9f | — |
| source.clojure constant.keyword | #c19fd8 | — |
| source.clojure meta.symbol meta.expression, source.clojure meta.vector | #df7e9f | — |
| source.python variable.language.special.self.python, source.python variable.language.special.cls.python | #FF857F | — |
| source.python string.quoted.docstring.multi.python | #E6C000 | — |
| source.python meta.function.python support.function.builtin.python | #FFF352 | — |
| source.python keyword.operator.logical.python, source.python keyword.operator.comparison.python | #C5A3FF | — |
| source.python meta.function.decorator.python, source.python entity.name.function.decorator.python | #C2FFDF | italic |
| source.python meta.function.parameters.python, source.python keyword.operator.unpacking.parameter.python | #C2FFDF | italic |
| string.unquoted.plain.out.yaml | #dec0e2 | — |
| string.quoted.double.yaml | #C2FFDF | — |
| comment.line.number-sign.yaml | #a186cf | — |
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}!`;
}