SC themes + icons pack
Publisher: SynCapThemes in package: 4
SC themes pack. Lights & Darks. Also material and simple icon packs
SC themes pack. Lights & Darks. Also material and simple icon packs
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #FFFFFF | — |
| comment | #888888 | |
| keyword, storage | #FFFFFF | — |
| constant.numeric | #FF00FF | bold |
| string | #00FFFF | — |
| constant | #00CC00 | — |
| constant.language | #00CC00 | bold |
| variable.language, variable.other | #00FF00 | — |
| constant.character.escaped, constant.character.escape, string source | #00FFFF | — |
| other.preprocessor | #6F9118 | |
| entity.name.preprocessor | #879C00 | |
| entity.name.function, keyword.other.name-of-parameter.objc | #FFFF00 | — |
| entity.name.class | — | underline bold |
| entity.other.inherited-class | — | — |
| variable.parameter | — | |
| storage.type.method | #70727E | |
| meta.section entity.name.section, declaration.section entity.name.section | — | |
| support.function | #94FF8C | bold |
| support.class, support.type | #FFFFFF | — |
| support.constant | #FFFFFF | — |
| support.other.variable | #34C934 | |
| keyword.operator.js | #FFFF88 | bold |
| invalid | #FFFFFF | — |
| invalid.trailing-whitespace | — | — |
| text source, string.unquoted | — | — |
| meta.xml-processing, declaration.xml-processing | #68685B | |
| meta.doctype, declaration.doctype | #888888 | |
| meta.doctype.DTD, declaration.doctype.DTD | — | |
| meta.tag, declaration.tag | #00FFFF | |
| entity.name.tag | — | |
| entity.other.attribute-name | — | |
| markup.heading | #337799 | bold |
| markup.quote | #FFFFFF | |
| markup.list | #337799 | — |
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}!`;
}