Twilight Gray
Publisher: AldoThemes in package: 1
Embrace the calm of Twilight Gray. This theme blends subtle blues and deep grays for a tranquil, focused coding environment. Perfect for late-night sessions.
Embrace the calm of Twilight Gray. This theme blends subtle blues and deep grays for a tranquil, focused coding environment. Perfect for late-night sessions.
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 |
|---|---|---|
| comment, punctuation.definition.comment, string.comment | #758575dd | — |
| delimiter.bracket, delimiter, invalid.illegal.character-not-allowed-here.html, keyword.operator.rest, keyword.operator.spread, keyword.operator.type.annotation, keyword.operator.relational, keyword.operator.assignment, keyword.operator.type, meta.brace, meta.tag.block.any.html, meta.tag.inline.any.html, meta.tag.structure.input.void.html, meta.type.annotation, meta.embedded.block.github-actions-expression, storage.type.function.arrow, meta.objectliteral.ts, punctuation | #666666 | — |
| constant, entity.name.constant, variable.language, meta.definition.variable | #c99076 | — |
| entity, entity.name | #80a665 | — |
| variable.parameter.function | #dbd7caee | — |
| entity.name.tag, tag.html | #4d9375 | — |
| entity.name.function | #80a665 | — |
| keyword, storage.type.class.jsdoc | #4d9375 | — |
| storage, storage.type, support.type.builtin, constant.language.undefined, constant.language.null | #cb7676 | — |
| text.html.derivative, storage.modifier.package, storage.modifier.import, storage.type.java | #dbd7caee | — |
| string, string punctuation.section.embedded source, attribute.value | #c98a7d | — |
| punctuation.definition.string, punctuation.support.type.property-name | #c98a7d99 | — |
| support | #b8a965 | — |
| property, meta.property-name, meta.object-literal.key, entity.name.tag.yaml, attribute.name | #b8a965 | — |
| entity.other.attribute-name, invalid.deprecated.entity.other.attribute-name.html | #bd976a | — |
| variable, identifier | #bd976a | — |
| support.type.primitive, entity.name.type | #5DA994 | — |
| namespace | #db889a | — |
| keyword.operator, keyword.operator.assignment.compound, meta.var.expr.ts | #cb7676 | — |
| invalid.broken | #fdaeb7 | italic |
| invalid.deprecated | #fdaeb7 | italic |
| invalid.illegal | #fdaeb7 | italic |
| invalid.unimplemented | #fdaeb7 | italic |
| carriage-return | #24292e | italic underline |
| message.error | #fdaeb7 | — |
| string variable | #c98a7d | — |
| source.regexp, string.regexp | #c4704f | — |
| string.regexp.character-class, string.regexp constant.character.escape, string.regexp source.ruby.embedded, string.regexp string.regexp.arbitrary-repitition | #c98a7d | — |
| string.regexp constant.character.escape | #e6cc77 | — |
| support.constant | #c99076 | — |
| keyword.operator.quantifier.regexp, constant.numeric, number | #4C9A91 | — |
| keyword.other.unit | #cb7676 | — |
| constant.language.boolean, constant.language | #4d9375 | — |
| meta.module-reference | #4d9375 | — |
| punctuation.definition.list.begin.markdown | #d4976c | — |
| markup.heading, markup.heading entity.name | #4d9375 | bold |
| markup.quote | #5d99a9 | — |
| markup.italic | #dbd7caee | italic |
| markup.bold | #dbd7caee | bold |
| markup.raw | #4d9375 | — |
| markup.deleted, meta.diff.header.from-file, punctuation.definition.deleted | #fdaeb7 | — |
| markup.inserted, meta.diff.header.to-file, punctuation.definition.inserted | #85e89d | — |
| markup.changed, punctuation.definition.changed | #ffab70 | — |
| markup.ignored, markup.untracked | #2f363d | — |
| meta.diff.range | #b392f0 | bold |
| meta.diff.header | #79b8ff | — |
| meta.separator | #79b8ff | bold |
| meta.output | #79b8ff | — |
| brackethighlighter.tag, brackethighlighter.curly, brackethighlighter.round, brackethighlighter.square, brackethighlighter.angle, brackethighlighter.quote | #d1d5da | — |
| brackethighlighter.unmatched | #fdaeb7 | — |
| constant.other.reference.link, string.other.link, punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown | #c98a7d | — |
| markup.underline.link.markdown, markup.underline.link.image.markdown | #dedcd590 | underline |
| type.identifier, constant.other.character-class.regexp | #6872ab | — |
| entity.other.attribute-name.html.vue | #80a665 | — |
| invalid.illegal.unrecognized-tag.html | — | normal |
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}!`;
}