dimmed-night Theme
Publisher: geraneThemes in package: 1
dimmed-night Theme ported from the dimmed-night TextMate Theme
dimmed-night Theme ported from the dimmed-night TextMate Theme
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #dddddd | — |
| By uonick | — | — |
| comment | #676867 | |
| string | #676d3d | |
| string source | #7d4e37 | |
| constant.numeric | #4e6072 | |
| constant.language | #405c5c | |
| keyword | #4e6072 | |
| support | #7b4244 | |
| storage | #66566b | |
| entity.name.class, entity.name.type.class, entity.name.type.module | #4e6072 | |
| entity.other.inherited-class | #7b4244 | bold |
| entity.name.function | #7d4e37 | bold |
| variable.parameter | #4e6072 | |
| entity.name.tag | #66566b | |
| entity.other.attribute-name | #66566b | |
| support.function | #66566b | |
| keyword | #9f9f9f | |
| variable.other, variable.js, punctuation.separator.variable | #4e6072 | |
| constant.language | #93245c | |
| invalid | #932924 | bold |
| punctuation.section.embedded -(source string source punctuation.section.embedded), meta.brace.erb.html | #676d3d | |
| variable.other.php, variable.other.normal | #4e6072 | |
| meta.function-call | #4e6072 | |
| meta.function-call.object | #9aa83a | |
| variable.other.property | #c66300 | |
| keyword.control | #c66300 | |
| meta.tag | #7f7242 | |
| entity.name.tag | #4e6072 | |
| meta.doctype, meta.tag.sgml-declaration.doctype, meta.tag.sgml.doctype | #787878 | |
| meta.tag.inline source, text.html.php.source | #676d3d | |
| meta.tag.other, entity.name.tag.style, entity.name.tag.script, meta.tag.block.script, source.js.embedded punctuation.definition.tag.html, source.css.embedded punctuation.definition.tag.html | #c66300 | |
| entity.other.attribute-name, meta.tag punctuation.definition.string | #7f7242 | |
| meta.tag string -source -punctuation, text source text meta.tag string -punctuation | #4e6072 | |
| punctuation.section.embedded -(source string source punctuation.section.embedded), meta.brace.erb.html | #7f7242 | |
| meta.toc-list.id | #676d3d | — |
| string.quoted.double.html, punctuation.definition.string.begin.html, punctuation.definition.string.end.html | #676d3d | |
| punctuation.definition.tag.html, punctuation.definition.tag.begin, punctuation.definition.tag.end | #4e6072 | |
| meta.selector.css entity.other.attribute-name.id | #c66300 | |
| support.type.property-name.css | #515151 | |
| meta.property-group support.constant.property-value.css, meta.property-value support.constant.property-value.css | #7b4244 | |
| variable.language.js | #410082 | bold |
| meta.function-call.object.php | #c66300 | |
| punctuation.definition.string.end.php, punctuation.definition.string.begin.php | #676d3d | — |
| source.php.embedded.line.html | #515151 | — |
| punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php | #7d4e37 | |
| constant.other.symbol.ruby | #676d3d | |
| variable.language.ruby | #7f7242 | |
| keyword.other.special-method.ruby | #837424 | |
| source.ruby.embedded.source | #7d4e37 | — |
| keyword.other.DML.sql | #89765a |
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}!`;
}