Obsidian Light
Publisher: narcilee7Themes in package: 1
A beautiful light theme inspired by Obsidian, featuring elegant grays, vibrant syntax highlighting, and excellent readability for long coding sessions.
A beautiful light theme inspired by Obsidian, featuring elegant grays, vibrant syntax highlighting, and excellent readability for long coding sessions.
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, comment.line, comment.block | #8a8a8a | italic |
| comment.block.documentation, comment.line.documentation | #6c757d | italic |
| keyword, keyword.control, keyword.operator, keyword.other | #8957e5 | |
| keyword.control.flow, keyword.control.loop | #7c4dff | |
| string, string.quoted, string.template | #0a6a3d | — |
| string.regexp, string.regexp.source | #b33e00 | — |
| variable, variable.other, variable.language, variable.parameter | #0550ae | — |
| variable.other.constant, variable.other.readwrite | #1d4ed8 | — |
| constant, constant.numeric, constant.character, constant.other | #b33e00 | — |
| constant.language, constant.language.boolean, constant.language.null | #a13d63 | — |
| entity.name.function, meta.function, support.function | #0550ae | — |
| entity.name.function.method, meta.method | #0550ae | — |
| entity.name.type, entity.name.class, entity.name.interface | #1d4ed8 | — |
| entity.other.inherited-class, entity.name.type.class | #1d4ed8 | italic |
| storage.type, storage.modifier | #8957e5 | — |
| punctuation, punctuation.separator, punctuation.terminator | #333333 | — |
| keyword.operator, keyword.operator.arithmetic, keyword.operator.logical | #8957e5 | — |
| variable.other.property, variable.other.object.property | #0550ae | — |
| entity.other.attribute-name, meta.attribute | #1d4ed8 | — |
| entity.name.tag, meta.tag | #116329 | — |
| entity.name.tag.html, entity.name.tag.xml | #116329 | — |
| source.css support.type.property-name, source.sass support.type.property-name, source.scss support.type.property-name | #0550ae | — |
| source.css constant.other.color, source.sass constant.other.color, source.scss constant.other.color | #b33e00 | — |
| variable.language.this, variable.language.super | #a13d63 | italic |
| meta.directive, meta.preprocessor | #963a24 | — |
| invalid, invalid.illegal | #ffffff | — |
| emphasis | — | italic |
| strong | — | bold |
| markup.underline.link, string.other.link | #0550ae | — |
| markup.heading, markup.heading.setext | #0550ae | bold |
| markup.bold, markup.strong | #0550ae | bold |
| markup.italic, markup.emphasis | #0a6a3d | italic |
| markup.quote | #8a8a8a | italic |
| markup.list, markup.list.bullet | #8957e5 | — |
| markup.inline.raw, markup.fenced_code.block | #0a6a3d | — |
| storage.type.function.python, meta.function.python | #0550ae | — |
| variable.parameter.function.python | #a13d63 | — |
| support.type.python | #1d4ed8 | — |
| meta.object-literal.key, string.quoted.double.json, string.quoted.single.json | #0550ae | — |
| meta.brace.square.ts, meta.brace.square.js | #333333 | — |
| entity.name.type.alias, entity.name.type.interface.ts, entity.name.type.class.ts | #1d4ed8 | — |
| support.class.component.react, entity.name.tag.tsx, entity.name.tag.jsx | #116329 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #0550ae | — |
| support.constant.property-value.css | #b33e00 | — |
| meta.at-rule.media.css, keyword.control.at-rule.css | #8957e5 | — |
| variable.other.php, punctuation.definition.variable.php | #0550ae | — |
| keyword.type.go, entity.name.type.go | #1d4ed8 | — |
| entity.name.type.struct.rust, entity.name.type.enum.rust, storage.type.struct.rust | #1d4ed8 | — |
| keyword.operator.macro.rust | #8957e5 | — |
| entity.name.type.typedef, storage.type.typedef | #1d4ed8 | — |
| keyword.other.DML.sql, keyword.other.DDL.sql | #8957e5 | — |
| entity.name.tag.yaml | #0550ae | — |
| keyword.other.special-method.dockerfile, entity.name.function.dockerfile | #8957e5 | — |
| keyword.control.shell, support.function.builtin.shell | #8957e5 | — |
| keyword.operation.graphql, keyword.type.graphql | #8957e5 | — |
| entity.name.tag.template.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html | #116329 | — |
| variable.language.self, variable.language.this, variable.language.super | #a13d63 | italic |
| support.type.primitive, support.type.builtin | #1d4ed8 | — |
| entity.name.namespace, entity.name.package | #6c757d | — |
| invalid.deprecated, invalid.illegal | #ffffff | — |
| invalid.unimplemented | #d73a49 | underline |
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}!`;
}