Solarized Flat Theme
Publisher: EllingThemes in package: 2
A flat version of the Solarized color theme for VS Code.
A flat version of the Solarized color theme for VS Code.
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 |
|---|---|---|
| markup.italic | — | italic |
| markup.underline | — | underline |
| markup.italic | #859900 | italic |
| storage.modifier, keyword.control, constant.numeric, constant.character, constant.other, constant.other.symbol, storage.type.class.python, storage.type.function.python, meta.method.return-type.java, storage.modifier.java, keyword.other.fn.rust, keyword.other.crate.rust, keyword.operator.borrow.and.rust, storage.type.namespace.cs, storage.type.class.cs, keyword.other.typedef.c, meta.enum.definition.cpp, storage.type.template.cpp, storage.type.class.cpp, storage.type.modifier.access, storage.type.enum.enum-key.class.cpp, keyword.other.using.directive.cpp, keyword.declaration.dart, keyword.type.go, keyword.interface.go, keyword.struct.go, keyword.function.go, keyword.local.lua, variable.other.constant.ruby, punctuation.definition.string.heredoc.delimiter.shell | #B58900 | — |
| entity.name.tag, constant.language, support.constant, variable.language, keyword.operator, keyword.type, storage.type, support.type, entity.name.tag.html, entity.name.tag.style, entity.name.tag.script, keyword.control.import.python, keyword.control.from.python, support.function.magic.python, support.variable.magic.python, variable.parameter.function.language.special.self.python, storage.type.java, keyword.other.package.java, keyword.other.import.java, storage.type.local.java, storage.type.primitive.java, storage.type.object.array.java, storage.type.function.arrow.ts, keyword.other.directive.using.cs, entity.name.type.rust, keyword.other.rust, keyword.control.rust, entity.name.type.cs, keyword.control.directive.include.c, keyword.control.directive.include.cpp, entity.name.type.cpp, entity.name.type.template.cpp, support.function.construct.php, keyword.other.namespace.php, support.function.constructor.php, support.class.dart, keyword.other.import.dart, entity.name.type.go, keyword.package.go, keyword.control.import.go, support.function.lua, support.function.library.lua, keyword.other.special-method.ruby, support.function.kernel.ruby, entity.name.function.macro.rules.rust, entity.name.type.numeric.rust, entity.name.type.primitive.rust, entity.name.type.result.rust, keyword.other.sql, keyword.other.alias.sql, keyword.other.LUW.sql, keyword.other.DML.II.sql, keyword.other.DDL.create.II.sql, entity.name.type.ts, punctuation.definition.list.begin.markdown, markup.inline.raw, support.function.builtin.shell | #859900 | — |
| entity.name.type.class, entity.name.type.interface, entity.other.inherited-class, meta.enum, meta.definition.function, entity.name.function.python, meta.method.identifier.java, entity.name.type.record.java, keyword.control.new.java, entity.name.tag.template.html.vue, meta.function.definition.rust, entity.name.type.struct.rust, entity.name.type.enum.rust, entity.name.function.macro.rust, entity.name.type.trait.rust, meta.function.definition.parameters.c, entity.name.type.class.cpp, entity.name.function.definition.cpp, entity.name.type.struct.cpp, entity.name.function.definition.special.constructor.cpp, entity.name.type.enum.cpp, meta.function.php, support.function.construct.output.php, entity.name.type.enum.cs, entity.name.function.go, meta.definition.method.js, entity.name.function.lua, meta.function.method.with-arguments.ruby, keyword.other.create.sql, entity.name.type.alias.ts | #D33682 | — |
| markup.heading | #D33682 | bold |
| string.regexp, meta.function-call, meta.method-call, entity.other.attribute-name.html, meta.method-call.java, punctuation.definition.annotation.java, storage.type.annotation.java, entity.name.type.annotation.java, variable.annotation.java, meta.function.call.rust, source.ts.embedded.html.vue, entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, entity.name.tag.css, entity.name.function.cs, entity.other.attribute-name.localname.xml, entity.name.function.call.cpp, entity.name.function.dart, entity.name.function.support.go, entity.name.function.support.builtin.go, support.function.any-method.lua, punctuation.definition.decorator.python, meta.function.decorator.python, entity.name.function.call.shell, entity.name.function.shell, meta.link | #268BD2 | — |
| variable.parameter, support.variable, variable.object.property, variable.other.property, variable.other.object.property, entity.name.type.namespace, meta.attribute.python, storage.modifier.package.java, variable.parameter.java, meta.object-literal.key.ts, support.type.property-name.css, entity.name.namespace.rust, entity.name.variable.parameter.cs, meta.function.parameters.php, entity.name.namespace.cpp, entity.name.scope-resolution.cpp, entity.name.variable.property.cs, entity.name.type.package.go, entity.name.type.module.ruby, keyword.other.DML.sql, entity.name.type.module.ts, meta.image.inline.markdown, fenced_code.block.language, markup.quote | #6C71C4 | — |
| storage.type.generic.java | #CB4B16 | — |
| string.quoted.single, string.quoted.double, string.quoted.multi.python, string.interpolated.single.dart, meta.separator.markdown, string.template.js, string.template.ts | #2AA198 | — |
| markup.bold | #2AA198 | bold |
| markup.traceback, markup.error | #DC322F | — |
| comment, punctuation.separator, punctuation.accessor, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.terminator.rule, punctuation.definition.comment, string.quoted.docstring.multi.python, constant.character.escape, punctuation.terminator.java, punctuation.section.function.begin.python, punctuation.terminator.statement.cs, punctuation.semi.rust, punctuation.definition.attribute.rust, punctuation.comma.rust, keyword.operator.key-value.rust, punctuation.brackets.angle.rust, keyword.operator.namespace.rust, keyword.operator.arrow.skinny.rust, keyword.operator.access.dot.rust, punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php, markup.underline.link, punctuation.definition.metadata.markdown, punctuation.definition.markdown, punctuation.definition.strikethrough.markdown, markup.strikethrough.markdown | #586E75 | — |
| storage.modifier.import.java, meta.preprocessor.include.c, string.quoted.double.include.c, string.quoted.double.include.cpp, variable.other.rust, string.unquoted.argument.shell | #839496 | — |
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}!`;
}