Obsidian J
Publisher: jpromocionThemes in package: 1
Obsidian theme variant (obsidian-j-syntax for atom)
Obsidian theme variant (obsidian-j-syntax for atom)
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 markup.link | #7F848E | — |
| comment, punctuation.definition.comment | #7F848E | italic |
| comment.line.double-slash,comment.block.documentation | — | italic |
| string, string.template | #EC7600 | — |
| constant.numeric | #EFC210 | — |
| string.embedded.begin, string.embedded.end, punctuation.definition.template-expression, punctuation.section.embedded | #EFC210 | — |
| punctuation.section.embedded.begin.js, punctuation.section.embedded.end.js, punctuation.section.embedded.begin.erb, punctuation.section.embedded.end.erb, source.elixir.embedded, punctuation.separator, punctuation.accessor, meta.brace | #ABB2BF | — |
| constant.language | #678CB1 | — |
| constant.character, constant.other | #678CB1 | — |
| variable.language | #93C763 | — |
| keyword, keyword.operator.logical, keyword.operator.constructor | #93C763 | — |
| keyword.operator | #93C763 | — |
| storage | #93C763 | — |
| storage.type | #678CB1 | — |
| entity.name.class, entity.name.module, entity.name.type, storage.identifier, support.class | #678CB1 | — |
| variable.other.object, variable.other.constant, variable.other.global, variable.other.readwrite.class, variable.other.readwrite.instance, variable.other.readwrite.batchfile, variable.readwrite, variable.readwrite.other.block | #678CB1 | — |
| variable.other, variable.other.property, variable.other.block | #ABB2BF | — |
| entity.other.inherited-class | #E8E2B7 | — |
| storage.modifier.import, storage.modifier.package | #678CB1 | — |
| entity.name.function, support.function | #E8E2B7 | — |
| variable.parameter, entity.name.variable.parameter, parameter.variable | #ffcd22 | italic |
| entity.name.function-call | #ABB2BF | — |
| function.support.builtin, function.support.core | #E8E2B7 | — |
| entity.name.tag, entity.name.tag.class.js | #93C763 | — |
| entity.name.tag.class, entity.name.tag.id | #678CB1 | — |
| entity.other.attribute-name | #E8E2B7 | — |
| support.constant | #678CB1 | — |
| support.type, support.variable | #678CB1 | — |
| support.dictionary.json | #678CB1 | — |
| support.type.property-name.css, support.type.property-name.scss, support.type.property-name.less, support.type.property-name.sass | #ABB2BF | — |
| entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-class.scss, entity.other.attribute-name.pseudo-class.less, entity.other.attribute-name.pseudo-class.sass, entity.other.attribute-name.pseudo-element.css, entity.other.attribute-name.pseudo-element.scss, entity.other.attribute-name.pseudo-element.less, entity.other.attribute-name.pseudo-element.sass | #678CB1 | — |
| support.constant.css, support.constant.scss, support.constant.less, support.constant.sass | #E8E2B7 | — |
| variable.css, variable.scss, variable.less, variable.sass | #678CB1 | — |
| variable.css.string, variable.scss.string, variable.less.string, variable.sass.string | #EC7600 | — |
| unit.css, unit.scss, unit.less, unit.sass | #EFC210 | — |
| function.css, function.scss, function.less, function.sass | #678CB1 | — |
| support.other.variable | — | |
| invalid | #F8F8F0 | — |
| invalid.deprecated | #F8F8F0 | — |
| support.type.property-name.json | #678CB1 | — |
| string.detected-link | #678CB1 | — |
| meta.diff, meta.diff.header | #75715E | — |
| markup.deleted | #93C763 | — |
| markup.inserted | #E8E2B7 | — |
| markup.changed | #EC7600 | — |
| constant.numeric.line-number.find-in-files - match | #678CB1A0 | — |
| entity.name.filename.find-in-files | #EC7600 | — |
| markup.italic, markup.italic.markdown | — | italic |
| punctuation.definition.italic.markdown, punctuation.definition.bold.markdown, punctuation.definition.heading.markdown | #676F7D | — |
| punctuation.definition.italic.markdown | — | italic |
| markup.underline.link.markdown | #678CB1 | — |
| markup.bold.markdown | — | bold |
| markup.heading.markdown | #93C763 | bold |
| markup.quote.markdown | #E8E2B7 | — |
| meta.separator.markdown | #EFC210 | bold |
| markup.raw.inline.markdown, markup.raw.block.markdown | #678CB1 | — |
| punctuation.definition.list_item.markdown | #FFFFFF | bold |
| token.info-token | #6796E6 | — |
| token.warn-token | #CD9731 | — |
| token.error-token | #F44747 | — |
| token.debug-token | #B267E6 | — |
| source.ts, source.tsx, source.js, source.jsx | #f1f2f3 | — |
| keyword.control.import.ts, keyword.control.import.tsx, keyword.control.export.ts, keyword.control.export.tsx, keyword.control.from.ts, keyword.control.from.tsx | #93C763 | — |
| storage.type.class.ts, storage.type.class.tsx, storage.type.interface.ts, storage.type.interface.tsx, storage.type.type.ts, storage.type.type.tsx, storage.type.enum.ts, storage.type.enum.tsx | #93C763 | — |
| entity.name.type.ts, entity.name.type.tsx, entity.name.type.alias.ts, entity.name.type.alias.tsx | #678CB1 | — |
| entity.name.tag.js, entity.name.tag.jsx, entity.name.tag.tsx | #93C763 | — |
| support.class.component.js, support.class.component.jsx, support.class.component.tsx | #678CB1 | — |
| source.vue, text.html.vue | #f1f2f3 | — |
| entity.name.tag.vue, source.vue meta.tag.block.entity.name.tag, source.vue meta.tag.inline.entity.name.tag | #93C763 | — |
| source.python, storage.type.function.python, storage.type.class.python | #93C763 | — |
| support.function.builtin.python, support.function.magic.python | #E8E2B7 | — |
| source.go, keyword.function.go, keyword.type.go, keyword.struct.go, keyword.interface.go, keyword.const.go, keyword.var.go | #93C763 | — |
| source.rust, storage.type.rust, storage.modifier.rust, keyword.other.crate.rust | #93C763 | — |
| entity.name.type.rust | #678CB1 | — |
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}!`;
}