New-Day Theme
Publisher: geraneThemes in package: 1
New-Day Theme ported from the New-Day TextMate Theme
New-Day Theme ported from the New-Day TextMate Theme
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #000000 | — |
| keyword | #E03C3C | bold |
| keyword.operator | #000000 | normal |
| constant.language | #E03C3C | bold |
| keyword.control.import | #E03C3C | bold |
| storage | #E03C3C | bold |
| variable | #d59401 | bold |
| variable.other.property | #000000 | normal |
| constant | #d59401 | bold |
| string, constant.other.symbol | #008000 | — |
| constant.numeric | #cd0673 | normal |
| support.class | #d59401 | bold |
| meta.function-call.static | #E03C3C | bold |
| support.function.builtin_functions | #E03C3C | bold |
| support.class | #000000 | normal |
| comment | #929292 | — |
| comment.block.documentation | #929292 | bold |
| entity.name.tag | #038500 | bold |
| punctuation.definition.tag | #038500 | bold |
| entity.other.attribute-name | #89a315 | normal |
| string.quoted.double.html, string.quoted.single.html | #2b7dc5 | bold |
| keyword.doctype.xml | #666969 | bold |
| text.html.basic meta.tag.sgml.html meta.tag.sgml.doctype.html | #666969 | bold |
| text.html.basic meta.tag.sgml.html punctuation.definition.tag.html | #666969 | bold |
| support.constant.property-value.scss | #0064c2 | — |
| source.js entity.name.function.js | #9d5900 | — |
| source.js support.function.js | #0057a7 | — |
| source.js support.constant.js | #8d4f93 | — |
| source.js meta.function.js variable.parameter.function.js | #cf5fb1 | — |
| source.js variable.language.js | #c48801 | — |
| source.js keyword.operator | #0057a7 | — |
| source.js support.class.js | #0057a7 | — |
| source.js comment.block.documentation.js keyword.other.documentation.custom.js | #929292 | — |
| text.jade meta.tag.other string.quoted.jade | #2b7dc5 | — |
| text.jade string.comment.buffered.block.jade | #929292 | — |
| text.jade string.interpolated.jade | #000000 | — |
| text.jade string.interpolated.jade string.quoted.single.js | #008000 | — |
| text.html.basic source.php.embedded.block.html punctuation.section.embedded.begin.php | #cf5fb1 | — |
| text.html.basic source.php.embedded.block.html punctuation.section.embedded.end.php | #cf5fb1 | — |
| text.html.basic source.php.embedded.line.empty.html punctuation.section.embedded.begin.php | #cf5fb1 | — |
| text.html.basic source.php.embedded.line.empty.html punctuation.section.embedded.end.php | #cf5fb1 | — |
| text.html.basic source.php.embedded.block.html meta.function.php entity.name.function.php | #9d5900 | — |
| text.html.basic source.php.embedded.block.html meta.function.php support.function.magic.php | #9d5900 | — |
| text.html.basic source.php.embedded.block.html meta.function.php meta.function.arguments.php meta.function.argument.default.php variable.other.php | #cf5fb1 | — |
| text.html.basic source.php.embedded.block.html meta.function.php meta.function.arguments.php meta.function.argument.no-default.php variable.other.php | #cf5fb1 | — |
| text.html.basic source.php.embedded.block.html variable.other.php | #c48801 | — |
| text.html.basic source.php.embedded.block.html support.class.php | #0057a7 | — |
| text.html.basic source.php.embedded.block.html meta.class.php entity.name.type.class.php | #0057a7 | — |
| text.html.basic source.php.embedded.block.html meta.class.php meta.other.inherited-class.php entity.other.inherited-class.php | #0057a7 | — |
| text.html.basic source.php.embedded.block.html comment.block.documentation.phpdoc.php keyword.other.phpdoc.php | #929292 | — |
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}!`;
}