f-enjoy Theme
Publisher: feafarotThemes in package: 1
Beautiful and soft dark VS Code theme. Target languages are TypeScript, JavaScript, CSS/Less, HTML, SQL.
Beautiful and soft dark VS Code theme. Target languages are TypeScript, JavaScript, CSS/Less, HTML, SQL.
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, comment.line.triple-slash.directive.ts | #8A8A8A | — |
| string | #FDFF89 | — |
| constant.numeric | #FDFF89 | — |
| constant.language | #5EA4E4 | — |
| constant.character, constant.other | #FFBF5B | — |
| variable | — | |
| keyword, storage.modifier, storage.modifier.tsx, support.type.primitive, variable.language.super, keyword.operator.new, variable.language.this, storage.modifier.async, variable.language.super | #5EA4E4 | — |
| storage | — | |
| storage.type, storage.modifier.js | #5EA4E4 | — |
| storage.type.cs, entity.name.class, entity.name.type.class, entity.name.type, inherited-class.js, entity.other.inherited-class | #1CB7E3 | — |
| entity.name.type.namespace | #DEDEDE | — |
| entity.other.inherited-class | — | — |
| entity.name.function | — | |
| variable.parameter | — | — |
| entity.name.tag | #5EA4E4 | |
| entity.other.attribute-name | — | |
| support.function | — | |
| support.constant | — | |
| support.type, support.class, inherited-class.js | #1CB7E3 | — |
| support.other.variable | — | |
| invalid | #F8F8F0 | |
| invalid.deprecated | #F8F8F0 | — |
| keyword.operator, storage.type.function.arrow.ts, punctuation, meta.brace | #8F8F8F | — |
| keyword.operator.expression | #5EA4E4 | — |
| string.quoted.double.html, string.quoted.single.html | #1CB7E3 | — |
| meta.selector.css, entity.name.tag.css, entity.other.attribute-name.class.css | #D52A66 | — |
| entity.other.attribute-name.pseudo-class.css | #BD2258 | — |
| keyword.other.unit.css, constant.other.rgb-value.css | #D1E26A | — |
| entity.other.attribute-name.class.mixin.css | #AD2D58 | — |
| meta.property-list.css entity.other.attribute-name.class.mixin.css | — | italic |
| cast.expr.ts | — | — |
| storage.type.function.arrow.ts | — | — |
| entity.name.type.module.ts | #A6E0BD | — |
| constant.character.entity.html | #D52A66 | — |
| support.type.property-name.json | #DEDEDE | — |
| punctuation.decorator.ts | #238AAD | — |
| meta.decorator entity.name.function | #2096BD | — |
| entity.other.inherited-class.js | #1CB7E3 | — |
| storage.modifier.async | #5EA4E4 | — |
| meta.template.expression | #DEDEDE | — |
| punctuation.definition.template-expression, punctuation.section.embedded, meta.interpolation punctuation.definition.interpolation, meta.interpolation punctuation.definition.interpolation punctuation | #5c768e | — |
| meta.type.parameters entity.name.type | #1CB7E3 | — |
| meta.block meta.type.parameters entity.name.type, meta.type.annotation meta.type.parameters entity.name.type | #1CB7E3 | — |
| keyword.operator.comparison, keyword.operator.logical | #DEDEDE | — |
| punctuation.section.embedded.begin.tsx, punctuation.section.embedded.end.tsx | #5c768e | — |
| token.info-token | #6796E6 | — |
| token.warn-token | #CD9731 | — |
| token.error-token | #F44747 | — |
| token.debug-token | #B267E6 | — |
| constant.language.import-export-all | #AD2D58 | — |
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}!`;
}