Solarized Dark++
Publisher: Ammon CaseyThemes in package: 1
Solarized Dark++ theme
Solarized Dark++ 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 | — |
| comment | #586E75 | |
| string | #2AA198 | — |
| string | #586E75 | — |
| string.regexp | #D30102 | — |
| constant.numeric | #D33682 | — |
| variable.language, variable.other | #268BD2 | — |
| keyword | #859900 | — |
| storage | #738A05 | |
| entity.name.class, entity.name.type.class | #268BD2 | — |
| entity.name.function | #268BD2 | — |
| punctuation.definition.variable | #859900 | — |
| punctuation.section.embedded.begin, punctuation.section.embedded.end | #D30102 | — |
| constant.language, meta.preprocessor | #B58900 | — |
| support.function.construct, keyword.other.new | #D30102 | — |
| constant.character, constant.other | #CB4B16 | — |
| entity.other.inherited-class | — | — |
| variable.parameter | — | — |
| entity.name.tag | #268BD2 | bold |
| punctuation.definition.tag.html, punctuation.definition.tag.begin, punctuation.definition.tag.end | #586E75 | — |
| entity.other.attribute-name | #93A1A1 | — |
| support.function | #268BD2 | — |
| punctuation.separator.continuation | #D30102 | — |
| support.constant | — | — |
| support.type, support.class | #859900 | — |
| support.type.exception | #CB4B16 | — |
| keyword.other.special-method | #CB4B16 | — |
| support.other.variable | — | — |
| invalid | — | — |
| string.quoted.double, string.quoted.single | #269186 | — |
| punctuation.definition.string.begin, punctuation.definition.string.end | #C60000 | — |
| entity.name.tag.css, support.type.property-name.css, meta.property-name.css | #A57800 | |
| source.css | #D01F1E | — |
| meta.selector.css | #536871 | |
| punctuation.section.property-list.css | #5A74CF | — |
| meta.property-value.css constant.numeric.css, keyword.other.unit.css, constant.other.color.rgb-value.css | #269186 | |
| meta.property-value.css | #269186 | |
| keyword.other.important.css | #D01F1E | — |
| support.constant.color | #269186 | — |
| entity.name.tag.css | #738A13 | — |
| punctuation.separator.key-value.css, punctuation.terminator.rule.css | #536871 | |
| entity.other.attribute-name.class.css | #268BD2 | |
| entity.other.attribute-name.pseudo-element.css, entity.other.attribute-name.pseudo-class.css | #BD3800 | |
| entity.other.attribute-name.id.css | #268BD2 | |
| meta.function.js, entity.name.function.js, support.function.dom.js | #A57800 | — |
| text.html.basic source.js.embedded.html | #A57800 | |
| storage.type.function.js | #268BD2 | — |
| constant.numeric.js | #269186 | — |
| meta.brace.square.js | #268BD2 | — |
| storage.type.js | #268BD2 | — |
| meta.brace.round, punctuation.definition.parameters.begin.js, punctuation.definition.parameters.end.js | #93A1A1 | — |
| meta.brace.curly.js | #268BD2 | — |
| entity.name.tag.doctype.html, meta.tag.sgml.html, string.quoted.double.doctype.identifiers-and-DTDs.html | #899090 | italic |
| comment.block.html | #839496 | italic |
| entity.name.tag.script.html | — | italic |
| source.css.embedded.html string.quoted.double.html | #269186 | |
| text.html.ruby | #BD3800 | bold |
| text.html.basic meta.tag.other.html, text.html.basic meta.tag.any.html, text.html.basic meta.tag.block.any, text.html.basic meta.tag.inline.any, text.html.basic meta.tag.structure.any.html, text.html.basic source.js.embedded.html, punctuation.separator.key-value.html | #708284 | |
| text.html.basic entity.other.attribute-name.html | #708284 | — |
| text.html.basic meta.tag.structure.any.html punctuation.definition.string.begin.html, punctuation.definition.string.begin.html, punctuation.definition.string.end.html | #269186 | |
| entity.name.tag.block.any.html | #268BD2 | bold |
| source.css.embedded.html entity.name.tag.style.html | — | italic |
| entity.name.tag.style.html | — | |
| text.html.basic punctuation.section.property-list.css | — | |
| source.css.embedded.html, comment.block.html | #819090 | italic |
| punctuation.definition.variable.ruby | #268BD2 | |
| meta.function.method.with-arguments.ruby | #708284 | — |
| variable.language.ruby | #469186 | — |
| entity.name.function.ruby | #268BD2 | — |
| keyword.control.ruby, keyword.control.def.ruby | #738A05 | bold |
| keyword.control.class.ruby, meta.class.ruby | #748B00 | — |
| entity.name.type.class.ruby | #A57800 | |
| keyword.control.ruby | #748B00 | |
| support.class.ruby | #A57800 | |
| keyword.other.special-method.ruby | #748B00 | — |
| constant.language.ruby, constant.numeric.ruby | #269186 | — |
| variable.other.constant.ruby | #A57800 | |
| constant.other.symbol.ruby | #269186 | |
| punctuation.section.embedded.ruby, punctuation.definition.string.begin.ruby, punctuation.definition.string.end.ruby | #D01F1E | — |
| keyword.other.special-method.ruby | #BD3800 | — |
| keyword.control.import.include.php | #BD3800 | — |
| text.html.ruby meta.tag.inline.any.html | #819090 | |
| text.html.ruby punctuation.definition.string.begin, text.html.ruby punctuation.definition.string.end | #269186 | |
| punctuation.definition.string.begin, punctuation.definition.string.end | #839496 | — |
| support.class.php | #839496 | — |
| keyword.operator.index-start.php, keyword.operator.index-end.php | #D31E1E | — |
| meta.array.php | #536871 | — |
| meta.array.php support.function.construct.php, meta.array.empty.php support.function.construct.php | #A57800 | |
| support.function.construct.php | #A57800 | — |
| punctuation.definition.array.begin, punctuation.definition.array.end | #D31E1E | — |
| constant.numeric.php | #269186 | — |
| keyword.other.new.php | #CB4B16 | — |
| keyword.operator.class | #839496 | |
| variable.other.property.php | #899090 | — |
| storage.modifier.extends.php, storage.type.class.php, keyword.operator.class.php | #A57800 | — |
| PHP: Class Function | — | — |
| punctuation.terminator.expression.php | #839496 | — |
| meta.other.inherited-class.php | #536871 | |
| storage.type.php | #748B00 | — |
| entity.name.function.php | #899090 | — |
| support.function.construct.php | #748B00 | — |
| entity.name.type.class.php, meta.function-call.php, meta.function-call.static.php, meta.function-call.object.php | #839496 | — |
| keyword.other.phpdoc | #899090 | |
| source.php.embedded.block.html | #BD3613 | — |
| storage.type.function.php | #BD3800 | — |
| constant.numeric.c | #269186 | |
| meta.preprocessor.c.include, meta.preprocessor.macro.c | #BB3700 | |
| keyword.control.import.define.c, keyword.control.import.include.c | #BB3700 | |
| entity.name.function.preprocessor.c | #BB3700 | |
| meta.preprocessor.c.include string.quoted.other.lt-gt.include.c, meta.preprocessor.c.include punctuation.definition.string.begin.c, meta.preprocessor.c.include punctuation.definition.string.end.c | #269186 | |
| support.function.C99.c, support.function.any-method.c, entity.name.function.c | #536871 | |
| punctuation.definition.string.begin.c, punctuation.definition.string.end.c | #269186 | |
| storage.type.c | #A57800 | |
| meta.diff, meta.diff.header | #E0EDDD | italic |
| markup.deleted | #D3201F | |
| markup.changed | #BF3904 | |
| markup.inserted | #219186 | — |
| text.html.markdown meta.dummy.line-break | #E0EDDD | — |
| text.html.markdown markup.raw.inline | #269186 | — |
| text.restructuredtext markup.raw | #269186 | — |
| other.package.exclude, other.remove | #D3201F | |
| other.add | #269186 | — |
| punctuation.section.group.tex, punctuation.definition.arguments.begin.latex, punctuation.definition.arguments.end.latex, punctuation.definition.arguments.latex | #B81D1C | |
| meta.group.braces.tex | #A57705 | |
| string.other.math.tex | #A57705 | |
| variable.parameter.function.latex | #BD3800 | |
| punctuation.definition.constant.math.tex | #D01F1E | |
| text.tex.latex constant.other.math.tex, constant.other.general.math.tex, constant.other.general.math.tex, constant.character.math.tex | #269186 | |
| string.other.math.tex | #A57800 | |
| punctuation.definition.string.begin.tex, punctuation.definition.string.end.tex | #D3201F | |
| keyword.control.label.latex, text.tex.latex constant.other.general.math.tex | #269186 | |
| variable.parameter.definition.label.latex | #D01F1E | |
| support.function.be.latex | #748B00 | |
| support.function.section.latex | #BD3800 | |
| support.function.general.tex | #269186 | |
| punctuation.definition.comment.tex, comment.line.percentage.tex | — | italic |
| keyword.control.ref.latex | #269186 | |
| storage.type.class.python, storage.type.function.python, storage.modifier.global.python | #748B00 | |
| keyword.control.import.python, keyword.control.import.from.python | #BD3800 | — |
| support.type.exception.python | #A57800 | — |
| support.function.builtin.shell | #748B00 | — |
| variable.other.normal.shell | #BD3800 | — |
| source.shell | #268BD2 | |
| meta.scope.for-in-loop.shell, variable.other.loop.shell | #536871 | |
| punctuation.definition.string.end.shell, punctuation.definition.string.begin.shell | #748B00 | |
| meta.scope.case-block.shell, meta.scope.case-body.shell | #536871 | |
| punctuation.definition.logical-expression.shell | #CD1E1D | |
| comment.line.number-sign.shell | — | italic |
| keyword.other.import.java | #BD3800 | |
| storage.modifier.import.java | #586E75 | |
| meta.class.java storage.modifier.java | #A57800 | |
| source.java comment.block | #536871 | |
| comment.block meta.documentation.tag.param.javadoc keyword.other.documentation.param.javadoc | #536871 | |
| punctuation.definition.variable.perl, variable.other.readwrite.global.perl, variable.other.predefined.perl, keyword.operator.comparison.perl | #B58900 | — |
| support.function.perl | #859900 | — |
| comment.line.number-sign.perl | #586E75 | italic |
| punctuation.definition.string.begin.perl, punctuation.definition.string.end.perl | #2AA198 | — |
| constant.character.escape.perl | #DC322F | — |
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}!`;
}