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 |
|---|---|---|
| comment.line, comment.block, punctuation.definition.comment, comment.markup.link, comment.source.cmake | #928374 | italic |
| string, string.tag, string.value, string.entity, constant.character.escape, punctuation.definition.string, string.quoted.double, string.quoted.single, string.template, string.quasi, string.interpolated.dollar.shell, string.interpolated.backtick.shell | #8b9553 | — |
| constant, constant.numeric, constant.language.boolean, constant.other, support.constant, constant.character, constant.escape, constant.rgb-value, constant.language.empty-list.haskell | #d3869b | — |
| keyword, keyword.operator, keyword.operator.new, keyword.operator.expression, keyword.operator.logical, keyword.control, keyword.control.import, keyword.control.directive, keyword.control.class, keyword.control.module, keyword.control.def, keyword.declaration.class, keyword.declaration.module, keyword.declaration.interface, keyword.other.fn, keyword.package, keyword.import, keyword.other.fn.rust, keyword.hard.class.kotlin, storage, storage.modifier, storage.type, storage.type.function, storage.type.class, storage.type.class.cs, storage.type.template, storage.type.namespace, storage.type.struct, storage.type.enum, storage.type.extern, storage.type.interface, storage.type.annotation, storage.type.primitive, storage.type.object, storage.type.java, storage.modifier.declaration, storage.type.function.jsdoc, punctuation.definition.keyword, punctuation.definition.directive, punctuation.definition.directive.c, source.css keyword.control.at-rule, source.scss keyword.control.at-rule, source.js storage.type, source.ts storage.type, source.js.jsx storage.type, source.tsx storage.type, source.cs storage.type, source.rust storage.type | #d75f5f | — |
| variable, variable.other, variable.other.readwrite, variable.other.object.property, variable.other.readwrite.instance, variable.other.readwrite.global, variable.other.property, variable.other.constant, variable.other.enummember, variable.other.block, variable.other.constant.cpp, variable.name, variable.parameter, variable.arguments, variable.this, variable.language, variable.language.this, variable.language.self, variable.parameter.function.language.special.self.python, entity.name.variable, entity.name.variable.property, meta.object-literal.key, source.python support.variable, source.css support.constant, source.scss variable.other, source.sass variable.other, punctuation.separator, punctuation.quoted, punctuation.definition.variable.ruby, variable.other.readwrite.class, entity.name.type.package.go, entity.name.namespace, entity.name.type.namespace | #dfbf8e | — |
| entity.function, entity.name.function, entity.name.function.static, entity.name.function.function-call, entity.name.method, entity.name.function.member, entity.name.function.preprocessor, entity.name.function.decorator, support.function, support.function.c, support.function.cpp, support.function.magic, support.function.url.css, support.function.misc.scss, support.function.constructor, support.function.git-rebase, support.function.interpolation.sass, meta.function-call, meta.function-call.ruby, meta.function.method, meta.decorator, meta.decorator.ts entity.name.function.ts, meta.decorator.tsx entity.name.function.tsx | #a8a81c | — |
| entity.name.class, entity.other.inherited-class, entity.other.attribute-name.class, entity.name.type.class, entity.name.selector, meta.selector, entity.name.tag, punctuation.tag, entity.other.attribute-name, entity.other.attribute-selector, entity.other.attribute-name.id, punctuation.definition.entity, entity.name.type, entity.other.inherited-class.python, entity.other.inherited-class.js, entity.other.inherited-class.ts, entity.other.inherited-class.jsx, entity.other.inherited-class.tsx | #87af87 | — |
| entity.name.type, entity.name.type.namespace, entity.name.type.package, entity.name.type.interface, entity.name.type.enum, entity.name.type.parameter, support.type, support.class, support.type.property-name, source.json meta.structure.dictionary.json support.type.property-name.json, source.json meta.structure.dictionary.json meta.structure.dictionary.value.json support.type.property-name.json | #d69617 | — |
| entity.other.attribute-name, entity.other.attribute-name.class, meta.attribute.rust, storage.type.annotation, storage.type.annotation.java, punctuation.definition.annotation, punctuation.decorator, module.node, variable.other.object.property, source.python support.type, meta.function.decorator.python support.type.python | #83a598 | — |
| entity.name.tag, punctuation.tag, meta.preprocessor, meta.header.diff, string.regexp, metatag.php, punctuation.definition.logical-expression, markup.changed, source.haskell keyword.operator | #e78a4e | — |
| markup.heading, punctuation.definition.heading, entity.name.section | #e78a4e | bold |
| markup.bold, punctuation.definition.bold | #e78a4e | bold |
| markup.italic, punctuation.definition.italic, emphasis | — | italic |
| markup.raw.inline, markup.fenced_code, markup.fenced_code.block, punctuation.definition.fenced | #a8a81c | — |
| string.other.link, markup.underline.link | #a8a81c | — |
| meta.link, *url*, *link*, *uri* | #83a598 | underline |
| markup.list, markup.punctuation.list.beginning | #a8a81c | — |
| markup.quote | #83a598 | — |
| meta.separator | #dfbf8e | — |
| markup.inserted | #8b9553 | — |
| markup.deleted, entity.other.attribute-name.pseudo-element.css, entity.other.attribute-name.pseudo-class.css | #d65d0e | — |
| markup.changed | #d69617 | — |
| string.regexp | #e78a4e | — |
| constant.character.escape, constant.character.escape.scss, constant.character.escape.css | #83a598 | — |
| punctuation.section.embedded, punctuation.section.embedded.begin.ruby, punctuation.section.embedded.end.ruby, variable.interpolation | #cea64a | — |
| keyword.other.unit, source.css keyword.other.unit, source.scss keyword.control.unit, source.css constant.numeric, source.css support.constant.property-value | #d69617 | — |
| support.type.property-name.json, support.type.property-name.toml, entity.name.type.package.go | #dfbf8e | — |
| keyword.control.class.begin.ruby, keyword.control.class.end.ruby, keyword.control.module.begin.ruby, keyword.control.module.end.ruby, keyword.control.def.begin.ruby, keyword.control.def.end.ruby, meta.function.method keyword.control.rescue.ruby, meta.function.method keyword.control.ensure.ruby, keyword.declaration.class.begin.rbs, keyword.declaration.class.end.rbs, keyword.declaration.module.begin.rbs, keyword.declaration.module.end.rbs, keyword.declaration.interface.begin.rbs, keyword.declaration.interface.end.rbs, keyword.control.def.rbs, keyword.control.import.python, keyword.control.from.js, keyword.control.from.jsx, keyword.control.from.ts, keyword.control.from.tsx, keyword.control.as.js, keyword.control.as.jsx, meta.import.ts keyword.control.as.ts, meta.import.tsx keyword.control.as.tsx, keyword.control.import.js, keyword.control.import.jsx, keyword.control.import.ts, keyword.control.import.tsx, meta.import.ts keyword.control.default.ts, meta.import.js keyword.control.default.js, meta.import.tsx keyword.control.default.tsx, meta.import.jsx keyword.control.default.js.jsx | #dfbf8e | — |
| meta.selector, meta.selector entity, meta.selector entity punctuation, entity.name.tag.css | #87af87 | — |
| meta.property-value, meta.property-value constant.other, support.constant.property-value, source.css meta.selector, source.scss meta.attribute-selector | #8b9553 | — |
| keyword.other.important | — | bold |
| markup.inline.raw, markup.fenced_code.block, markup.underline, text.html.markdown | #a8a81c | — |
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 | #333333 | — |
| comment.line, comment.block, punctuation.definition.comment, comment markup.link, comment source.cmake | #969896 | — |
| punctuation.definition.string, punctuation.definition.variable, punctuation.definition.parameters, punctuation.definition.array | #173591 | — |
| punctuation.section.scope, support.function.core | #333333 | — |
| keyword.operator | #333333 | — |
| 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.language.symbol, constant.numeric | #895656 | — |
| string | #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 | #333333 | — |
| 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 | — |
| entity.name.function.preprocessor.c, entity.name.function.preprocessor.cpp | #79619e | — |
| 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 | #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 | #333333 | — |
| 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 | #333333 | — |
| meta.tag entity.other.attribute-name, entity.other.attribute-name.html | #91B3E0 | italic |
| constant.character.entity, punctuation.definition.entity | #AB6526 | — |
| 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}!`;
}
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}!`;
}