Solarized Pro
Publisher: noble-gaseThemes in package: 1
A dark solarized theme for VSCode.
A dark solarized theme for VSCode.
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 | — |
| variable, variable.parameter, variable.legacy.builtin.python, variable.other, variable.other.property, entity.name.namespace, entity.other.attribute-name, meta.embedded, markup.list, source.groovy.embedded, string meta.image.inline.markdown, punctuation.definition.string, support.class.php, support.type.property-name.css, variable.other.readwrite.js, variable.other.object.js, variable.other.constant.js, keyword.operator.key-value.rust, keyword.operator.access.dot.rust, keyword.operator.namespace.rust, keyword.other.definition.ini, source.toml, support.type.property-name.toml | #839496 | — |
| comment, comment keyword, comment markup.underline.link, comment string, comment punctuation.definition, comment punctuation, comment text, constant.numeric.line-number.find-in-files, markup.quote, meta.documentation, meta.diff, meta.diff.header, punctuation.definition.tag | #586e75 | — |
| string, string.regexp, string.quoted.double, string.quoted.single, keyword.control.label.latex, keyword.control.ref.latex, entity.name.filename.find-in-files, markup.changed, markup.inline.raw, punctuation.section.embedded.begin, punctuation.section.embedded.end, text.tex.latex constant.other.math.tex, text.tex.latex constant.other.general.math.tex, constant.other.general.math.tex, constant.other.general.math.tex, constant.character.math.tex, support.function.general.tex, constant.other.color.rgb-value.hex.css, support.constant.color.w3c-standard-color-name.css, markup.underline.link.markdown, meta.link.reference constant.other.reference.link.markdown, entity.name.type.lifetime.rust, punctuation.definition.lifetime.rust, string.quoted.other.lt-gt.include.c, meta.preprocessor.c.include, punctuation.definition.string.begin.c, punctuation.definition.string.end.c | #2aa198 | — |
| constant.numeric, constant.character, constant.language, constant.other, entity.other.inherited-class, constant.other.reference.link.markdown, punctuation.definition.list.begin.markdown, keyword.constant.bool.zig, keyword.constant.default.zig | #6c71c4 | — |
| keyword, keyword.control, keyword.other.protobuf, variable.language, entity.name.tag.css, entity.name.tag.scss, markup.bold, markup.italic, source.less keyword.control.html.elements, source.sass keyword.control.untitled, meta.shebang.shell, punctuation.definition.comment.shebang.shell | #d33682 | — |
| entity.name.tag, entity.name.function, entity.name.section, entity.other.attribute-name.pseudo-element, entity.other.attribute-name.tag.pseudo-element, entity.other.attribute-name.pseudo-class, entity.other.attribute-name.tag.pseudo-class, meta.brace.square, meta.diff.range, markup.heading, markup.heading.setext, support.function.perl, punctuation.section.brackets, entity.name.section.group-title.ini, support.type.property-name.table.toml, meta.table.toml | #268bd2 | — |
| keyword.operator, keyword.control.import, keyword.control.import.from, keyword.other.unit, keyword.other.special-method, markup.inserted, markup.inserted.git_gutter, storage, storage.type, storage.modifier, storage.modifier.c++, string.other.math.tex, support, support.function, support.type, support.class, support.function.be.latex, entity.name.command.shell, punctuation.definition.variable, keyword.control.from.js, keyword.control.export.js, keyword.control.default.js, storage.type.class.python, storage.type.function.python, storage.modifier.global.python, markup.underline.link.markdown, markup.underline.link.image.markdown, punctuation.definition.quote.begin.markdown, keyword.go.mod, keyword.map.go, keyword.var.go, keyword.type.go, keyword.const.go, keyword.struct.go, keyword.channel.go, keyword.package.go, keyword.function.go, keyword.interface.go, keyword.control.import.go, entity.name.type.any.go, constant.other.placeholder.go, keyword.other.rust, meta.attribute.rust, meta.macro.rust, meta.interpolation.rust, support.type.primitive.rust, entity.name.type.option.rust, entity.name.type.result.rust, entity.name.type.primitive.rust, entity.name.function.macro.rust, entity.name.function.macro.rules.rust, entity.name.type.protobuf, keyword.other.directive.protobuf, keyword.storage.zig, keyword.structure.zig, keyword.statement.zig, keyword.default.zig, keyword.type.zig, keyword.type.integer.zig, source.ini, support.type.property-name.array.toml, meta.array.table.toml | #859900 | — |
| variable.function, entity.name.class, entity.name.type, entity.name.type.zig, entity.name.scope-resolution, entity.other.attribute-name.id, entity.other.attribute-name.class, string.other.math.tex, markup.heading, markup.changed.git_gutter, meta.preprocessor, meta.group.braces.tex, meta.tag.xml entity.other.attribute-name, meta.array support.function.construct.php, text.html.basic entity.other.attribute-name.html, support.constant.color, support.function.be.latex, support.function.magic.php, support.function.builtin.zig, punctuation.definition.heading.markdown, invalid.deprecated.color.w3c-non-standard-color-name.scss, keyword.control.directive.define.c, keyword.control.directive.include.c, support.type.posix-reserved.c, meta.preprocessor.macro.c, keyword.operator.new.js, keyword.operator.delete.js, keyword.operator.void.js, keyword.operator.in.js, keyword.operator.of.js, keyword.operator.instanceof.js, keyword.operator.expression.typeof.js, keyword.operator.expression.void.js, keyword.operator.expression.delete.js, keyword.operator.relational.js, support.type.exception.python, support.variable.magic.python, support.function.magic.python, support.function.builtin.python | #b58900 | — |
| #cb4b16 | — | |
| entity.other.attribute-name, meta.scope.for-in-loop.shell, meta.scope.case-block.shell, meta.scope.case-body.shell, variable.other.loop.shell | #93a1a1 | — |
| meta.brace.round, meta.brace.curly, punctuation.section, punctuation.section.block, punctuation.definition.parameters, punctuation.section.group, meta.selector.css, text.html.basic meta.tag.block.any, text.html.basic meta.tag.inline.any, text.html.basic meta.tag.other.html, text.html.basic meta.tag.any.html, text.html.basic meta.tag.structure.any.html, text.html.basic source.js.embedded.html, punctuation.separator.key-value.html | #657b83 | — |
| invalid, other.package.exclude, other.remove, markup.deleted, markup.deleted.git_gutter, punctuation.separator.continuation, punctuation.section.group.tex, punctuation.definition.arguments.begin.latex, punctuation.definition.arguments.end.latex, punctuation.definition.arguments.latex, punctuation.definition.constant.math.tex, punctuation.definition.string.begin.tex, punctuation.definition.string.end.tex, punctuation.definition.logical-expression.shell, variable.parameter.definition.label.latex | #dc322f | — |
| markup.bold, markup.heading, markup.heading.setext | — | bold |
| markup.italic | — | italic |
| markup.strikethrough | — | strikethrough |
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}!`;
}