Paper-tmTheme
Publisher: DiryoXThemes in package: 2
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #525252 | — |
| comment, comment.block, punctuation.definition.comment | #949494 | italic |
| string, punctuation.definition.string | #FF7070 | — |
| constant.character, constant.character.escaped | #FF7070 | — |
| constant.numeric | #FF7070 | — |
| keyword, keyword.control, keyword.other | #1E9CC8 | — |
| keyword.operator, keyword.operator.assignment, keyword.operator.arithmetic, keyword.operator.comparison, keyword.operator.relational, keyword.operator.logic | #525252 | — |
| keyword.operator.expression, keyword.operator.new | #1E9CC8 | — |
| storage.modifier | #1E9CC8 | — |
| storage.type | #1E9CC8 | — |
| meta.type.name, meta.return.type, meta.return-type, meta.cast, meta.type.annotation, support.type, entity.name.type | #559e83 | — |
| support.class, entity.name.class, entity.other.inherited-class | #559e83 | — |
| support.funtion, entity.name.function | #525252 | — |
| entity.name.attribute-name, entity.other.attribute-name | #525252 | — |
| support.type.property-name | #525252 | — |
| variable.name, variable.parameter.function | #525252 | — |
| constant.language | #1E9CC8 | — |
| variable.language | #1E9CC8 | — |
| string.regexp | #FF7070 | — |
| meta.tag.sgml.doctype | #1E9CC8 | — |
| entity.name.tag | #1E9CC8 | — |
| punctuation.definition, punctuation.separator | #525252 | — |
| support.variable.js, support.function.js, support.module.js, support.module.node.js | #525252 | — |
| storage.html, storage.content.html | #1E9CC8 | — |
| meta.tag.assign.html | #525252 | — |
| meta.selector.css, meta.attribute-selector.css | #525252 | — |
| entity.name.tag.css, entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #1E9CC8 | — |
| entity.other.attribute-name.pseudo-element.css, entity.other.attribute-name.pseudo-class.css | #60B38A | — |
| constant.numeric.css, keyword.other.unit.css | #FF7070 | — |
| constant.other.color.css | #FF7070 | — |
| support.constant.css | #F07D57 | — |
| storage.modifier.package.java, storage.modifier.import.java | #525252 | — |
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}!`;
}