Newbie Light Color Theme
Publisher: luna_kolyThemes in package: 1
Simple light color theme inspired by code snippets from Habr.com
Simple light color theme inspired by code snippets from Habr.com
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 |
|---|---|---|
| meta.embedded, source.groovy.embedded | #000000 | — |
| emphasis | — | italic |
| strong | — | bold |
| meta.diff.header | #000080 | — |
| constant.language | #F18A2B | — |
| constant.numeric, entity.name.operator.custom-literal.number, variable.other.enummember, keyword.operator.plus.exponent, keyword.operator.minus.exponent | #F18A2B | — |
| constant.regexp | #F18A2B | — |
| entity.name.tag | #A31515 | — |
| entity.name.selector | #A31515 | — |
| entity.other.attribute-name | #FF0000 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.class.mixin.css, entity.other.attribute-name.id.css, entity.other.attribute-name.parent-selector.css, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css, source.css.less entity.other.attribute-name.id, entity.other.attribute-name.attribute.scss, entity.other.attribute-name.scss | #A31515 | — |
| invalid | #CD3131 | — |
| markup.underline | — | underline |
| markup.bold | — | bold |
| markup.heading | #A31515 | underline |
| markup.italic | — | italic |
| markup.inserted | #098658 | — |
| markup.deleted | #A31515 | — |
| markup.changed | #0451A5 | — |
| punctuation.definition.quote.begin.markdown, punctuation.definition.list.begin.markdown | #0451A5 | — |
| markup.inline.raw | #A31515 | — |
| punctuation.definition.tag | #A31515 | — |
| meta.preprocessor, entity.name.function.preprocessor | #696969 | underline |
| meta.preprocessor, source | #000 | |
| meta.preprocessor.string | #738D06 | — |
| meta.preprocessor.numeric | #F18A2B | — |
| meta.structure.dictionary.key.python | #0451A5 | — |
| storage | #F18A2B | — |
| string, entity.name.operator.custom-literal.string, meta.embedded.assembly | #738D06 | — |
| string.comment.buffered.block.pug, string.quoted.pug, string.interpolated.pug, string.unquoted.plain.in.yaml, string.unquoted.plain.out.yaml, string.unquoted.block.yaml, string.quoted.single.yaml, string.quoted.double.xml, string.quoted.single.xml, string.unquoted.cdata.xml, string.quoted.double.html, string.quoted.single.html, string.unquoted.html, string.quoted.single.handlebars, string.quoted.double.handlebars | #738D06 | — |
| string.regexp | #738D06 | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded | — | — |
| meta.template.expression | #000000 | — |
| support.constant.property-value, support.constant.font-name, support.constant.media-type, support.constant.media, constant.other.color.rgb-value, constant.other.rgb-value, support.constant.color | #F18A2B | — |
| support.type.vendored.property-name, support.type.property-name, variable.css, variable.scss, variable.other.less, source.coffee.embedded | #A31515 | — |
| support.type.property-name.json, meta.property-name | #0451A5 | bold |
| keyword | #8757A5 | bold |
| keyword.control | #8757A5 | bold |
| keyword.operator | #8757A5 | bold |
| keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof, keyword.operator.alignof, keyword.operator.typeid, keyword.operator.alignas, keyword.operator.instanceof, keyword.operator.logical.python, keyword.operator.wordlike | #8757A5 | bold |
| punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php | #A31515 | — |
| support.function.git-rebase | #0451A5 | — |
| constant.sha.git-rebase | #098658 | — |
| storage.modifier.import.java, variable.language.wildcard.java, storage.modifier.package.java | #000000 | — |
| variable.language | #F18A2B | — |
| storage.type | #8757A5 | bold |
| storage.modifier | #8757A5 | bold |
| keyword | #8757A5 | bold |
| keyword.control | #8757A5 | bold |
| entity.other.attribute-name | #F18A2B | — |
| entity.name.type | #4370B0 | bold |
| entity.other.inherited-class | #4370B0 | bold |
| entity.name.function | #4370B0 | bold |
| entity.name.function.decorator | #F18A2B | |
| meta.function-call | #4370B0 | bold |
| meta.function-call.arguments | #4E4E4E | |
| punctuation.definition.arguments | #4E4E4E | |
| variable.parameter | #F18A2B | — |
| constant.numeric | #F18A2B | — |
| constant.language | #8757A5 | bold |
| keyword.other.unit | #F18A2B | |
| string | #738D06 | — |
| support.type | #F18A2B | |
| comment | #8E908B | — |
| punctuation.definition.decorator | #F18A2B | |
| keyword.operator.logical.python | #8757A5 | bold |
| support.type.property-name | #4370B0 | bold |
| token.info-token | #316BCD | — |
| token.warn-token | #CD9731 | — |
| token.error-token | #CD3131 | — |
| token.debug-token | #800080 | — |
| support.function | #4370B0 | bold |
| string.other.link | #006AB1 | — |
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}!`;
}