Regulus
Publisher: Krishitha KThemes in package: 1
A premium dark Visual Studio Code theme inspired by Regulus, the brightest star in the constellation Leo.
A premium dark Visual Studio Code theme inspired by Regulus, the brightest star in the constellation Leo.
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 | #6C7893 | italic |
| comment.block.documentation keyword, comment.block.documentation storage.type.class, comment.block.documentation entity.name.type | #8DA0C9 | italic |
| invalid.deprecated | #8A94B5 | strikethrough |
| invalid, invalid.illegal | #FF7B72 | underline |
| keyword, keyword.control, keyword.control.flow, keyword.control.import, keyword.control.export, keyword.control.trycatch, keyword.control.conditional, keyword.control.loop, keyword.other, keyword.operator.new, keyword.operator.expression, keyword.operator.logical | #E8B84A | — |
| storage, storage.type, storage.modifier, keyword.other.using, keyword.other.this, variable.language.this, variable.language.self, variable.language.super, variable.parameter.function.language.special.self, storage.modifier.async | #E8B84A | — |
| string, string.quoted, string.template, punctuation.definition.string | #78D8A5 | — |
| constant.character.escape, punctuation.definition.template-expression, punctuation.section.embedded | #66D9EF | — |
| constant.numeric, constant.language, constant.language.boolean, constant.language.null, constant.language.undefined | #F5A65B | — |
| entity.name.function, support.function, meta.function-call, variable.function, meta.function-call.generic | #6CB6FF | — |
| meta.function entity.name.function, entity.name.function.member | #6CB6FF | bold |
| support.function.builtin, support.function.magic, meta.function.python entity.name.function.decorator | #8EC7FF | italic |
| entity.name.type, entity.name.type.class, entity.name.class, support.class, support.type, entity.other.inherited-class | #B8A1FF | — |
| entity.name.type.interface, entity.name.type.trait, entity.name.type.protocol, meta.interface | #8FD3FF | — |
| entity.name.type.enum, storage.type.enum, meta.record | #E8B84A | — |
| meta.type.annotation, support.type.python, punctuation.separator.annotation, storage.type.annotation | #D6B8FF | — |
| storage.type.generic, entity.name.type.parameter | #D6B8FF | italic |
| entity.name.namespace, entity.name.type.module, entity.name.type.namespace, entity.name.package | #66D9EF | — |
| constant.other, variable.other.constant, variable.other.readwrite.alias | #66D9EF | — |
| variable.parameter, meta.parameter | #F8D66D | — |
| variable.other.property, support.variable.property, variable.other.object.property | #A7C7FF | — |
| meta.decorator, punctuation.decorator, entity.name.function.decorator, storage.type.annotation.java, meta.annotation, keyword.operator.attribute.rust, meta.attribute.rust | #78D8A5 | italic |
| entity.name.function.macro, keyword.control.directive, punctuation.definition.directive, meta.preprocessor | #F47067 | — |
| support.type.exception, entity.name.type.exception | #FF7B72 | — |
| storage.modifier.lifetime, entity.name.type.lifetime | #F5A65B | italic |
| keyword.operator, punctuation, punctuation.separator, punctuation.terminator, punctuation.accessor | #D6DCE8 | — |
| entity.name.tag, meta.tag.sgml | #E8B84A | — |
| entity.other.attribute-name | #66D9EF | — |
| meta.tag.metadata.doctype, constant.character.entity | #F5A65B | — |
| support.class.component, entity.name.tag.jsx, entity.name.tag.tsx | #B8A1FF | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, entity.name.tag.css, meta.selector.css | #E8B84A | — |
| entity.other.attribute-name.pseudo-class, entity.other.attribute-name.pseudo-element | #F8D66D | — |
| support.type.property-name.css, support.type.property-name.scss | #A7C7FF | — |
| support.constant.property-value.css, keyword.other.unit.css, support.function.misc.css | #F5A65B | — |
| variable.css, variable.scss, variable.argument.css | #66D9EF | — |
| support.type.property-name.json | #B8A1FF | — |
| constant.language.json | #F5A65B | — |
| entity.name.tag.yaml | #B8A1FF | — |
| variable.other.alias.yaml, punctuation.definition.anchor.yaml, punctuation.definition.alias.yaml | #66D9EF | — |
| entity.name.tag.toml, support.type.property-name.toml | #B8A1FF | — |
| keyword.other.sql, keyword.dml.sql, keyword.dql.sql, keyword.ddl.sql | #E8B84A | — |
| support.function.sql | #6CB6FF | — |
| support.type.table.sql, variable.parameter.column.sql, entity.name.function.sql | #A7C7FF | — |
| support.function.builtin.shell, constant.other.option, entity.name.function.option | #6CB6FF | — |
| keyword.other.dockerfile, keyword.control.dockerfile | #E8B84A | — |
| entity.name.function.target.makefile, entity.name.section.makefile | #6CB6FF | — |
| markup.heading, markup.heading.setext | #6CB6FF | bold |
| markup.bold | #F5A65B | bold |
| markup.italic | #78D8A5 | italic |
| markup.underline.link, string.other.link | #6CB6FF | underline |
| markup.quote | #8A94B5 | italic |
| markup.inline.raw, markup.fenced_code.block, markup.raw.block | #E8B84A | — |
| punctuation.definition.list.begin.markdown, markup.list | #F5A65B | — |
| punctuation.definition.table.markdown, markup.table | #66D9EF | — |
| markup.inserted, meta.diff.header.to-file | #78D8A5 | — |
| markup.deleted, meta.diff.header.from-file | #F47067 | — |
| markup.changed | #E8B84A | — |
| string.regexp, constant.character.escape.regexp | #66D9EF | — |
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}!`;
}