Pastels_on_Dark Theme
Publisher: geraneThemes in package: 1
Pastels_on_Dark Theme ported from the PastelsonDark TextMate Theme
Pastels_on_Dark Theme ported from the PastelsonDark TextMate Theme
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #8F938F | — |
| comment | #A6C6FF | |
| comment.block | #A6C6FF | |
| string | #66A968 | — |
| constant.numeric | #CCCCCC | |
| keyword | #757aD8 | |
| meta.preprocessor | #2F006E | |
| keyword.control.import | — | bold |
| support.function | #AEB2F8 | |
| declaration.function function-result | #0000FF | — |
| declaration.function function-name | — | bold |
| declaration.function argument-name | — | bold |
| declaration.function function-arg-type | #0000FF | — |
| declaration.function function-argument | — | italic |
| declaration.class class-name | — | underline |
| declaration.class class-inheritance | — | italic underline |
| invalid, invalid.illegal | #F8F8F8 | bold |
| invalid.deprecated | #D2A8A1 | italic, underline |
| invalid.deprecated.trailing-whitespace | — | bold |
| declaration.section section-name | — | italic |
| string.interpolation | #C10006 | — |
| string.regexp | #E9C062 | |
| variable | #BEBF55 | — |
| variable.language | #C1C144 | — |
| constant | #4FB7C5 | — |
| constant.character | #AFA472 | |
| constant.language | #DE8E30 | bold |
| embedded | — | underline |
| keyword.markup.element-name | #858EF4 | |
| keyword.markup.attribute-name | #9B456F | |
| meta.attribute-with-value | #9B456F | |
| keyword.exception | #C82255 | bold |
| keyword.operator | #797878 | |
| keyword.control | #6969FA | bold |
| meta.tag.preprocessor.xml | #68685B | — |
| meta.tag.sgml.doctype | #494949 | — |
| string.quoted.docinfo.doctype.DTD | — | italic |
| comment.other.server-side-include.xhtml, comment.other.server-side-include.html | #909090 | — |
| text.html declaration.tag, text.html meta.tag, text.html entity.name.tag.xhtml | #858EF4 | — |
| keyword.markup.attribute-name | #9B456F | — |
| keyword.other.phpdoc.php | #777777 | — |
| keyword.other.include.php | #C82255 | — |
| support.constant.core.php | #DE8E20 | bold |
| support.constant.std.php | #DE8E10 | bold |
| variable.other.global.php | #B72E1D | — |
| variable.other.global.safer.php | #00FF00 | — |
| string.quoted.single.php | #BFA36D | — |
| keyword.storage.php | #6969FA | — |
| string.quoted.double.php | #AD9361 | — |
| entity.other.attribute-name.id.css | #EC9E00 | — |
| entity.name.tag.css | #B8CD06 | bold |
| entity.other.attribute-name.class.css | #EDCA06 | — |
| entity.other.attribute-name.pseudo-class.css | #2E759C | — |
| invalid.bad-comma.css | #FFFFFF | — |
| support.constant.property-value.css | #9B2E4D | — |
| support.type.property-name.css | #E1C96B | — |
| constant.other.rgb-value.css | #666633 | — |
| support.constant.font-name.css | #666633 | — |
| support.constant.tm-language-def, support.constant.name.tm-language-def | #7171F3 | — |
| keyword.other.unit.css | #6969FA | — |
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}!`;
}