Textmate
Publisher: ckpedersenThemes in package: 2
Full workbench mockup using this variant's colors and tokenColors.
Loading...
Workbench UI color keys from the theme JSON colors map.
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #FEFFD3 | — |
| entity.other.inherited-class.js, entity.name.type.module.js, meta.embedded.expression.js, source.ruby, text.html.erb, source.json.comments | #ffffff | — |
| storage.modifier.js | #ab98ac | — |
| #C2A86C | — | |
| punctuation.definition.tag.begin.js, punctuation.definition.tag.end.js | #d7b67c | — |
| string.json.comments, string, support | #AFB979 | — |
| meta.tag | #ac8350 | — |
| comment | #5F5A60 | italic |
| constant | #CF6A4C | — |
| entity | #ac8350 | |
| keyword | #d7b67c | |
| storage | #faf0a8 | |
| variable | #889ab5 | — |
| invalid.deprecated | #D2A8A1 | italic underline |
| entity.other.inherited-class | #9B5C2E | italic |
| string source | #DAEFA3 | |
| string constant | #DDF2A4 | — |
| string.regexp | #E9C062 | |
| string.regexp constant.character.escape, string.regexp source.ruby.embedded, string.regexp string.regexp.arbitrary-repitition | #CF7D34 | — |
| string variable | #8A9A95 | — |
| support.function | #DAD085 | |
| support.constant | #CF6A4C | |
| meta.preprocessor.c, support.class.ruby | #8996A8 | — |
| meta.preprocessor.c keyword | #AFC4DB | — |
| meta.tag.sgml.doctype, meta.tag.sgml.doctype entity, meta.tag.sgml.doctype string, meta.tag.preprocessor.xml, meta.tag.preprocessor.xml entity, meta.tag.preprocessor.xml string | #494949 | — |
| declaration.tag, declaration.tag entity, meta.tag entity | #AC885B | — |
| declaration.tag.inline, declaration.tag.inline entity, source entity.name.tag, source entity.other.attribute-name, meta.tag.inline, meta.tag.inline entity | #ffffff | — |
| meta.selector.css entity.name.tag | #CDA869 | — |
| meta.selector.css entity.other.attribute-name.tag.pseudo-class | #8F9D6A | — |
| meta.selector.css entity.other.attribute-name.id | #8B98AB | — |
| meta.selector.css entity.other.attribute-name.class | #ac8350 | — |
| support.type.property-name.css | #C5AF75 | — |
| meta.property-group support.constant.property-value.css, meta.property-value support.constant.property-value.css | #F9EE98 | — |
| meta.preprocessor.at-rule keyword.control.at-rule | #8693A5 | — |
| meta.property-value support.constant.named-color.css, meta.property-value constant | #CA7840 | — |
| meta.constructor.argument.css | #8F9D6A | — |
| meta.diff, meta.diff.header, meta.separator | #F8F8F8 | italic |
| markup.deleted | #F8F8F8 | — |
| markup.changed | #F8F8F8 | — |
| markup.inserted | #F8F8F8 | — |
| markup.list | #F9EE98 | — |
| markup.heading | #CF6A4C | — |
| markup.deleted.git_gutter | #CF6A4C | — |
| markup.inserted.git_gutter | #8F9D6A | — |
| markup.changed.git_gutter | #889ab5 | — |
| markup.ignored.git_gutter | #565656 | — |
| markup.untracked.git_gutter | #565656 | — |
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}!`;
}