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 |
|---|---|---|
| — | #D3D7CF | — |
| comment | #888888 | |
| string | #EDD400 | — |
| constant.numeric | #CE5A10 | — |
| constant.language | #ce5c00 | bold |
| constant.character, constant.other | #AE81FF | — |
| variable | #6290C5 | |
| keyword | #FFFFFF | bold |
| storage | #FFFFFF | |
| storage.type | #FFFFFF | bold |
| storage.modifier | #FFFFFF | bold |
| entity.name.class | #FFFFFF | underline |
| entity.other.inherited-class | #A6E22E | underline |
| entity.name.function | #FFFFFF | bold |
| variable.parameter | #FD971F | italic bold |
| entity.name.tag, punctuation.definition.tag | #729FCF | |
| entity.name.tag.css | #F92672 | bold |
| entity.other.attribute-name | #A6E22E | |
| support.function | #FFFFFF | bold |
| support.function.construct | #73d216 | bold |
| support.constant | #66D9EF | |
| support.type, support.class | #66D9EF | bold |
| support.other.variable | — | |
| invalid | #F8F8F0 | |
| invalid.deprecated | #F8F8F0 | — |
| remark.todo | #FFFFAA | — |
| remark.done | #DDDDDD | — |
| remark.wait | #CCFFCC | — |
| remark.note | #AAAAAA | — |
| remark.fixme | #FFAAAA | — |
| remark.warning | #FF9900 | — |
| remark.info | #FFFFAA | — |
| remark.exception | #FFAAAA | — |
| remark.error | #FF3366 | — |
| meta.diff, meta.diff.header | #75715E | — |
| markup.deleted | #a40000 | — |
| markup.inserted | #4e9a06 | — |
| markup.changed | #204a87 | — |
| text.html.markdown meta.dummy.line-break | #E0EDDD | — |
| text.html.markdown markup.raw.inline | #269186 | — |
| punctuation.definition.raw.markdown | #269186 | — |
| markup.heading | #cb4b16 | bold |
| markup.italic | #839496 | italic |
| markup.bold | #586e75 | bold |
| punctuation.definition.bold.markdown, punctuation.definition.italic.markdown | #586e75 | — |
| markup.underline | #839496 | underline |
| markup.quote | #268bd2 | |
| meta.separator | #268bd2 | bold |
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}!`;
}