Failcoder Theme
Publisher: failcoderThemes in package: 1
The Failcoder Syntax theme for Visual Studio Code
The Failcoder Syntax theme for Visual Studio Code
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 |
|---|---|---|
| Global settings | #C6C9CC | — |
| meta.tag, meta.block, meta.definition.variable, meta.embedded, punctuation.separator | #d9dde0 | — |
| punctuation.definition.block, punctuation.definition.binding-pattern, punctuation.definition.parameters, punctuation.section.embedded, meta.brace | #97a9be | bold |
| string | #95C797 | — |
| constant.language.boolean | #76FF03 | italic |
| constant.numeric | #76FF03 | — |
| variable.language.this, support.type.object, support.variable, constant.language, support.constant | #DD2C00 | — |
| meta.import, support.variable.property, variable.other.readwrite.alias | #F0C674 | — |
| support.variable.property, variable.other.property, variable.other.object.property | #BFD3F0 | — |
| support.class | #dbb867 | — |
| keyword.control, meta.function-call entity.name.function | #8EB2FF | — |
| variable.parameter | #F57C00 | — |
| meta.var.expr storage.type, storage.type.class, storage.type.function, keyword.control.flow, keyword.operator.new | #886dff | — |
| entity.name.type.module, support.module, support.node, entity.other.inherited-class | #18FFFF | italic bold |
| comment | #46494C | italic |
| new.expr entity.name.type, entity.name.type.class | #EF5350 | bold |
| meta.method.declaration, variable.language.super, meta.definition.method, meta.definition.property variable.object.property | #ff7c78 | — |
| meta.definition.variable entity.name.function | #41b3ff | — |
| template.expression.begin, template.expression.end | #8EB2FF | — |
| modifier, storage.modifier, support.type | #9966ff | — |
| source.json meta.object-literal.key, meta.object-literal.key string, support.type.property-name.json | #dbb867 | — |
| constant.language.json | #8EB2FF | — |
| entity.other.attribute-name.class | #BFD3F0 | — |
| entity.other.attribute-name.id | #DD2C00 | — |
| source.css entity.name.tag | #ffbf48 | — |
| punctuation.definition.tag | #7f5f24 | — |
| entity.name.tag, entity.other.attribute-name, meta.tag.attributes, support.class.component | #ffbf48 | — |
| keyword.other.definition.ini | #dbb867 | — |
| entity.name.section.group-title.ini | #8EB2FF | — |
| source.cs meta.class.identifier storage.type | #EF5350 | underline |
| source.cs meta.method.identifier entity.name.function | #ff7c78 | — |
| source.cs meta.method-call meta.method, source.cs entity.name.function | #41b3ff | — |
| source.cs storage.type | #9966ff | — |
| source.cs meta.method.return-type | #9966ff | — |
| source.cs meta.preprocessor | #46494C | — |
| source.cs entity.name.type.namespace | #d9dde0 | — |
| markup.heading | #8EB2FF | — |
| text.html.markdown meta.link.inline, meta.link.reference | #dbb867 | — |
| text.html.markdown markup.quote | #95C797 | — |
| text.html.markdown beginning.punctuation.definition.list | #d9dde0 | — |
| markup.italic | #dbb867 | italic |
| markup.bold | #dbb867 | bold |
| markup.bold markup.italic, markup.italic markup.bold | #dbb867 | italic bold |
| entity.name.tag.yaml | #dbb867 | — |
| meta.object-literal.key | #d9dde0 | — |
| Global settings | #C6C9CC | — |
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}!`;
}