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.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.type.property-name.css, string.quoted.other.lt-gt.include.c, entity.name.scope-resolution.cpp, entity.name.scope-resolution.parameter.cpp, entity.name.scope-resolution.namespace.using.cpp, entity.name.scope-resolution.template.definition.cpp, string.quoted.other.lt-gt.include.cpp, 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, variable.legacy.builtin.python, support.class.php, constant.other.table-name.sql, constant.other.database-name.sql, 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, punctuation.definition.string.begin.cpp, punctuation.definition.string.end.cpp | #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, constant.language.null.go, constant.language.null.js, constant.language.undefined.js | #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, string.other.math.tex, support, support.function, support.type, support.class, support.function.be.latex, entity.name.command.shell, punctuation.definition.variable, constant.other.placeholder.c, storage.modifier.c++, 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.control.go, keyword.control.import.go, keyword.package.go, keyword.function.go, keyword.interface.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, keyword.other.sql, keyword.other.DML.sql, source.ini, support.type.property-name.array.toml, meta.array.table.toml | #859900 | — |
| variable.function, entity.name.class, entity.name.type, 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.encoding, meta.preprocessor, meta.group.braces.tex, meta.tag.xml entity.other.attribute-name, text.html.basic entity.other.attribute-name.html, support.constant.color, support.function.be.latex, punctuation.definition.heading.markdown, invalid.deprecated.color.w3c-non-standard-color-name.scss, keyword.other.typedef.c, keyword.control.directive.define.c, keyword.control.directive.include.c, support.type.posix-reserved.c, meta.preprocessor.macro.c, meta.encoding.cpp, entity.name.namespace.cpp, keyword.control.directive.include.cpp, keyword.control.directive.define.cpp, entity.name.type.zig, support.function.builtin.zig, 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, keyword.other.type.php, support.function.magic.php, meta.array support.function.construct.php, support.type.exception.python, support.variable.magic.python, support.function.magic.python, support.function.builtin.python, keyword.other.create.sql | #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}!`;
}