One Dark Darker YY
Publisher: Yaroslav_YeThemes in package: 1
A One Dark variant ported hex-for-hex from a RubyMine setup: darker UI chrome with the classic One Dark syntax palette, plus Ruby-specific colors.
A One Dark variant ported hex-for-hex from a RubyMine setup: darker UI chrome with the classic One Dark syntax palette, plus Ruby-specific colors.
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 | #5c6370 | italic |
| comment.line.todo, keyword.todo | #ff8c00 | italic bold |
| keyword, keyword.control, keyword.operator.new, storage, storage.type, storage.modifier | #c678dd | — |
| storage.type.class.jsdoc, keyword.other.documentation | #c678dd | — |
| string, string.quoted, string.template, punctuation.definition.string | #98c379 | — |
| constant.character.escape | #56b6c2 | — |
| constant.numeric, constant.language, constant.other | #d19a66 | — |
| entity.name.class, entity.name.type, entity.other.inherited-class, support.class, support.type | #e5c07b | — |
| entity.name.function, support.function, meta.function-call, meta.function-call.generic | #61afef | — |
| variable, entity.name.tag, variable.other.property, entity.other.attribute-name | #e06c75 | — |
| variable.parameter, entity.other.attribute-name.id | #d19a66 | — |
| punctuation, meta.brace | #abb2bf | — |
| constant.language.symbol.ruby, constant.language.symbol.hashkey.ruby, constant.language.symbol.interpolated.ruby, constant.other.symbol.hashkey.parameter.function.ruby, punctuation.definition.symbol.begin.ruby, punctuation.definition.symbol.end.ruby, punctuation.section.symbol.begin.ruby, punctuation.section.symbol.end.ruby | #56b6c2 | — |
| string.regexp.interpolated.ruby, string.regexp.group.ruby, string.regexp.character-class.ruby, string.regexp.arbitrary-repetition.ruby | #56b6c2 | — |
| punctuation.section.embedded.begin.ruby, punctuation.section.embedded.end.ruby | #e06c75 | — |
| variable.other.constant.ruby, variable.other.block.ruby | #d19a66 | — |
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}!`;
}