Raven - Rosé Pine Dark
Publisher: SensorEvolveThemes in package: 1
A darker variant of Rosé Pine — deep as night, refined as dusk.
A darker variant of Rosé Pine — deep as night, refined as dusk.
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 |
|---|---|---|
| Global settings | #e0def4 | — |
| comment, punctuation.definition.comment | #6e6a86 | italic |
| string, string.quoted, string.template | #9ccfd8 | — |
| constant.character.escape, string.regexp | #ebbcba | — |
| constant.numeric, constant.numeric.integer, constant.numeric.float, constant.numeric.hex, constant.numeric.octal | #f6c177 | — |
| constant.language, constant.language.boolean, constant.language.null, constant.language.undefined | #c4a7e7 | italic |
| constant.other, constant.character | #ebbcba | — |
| keyword, keyword.control, keyword.control.flow, keyword.control.conditional, keyword.control.loop, keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.as, keyword.operator.new, keyword.operator.delete, keyword.operator.typeof, keyword.operator.void, keyword.operator.instanceof, keyword.operator.in | #31748f | italic |
| keyword.control.return, keyword.control.yield | #eb6f92 | italic |
| keyword.operator, keyword.operator.arithmetic, keyword.operator.assignment, keyword.operator.comparison, keyword.operator.logical, keyword.operator.bitwise, keyword.operator.spread, keyword.operator.rest, keyword.operator.ternary, keyword.operator.optional | #908caa | — |
| storage, storage.type, storage.type.function, storage.type.class, storage.type.interface, storage.type.enum, storage.type.namespace, storage.type.module, storage.type.var, storage.type.let, storage.type.const, storage.type.async, storage.modifier | #31748f | italic |
| entity.name.function, meta.function entity.name.function, support.function | #9ccfd8 | — |
| meta.function-call entity.name.function, meta.function-call.generic, meta.method-call entity.name.function | #9ccfd8 | — |
| entity.name.class, entity.name.type.class, entity.name.type.interface, entity.name.type.enum, entity.name.type.namespace, entity.name.type | #f6c177 | — |
| entity.other.inherited-class | #ebbcba | italic |
| variable.parameter, meta.function.parameter | #ebbcba | italic |
| variable, variable.other, variable.other.readwrite, variable.other.object | #e0def4 | — |
| variable.language.this, variable.language.self, variable.language.super | #eb6f92 | italic |
| variable.other.property, variable.other.object.property, support.variable.property, meta.property.object | #e0def4 | — |
| meta.type.annotation, meta.type.parameters, entity.name.type.primitive, support.type.primitive, support.type.builtin | #c4a7e7 | italic |
| meta.decorator, punctuation.decorator, entity.name.function.decorator, meta.annotation | #c4a7e7 | italic |
| punctuation, punctuation.definition, punctuation.separator, punctuation.terminator, punctuation.accessor, punctuation.section | #908caa | — |
| punctuation.definition.bracket, meta.brace, punctuation.definition.block, punctuation.definition.array, punctuation.definition.parameters, punctuation.definition.arguments | #908caa | — |
| string.quoted.double.import, string.quoted.single.import, meta.import string | #9ccfd8 | — |
| meta.object-literal.key, meta.objectliteral entity.name.function, string.quoted.json support.type.property-name | #ebbcba | — |
| entity.name.tag, meta.tag entity.name.tag | #eb6f92 | — |
| entity.other.attribute-name, meta.tag entity.other.attribute-name | #c4a7e7 | — |
| meta.attribute-with-value string, meta.tag.inline string, meta.attribute string.quoted | #9ccfd8 | — |
| support.type.property-name.css, meta.property-name, support.type.property-name | #9ccfd8 | — |
| meta.property-value, support.constant.property-value, support.constant.color, support.constant.font-name, support.constant.media-type | #ebbcba | — |
| entity.name.tag.css, meta.selector, entity.other.pseudo-class.css, entity.other.pseudo-element.css | #f6c177 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #c4a7e7 | — |
| keyword.control.at-rule, keyword.control.at-rule.media, keyword.control.at-rule.keyframes, keyword.control.at-rule.import | #31748f | italic |
| markup.heading, markup.heading.setext, entity.name.section.markdown, punctuation.definition.heading.markdown | #ebbcba | bold |
| markup.bold, punctuation.definition.bold | #f6c177 | bold |
| markup.italic, punctuation.definition.italic | #ebbcba | italic |
| markup.underline.link, markup.underline.link.image | #9ccfd8 | underline |
| string.other.link.title.markdown, string.other.link.description.markdown | #c4a7e7 | — |
| markup.raw.inline, markup.raw.block, markup.fenced_code.block | #9ccfd8 | — |
| punctuation.definition.list.begin.markdown, beginning.punctuation.definition.list.markdown | #eb6f92 | — |
| markup.quote, punctuation.definition.quote.begin.markdown | #6e6a86 | italic |
| source.json support.type.property-name | #ebbcba | — |
| support.function.builtin.python, support.type.python | #c4a7e7 | italic |
| support.function.magic.python | #9ccfd8 | italic |
| entity.name.function.decorator.python, meta.function.decorator.python | #c4a7e7 | italic |
| entity.name.lifetime.rust, storage.modifier.lifetime.rust, punctuation.definition.lifetime.rust | #eb6f92 | italic |
| entity.name.function.macro.rust, meta.macro.rust | #9ccfd8 | — |
| entity.name.package.go | #c4a7e7 | — |
| variable.other.normal.shell, variable.other.special.shell, variable.other.positional.shell, variable.other.bracket.shell | #ebbcba | — |
| invalid, invalid.illegal, invalid.deprecated | #eb6f92 | strikethrough |
| support.function, support.class, support.other.module | #9ccfd8 | — |
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}!`;
}