The Orange Box Theme
Publisher: ardencod3Themes in package: 1
The orange box is awesome
The orange box is awesome
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #B3B3B3 | — |
| comment | #414d62 | — |
| string | #DA6F05 | — |
| constant.numeric | #A67210 | bold |
| constant.language | #FFBB00 | — |
| constant.character, constant.other | #AD3100 | — |
| variable | — | — |
| keyword | #f38518 | — |
| storage | #AD3100 | — |
| storage.type | #EC4300 | — |
| entity.name.class | #AD3100 | underline |
| entity.other.inherited-class | #AD3100 | underline italic |
| entity.name.function | #f38518 | — |
| variable.parameter | #FFFFFF | italic |
| entity.name.tag | #FFFFFF | — |
| entity.other.attribute-name | #707070 | |
| support.function | #EC4300 | |
| support.constant | #AD3100 | |
| support.type, support.class | #AD3100 | italic |
| support.other.variable | — | |
| invalid | #f8f8f0 | |
| invalid.deprecated | #f8f8f0 | — |
| meta.structure.dictionary.json string.quoted.double.json | #DA6F05 | — |
| meta.diff, meta.diff.header | #75715E | — |
| markup.deleted | #d9534f | — |
| markup.inserted | #a7da1e | — |
| markup.changed | #2e6da4 | — |
| constant.numeric.line-number.find-in-files - match | #8FBE00A0 | — |
| entity.name.filename.find-in-files | #E6DB74 | — |
| keyword.other | #5c6b86 | — |
| meta.property-value, support.constant.property-value, constant.other.color | #DA6F05 | — |
| meta.structure.dictionary.json string.quoted.double.json | #AD3100 | — |
| meta.structure.dictionary.value.json string.quoted.double.json | #DA6F05 | — |
| meta.property-name support.type.property-name | — | normal |
| meta.property-value punctuation.separator.key-value | #ffffff | — |
| keyword.other.use, keyword.other.function.use, keyword.other.namespace, keyword.other.new, keyword.other.special-method, keyword.other.unit, keyword.other.use-as | #EC4300 | — |
| meta.use support.class.builtin, meta.other.inherited-class support.class.builtin | #ffffff | normal |
| variable.other | #ffffff | normal |
| variable.parameter.function.coffee | #DA6F05 | italic |
| entity.name.section.markdown | #AD3100 | — |
| punctuation.definition.heading.markdown | #f38518 | — |
| markup.raw.inline.markdown | #DA6F05 | — |
| punctuation.definition.bold.markdown, punctuation.definition.italic.markdown | #f38518 | — |
| punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown | #f38518 | — |
| punctuation.definition.metadata.markdown | #f38518 | — |
| markup.underline.link.markdown, markup.underline.link.image.markdown, meta.image.inline.markdown | #EC4300 | italic |
| markup.bold.markdown, markup.italic.markdown | #EC4300 | — |
| markup.italic.markdown | — | italic |
| markup.bold.markdown | — | bold |
| markup.raw.block.markdown | #00a8c6 | — |
| markup.deleted.git_gutter | #d9534f | — |
| markup.inserted.git_gutter | #a7da1e | — |
| markup.changed.git_gutter | #2e6da4 | — |
| entity.other.attribute-name.class.css | #f38518 | — |
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}!`;
}