Janus Light
Publisher: JanusThemes in package: 2
This color theme is just for janus
This color theme is just for janus
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 |
|---|---|---|
| source | #333 | — |
| comment.line, comment.block, punctuation.definition.comment, comment markup.link, comment.source.cmake | #969896 | — |
| punctuation.definition.string, punctuation.definition.variable, punctuation.definition.string, punctuation.definition.parameters, punctuation.definition.string, punctuation.definition.array | #173591 | — |
| punctuation.section.scope, support.function.core | #333 | — |
| keyword.operator | #333 | — |
| variable.other, variable.other.readwrite, variable.other.member, variable.other.object.property, variable.other.property, variable.object.property, support.variable.property, meta.method.body.java | #326fc0 | — |
| entity.name.constant, constant.other.caps.python, constant.other.caps.rust, variable.other.constant | #f29317 | — |
| constant, constant.other.symbol, constant.character.escape.scss, constant.character.escape.css, constant.language.symbol, constant.numeric | #895656 | — |
| string, constant.character.escape | #009485 | — |
| variable.language, variable.language.this.cpp, variable.parameter.function.language.special.self.python, variable.language.special.self.python, variable.language.self.rust | #f29317 | — |
| keyword, keyword.operator.new, keyword.operator.delete | #ca4242 | — |
| storage | #ca4242 | — |
| entity.name.function, entity.name.method, variable.function, meta.function-call.python, meta.require, support.function, support.function.any-method, keyword.other.special-method | #79619e | — |
| variable.parameter | #326fc0 | — |
| variable.other.enummember.cpp | #f29317 | — |
| support.class, entity.name.class, entity.other.inherited-class | #333 | — |
| entity.name.type, storage.type.built-in, storage.type.annotation, storage.type.primitive, support.type, support.type.property-name, support.class.cpp, storage.type.java, storage.type.object | #333333 | — |
| keyword.control.directive.include.c, keyword.control.directive.include.cpp, keyword.control.directive.define.c, keyword.control.directive.define.cpp | #ca4242 | — |
| string.quoted.other.lt-gt.include.cpp, string.quoted.other.lt-gt.include.c, string.quoted.double.include.cpp, string.quoted.double.include.c | #333333 | — |
| entity.name.tag | #63a3a4 | — |
| entity.other.attribute-name, meta.attribute.rust, storage.type.annotation.java | #795DA3 | — |
| entity.other.attribute-name.id, punctuation.definition.entity | #795DA3 | — |
| meta.selector | #A71D5D | — |
| markup.heading punctuation.definition.heading, entity.name.section | #795DA3 | — |
| keyword.other.unit | #5C9966 | — |
| markup.bold, punctuation.definition.bold | #795DA3 | bold |
| markup.italic, punctuation.definition.italic | #A71D5D | italic |
| markup.raw.inline | #183691 | — |
| support.type.property-name.json, support.type.property-name.toml, entity.name.tag.yaml | #326fc0 | — |
| string.other.link | #ED6A43 | — |
| meta.link | #795DA3 | — |
| markup.lists | #ED6A43 | — |
| markup.quote | #795DA3 | — |
| meta.separator | #333 | — |
| markup.inserted | #A1DF8A | — |
| markup.deleted | #EB5368 | — |
| markup.changed | #F0C36F | — |
| string.regexp | #795DA3 | — |
| constant.character.escape | #795DA3 | — |
| punctuation.section.embedded, variable.interpolation | #ab7967 | — |
| punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html | #333 | — |
| entity.name.tag | #63a3a4 | — |
| meta.tag entity.other.attribute-name, entity.other.attribute-name.html | #91B3E0 | italic |
| constant.character.entity, punctuation.definition.entity | #AB6526 | — |
| meta.selector, meta.selector entity, meta.selector entity punctuation, entity.name.tag.css | #7A3E9D | — |
| meta.property-value, meta.property-value constant.other, support.constant.property-value | #448C27 | — |
| keyword.other.important | — | bold |
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}!`;
}