Onoyama Extensions
Publisher: OnoyamaNekoThemes in package: 2
Light font color with dark background makes writing code easier and more comfortable for the eyes. Snippets Support for HTML/Css
Light font color with dark background makes writing code easier and more comfortable for the eyes. Snippets Support for HTML/Css
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 |
|---|---|---|
| text.html.derivative | #ffffff | |
| comment.block.html | #e372ff65 | italic strikethrough |
| entity.other.attribute-name.html, punctuation.separator.key-value.html, punctuation.definition.string.begin.html, punctuation.definition.string.end.html | #e372ff | |
| string.quoted.double.html | #BFACE2 | italic bold |
| entity.name.tag.html, punctuation.definition.tag.end.html, punctuation.definition.tag.begin.html | #ff00ff | bold |
| support.constant.property-value.css, constant.numeric.css, constant.other.color.rgb-value.hex.css, keyword, meta.property-value.css, support.constant.color.w3c-standard-color-name.css | #ffffff | |
| support.function.url.css, support.function.misc.css, support.function.transform.css, variable.parameter.keyframe-list.css, variable.css, support.function.calc.css, support.function.gradient.css, variable.argument.css, string.quoted.single.css, invalid.deprecated.color.system.css | #645CBB | italic bold |
| meta.property-list.css | #BFACE2 | |
| support.type.property-name.css, string.unquoted.attribute-value.css | #BFACE2 | italic |
| comment.block.css | #e372ff65 | italic |
| entity.other.attribute-name.pseudo-element.css, punctuation.separator.list.comma.css, entity.other.attribute-name.pseudo-class.css, meta.attribute-selector.css, entity.other.attribute-name | #e372ff | |
| keyword.control.at-rule.font-face.css, keyword.control.at-rule.keyframes.css, entity.name.tag.css, entity.name.tag.wildcard.css, entity.other.attribute-name.class.css, keyword.control.at-rule.media.css, entity.other.attribute-name.id.css | #ff00ff | bold |
| support.constant.font-name.css | #645CBB | |
| comment.line.double-slash.js | #e372ff65 | italic |
| string.quoted.double.js, string.quoted.single.js, string.quoted.double.json.comments | #645CBB | italic bold |
| string.quoted.double.js, string.quoted.single.js, variable.other.readwrite.js, variable.other.constant, variable | #645CBB | italic bold |
| support.type.property-name.json.comments, meta.definition.variable.js, variable.other.constant.js, storage.type.function.js | #ff00ff | italic bold |
| storage.type.js, variable.other.object.js, entity.name.function, meta.object.member.js | #BFACE2 | italic |
| support.constant.property | #e372ff | italic bold |
| constant.numeric.decimal.js, keyword.operator.arithmetic.js, keyword.operator.increment.js, keyword.operator.decrement.js, keyword.operator.relational.js, keyword.operator.comparison.js, variable.parameter | #e372ff | italic |
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}!`;
}