Symfony Dark Theme
Publisher: ntbThemes in package: 1
Theme based on the documentation syntax of the Symfony PHP framework.
Theme based on the documentation syntax of the Symfony PHP framework.
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #E6E1DC | — |
| source | — | — |
| comment | #AD2EA4 | italic |
| keyword, storage | #FC6F09 | |
| entity.name.function, keyword.other.name-of-parameter.objc | — | |
| entity.name | — | — |
| entity.other.inherited-class | #FC83FF | — |
| constant.numeric | #58C554 | |
| variable.language, variable.other | — | |
| constant | #1EDAFB | |
| variable.other.constant | — | — |
| constant.library | #8DFF0A | — |
| support.function | #FC6F09 | — |
| constant.language | #FDC251 | |
| string | #8DFF0A | |
| support.type | #1EDAFB | — |
| support.constant | #8DFF0A | — |
| meta.tag, declaration.tag, entity.name.tag | #FC6F09 | |
| entity.other.attribute-name | #FFFF89 | — |
| invalid | #FFFFFF | — |
| constant.character.escaped, constant.character.escape, string source, string source.ruby | #519F50 | |
| markup.inserted | #E6E1DC | — |
| markup.deleted | #E6E1DC | — |
| meta.diff.header, meta.separator.diff, meta.diff.index, meta.diff.range | — | — |
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}!`;
}