Obsidian Sunset
Publisher: Łukasz CzerniawskiThemes in package: 1
Obsidian Sunset is a dark and colorful theme that makes your code readable and beautiful.
Obsidian Sunset is a dark and colorful theme that makes your code readable and beautiful.
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 |
|---|---|---|
| — | #bfbdb6 | — |
| comment | #acb6bf8c | italic |
| string, constant.other.symbol | #F6D776 | — |
| string.regexp, constant.character, constant.other | #FAEF9B | — |
| constant.numeric | #86B6F6 | — |
| constant.language | #9ac6ff | — |
| variable, variable.parameter.function-call | #BBB8EE | — |
| variable.other.property, support.variable.property, support.variable.property.dom, meta.function-call variable.other.object.property | #7977F0 | — |
| variable.member | #f07178 | — |
| variable.language | #39bae6 | italic |
| storage | #ff8f40 | — |
| keyword | #fe6d73 | — |
| keyword.operator | #FFC0D9 | — |
| punctuation.separator, punctuation.terminator | #bfbdb6b3 | — |
| punctuation.section | #bfbdb6 | — |
| punctuation.accessor | #f29668 | — |
| punctuation.definition.template-expression | #ff8f40 | — |
| punctuation.section.embedded | #ff8f40 | — |
| meta.embedded | #bfbdb6 | — |
| source.java storage.type, source.haskell storage.type, source.c storage.type | #59c2ff | — |
| entity.other.inherited-class | #39bae6 | — |
| storage.type.function | #ff8f40 | — |
| source.java storage.type.primitive | #39bae6 | — |
| entity.name.function | #65B741 | — |
| variable.parameter, meta.parameter | #EE7214 | — |
| variable.function, variable.annotation, meta.function-call.generic, support.function.go | #92b781 | — |
| support.function, support.macro | #6eb052 | — |
| entity.name.import, entity.name.package | #86B6F6 | — |
| entity.name | #3081D0 | — |
| entity.name.tag, meta.tag.sgml | #6a994e | — |
| support.class.component | #59c2ff | — |
| punctuation.definition.tag.end, punctuation.definition.tag.begin, punctuation.definition.tag | #6a994e80 | — |
| entity.other.attribute-name | #508D69 | — |
| support.constant | #f29668 | italic |
| support.type, support.class, source.go storage.type | #39bae6 | — |
| meta.decorator variable.other, meta.decorator punctuation.decorator, storage.type.annotation | #e6b673 | — |
| invalid | #d95757 | — |
| meta.diff, meta.diff.header | #c594c5 | — |
| source.ruby variable.other.readwrite | #ffb454 | — |
| source.css entity.name.tag, source.sass entity.name.tag, source.scss entity.name.tag, source.less entity.name.tag, source.stylus entity.name.tag | #59c2ff | — |
| source.css support.type, source.sass support.type, source.scss support.type, source.less support.type, source.stylus support.type | #acb6bf8c | — |
| support.type.property-name | #8946e2 | |
| constant.numeric.line-number.find-in-files - match | #acb6bf8c | — |
| constant.numeric.line-number.match | #ff8f40 | — |
| entity.name.filename.find-in-files | #aad94c | — |
| message.error | #d95757 | — |
| markup.heading, markup.heading entity.name | #D87186 | bold |
| markup.underline.link, string.other.link | #39bae6 | — |
| markup.italic | #FCE08A | italic |
| markup.bold | #E8A254 | bold |
| markup.italic markup.bold, markup.bold markup.italic | — | bold italic |
| markup.raw | — | — |
| markup.raw.inline | — | — |
| meta.separator | #acb6bf8c | bold |
| markup.quote | #95e6cb | italic |
| markup.list punctuation.definition.list.begin | #ffb454 | — |
| markup.inserted | #7fd962 | — |
| markup.changed | #73b8ff | — |
| markup.deleted | #f26d78 | — |
| markup.strike | #e6b673 | — |
| markup.table | #39bae6 | — |
| text.html.markdown markup.inline.raw | #f29668 | — |
| text.html.markdown meta.dummy.line-break | #acb6bf8c | — |
| punctuation.definition.markdown | #acb6bf8c | — |
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}!`;
}