N3osolarized Theme
Publisher: chillbroccoliThemes in package: 1
N3osolarized theme
N3osolarized theme
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 |
|---|---|---|
| — | #839496 | — |
| meta.embedded, source.groovy.embedded, string meta.image.inline.markdown | #839496 | — |
| comment, string.quoted.docstring | #586E75 | italic |
| string | #2AA198 | — |
| string.regexp | #DC322F | — |
| constant.numeric | #D33682 | — |
| variable.language, variable.other | #268BD2 | — |
| keyword | #859900 | — |
| storage | #859900 | |
| entity.name.class, entity.name.type, entity.name.namespace, entity.name.scope-resolution | #CB4B16 | |
| entity.name.function | #268BD2 | — |
| punctuation.definition.variable | #859900 | — |
| punctuation.section.embedded.begin, punctuation.section.embedded.end | #DC322F | — |
| constant.language, meta.preprocessor | #B58900 | — |
| support.function.construct, keyword.other.new | #CB4B16 | — |
| constant.character, constant.other | #CB4B16 | — |
| entity.other.inherited-class | #6C71C4 | — |
| variable.parameter | — | — |
| entity.name.tag | #859900 | — |
| punctuation.definition.tag | #DC322F | — |
| entity.other.attribute-name | #93A1A1 | — |
| support.function | #268BD2 | — |
| punctuation.separator.continuation | #DC322F | — |
| support.constant, support.variable | — | — |
| support.type, support.class | #859900 | — |
| support.type.exception | #CB4B16 | — |
| support.other.variable | — | — |
| invalid | #DC322F | — |
| meta.diff, meta.diff.header | #268BD2 | italic |
| markup.deleted | #DC322F | |
| markup.changed | #CB4B16 | |
| markup.inserted | #859900 | — |
| markup.quote | #859900 | — |
| markup.list | #B58900 | — |
| markup., markup.italic | #D33682 | — |
| markup. | — | |
| markup.italic | — | italic |
| markup.strikethrough | — | strikethrough |
| markup.inline.raw | #2AA198 | |
| markup.heading | #268BD2 | |
| markup.heading.setext | #268BD2 | |
| storage.modifier, punctuation.definition.entity.css, punctuation.accessor.optional, fenced_code.block.language.markdown, support.type.property-name.json | #859900 | |
| keyword.control.from, keyword.control.import, support.type.object.module | #DC322F | |
| entity.other.attribute-name, support.type.property-name.css, meta.property-name.css, support.type.vendored.property-name, meta.at-rule.media.header, entity.other.keyframe-offset, support.constant.constant.prisma, meta.selections, keyword.control.conditional.vue, keyword.control.loop.vue | #268BD2 | |
| support.class.component, meta.parameters, punctuation.definition.block, punctuation.section.embedded, punctuation.section.embedded.begin, punctuation.section.embedded.end, punctuation.definition.parameters.begin, punctuation.definition.parameters.end, meta.brace.round, meta.brace.square, punctuation.definition.binding-pattern.array, punctuation.definition.binding-pattern.object, meta.object-binding-pattern-variable, punctuation.definition.typeparameters.begin, punctuation.definition.typeparameters.end, punctuation.definition.dictionary.begin.json, punctuation.definition.dictionary.end.json, punctuation.definition.array.begin.json, punctuation.definition.array.end.json, punctuation.section.property-list.begin.bracket.curly, punctuation.section.property-list.end.bracket.curly, punctuation.section.keyframes.begin.bracket.curly, punctuation.section.keyframes.end.bracket.curly, punctuation.definition.interpolation.begin.html, punctuation.definition.interpolation.end.html, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, meta.brace.angle, entity.name.section.markdown, punctuation.definition.heading.markdown, punctuation.definition.link.title.begin.markdown, punctuation.definition.link.title.end.markdown, punctuation.definition.metadata.markdown, punctuation.section.function.begin.bracket.round.css, punctuation.section.function.end.bracket.round.css, punctuation.definition.entity.begin.bracket.square.css, punctuation.definition.entity.end.bracket.square.css, source.prisma.array, punctuation.definition.tag.prisma, support.class.error, keyword.operator.list_type.prisma, variable.language.this, meta.brace.curly.graphql, source.prisma.embedded.source | #CB4B17 | |
| support.type.primitive, meta.type.annotation, meta.interface, entity.name.type, entity.name.tag.css, support.type.primitive, meta.type.annotation, entity.name.type.interface, variable.argument.css, variable.css, support.class.builtin, meta.special.start, meta.special.end, meta.special.const.svelte, support.type, meta.return.type, meta.arguments, meta.fragment | #B58901 | |
| variable.other.constant, meta.definition.variable, meta.var-single-variable.expr, meta.var.expr, variable.other.object, meta.embedded.expression, variable.other.readwrite | #839496 | |
| constant.numeric, constant.numeric.decimal, constant.language.boolean, meta.property-value.css, keyword.other.unit, constant.language | #2AA198 | |
| markup.underline.link.markdown | #6C71C4 |
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}!`;
}