Something Theme
Publisher: MonadicaThemes in package: 1
Something is not nothing, it's a dark theme with beautiful and simple elements.
Something is not nothing, it's a dark theme with beautiful and simple elements.
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 |
|---|---|---|
| variable, meta.definition.variable.name, support.variable, entity.name.variable | #ffffff | — |
| comment, punctuation.definition.comment | #5A826B | italic |
| comment.block.documentation | #B5C3C4 | — |
| storage.type.class.jsdoc, variable.other.jsdoc, punctuation.definition.tag, keyword.other.phpdoc | #82AAFF | |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end | #00D0E6 | — |
| string, punctuation.definition.string | #52D98F | — |
| invalid, invalid.illegal, invalid.deprecated | #C99492 | — |
| comment.keyword, comment.keyword.todo, keyword.other.todo, meta.todo | #FF8DD9 | bold |
| keyword, keyword.control, storage.type, storage.modifier, keyword.operator.new, keyword.operator.expression, keyword.operator.logical | #B07CC3 | — |
| keyword.control.directive, entity.name.function.preprocessor | #B07CC3 | — |
| keyword.operator, punctuation, meta.brace, punctuation.terminator, punctuation.separator | #00D0E6 | — |
| punctuation.section.embedded.begin, punctuation.section.embedded.end | #00D0E6 | — |
| punctuation.accessor | #ffffff | — |
| entity.name.function, support.function, meta.function-call.generic, entity.name.method, entity.name.function.member | #82AAFF | — |
| variable.parameter, meta.function-call.arguments | #C99492 | italic |
| entity.name.type, entity.name.class, entity.name.struct, entity.name.enum, support.type, support.class, storage.type.cs, storage.type.java | #FFDD29 | — |
| entity.name.namespace, entity.name.package, entity.name.module, entity.name.scope-resolution | #FFDD29 | — |
| entity.other.inherited-class | #FFDD29 | italic |
| entity.name.tag, punctuation.definition.tag.begin, punctuation.definition.tag.end | #FFDD29 | — |
| entity.name.function.test, support.function.test, keyword.control.test | #52D98F | — |
| constant.numeric, constant.language, constant.character.numeric, support.constant, variable.other.constant.clojure | #D9B38C | — |
| constant.character.escape, string.regexp | #00D0E6 | — |
| support.type.property-name, entity.other.attribute-name, meta.object-literal.key, support.variable.property, variable.other.property, variable.other.object.property | #C99492 | — |
| meta.decorator, entity.name.decorator, storage.type.annotation, punctuation.definition.annotation, punctuation.definition.entity.css, keyword.control.directive | #FF8DD9 | — |
| variable.other.special.shell | #D9B38C | — |
| constant.character.format.placeholder.other.python | #00D0E6 | — |
| constant.keyword.clojure | #D9B38C | — |
| symbol.clojure, support.function.clojure, meta.symbol.clojure, variable.function.clojure, entity.name.function.clojure, support.function.special.clojure, entity.name.function.macro.clojure | #82AAFF | — |
| entity.global.clojure, entity.name.namespace.clojure, support.namespace.clojure, meta.namespace.clojure | #FFDD29 | — |
| storage.control.clojure, support.function.special.clojure, keyword.control.clojure, keyword.other.special-method.clojure, meta.special.clojure, meta.special-form.clojure, meta.form.clojure, entity.name.function.macro.clojure, support.function.macro.clojure, meta.macro.clojure | #FF8DD9 | — |
| entity.name.variable.clojure, variable.parameter.clojure, meta.binding.name.clojure | #C99492 | italic |
| meta.metadata.simple.clojure, meta.metadata.clojure, storage.modifier.metadata.clojure | #FF8DD9 | italic |
| storage.type.go | #FFDD29 | — |
| support.macro.rust | #FF8DD9 | — |
| entity.name.lifetime.rust, storage.modifier.lifetime.rust | #D9B38C | italic |
| support.type.property-name.css | #82AAFF | — |
| support.constant.property-value.css | #FFD700 | — |
| entity.name.tag.css, entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #FFDD29 | — |
| keyword.other.unit | #D9B38C | — |
| punctuation.terminator.rule.css, punctuation.separator.key-value.css | #00D0E6 | — |
| entity.name.tag.html | #FFDD29 | — |
| entity.other.attribute-name.html | #C99492 | — |
| string.quoted.double.html, string.quoted.single.html | #52D98F | — |
| comment.block.html | #5A826B | italic |
| source.js.embedded, meta.embedded.block.js | #FF8DD9 | — |
| source.css.styled | #FFD700 | — |
| entity.name.type.graphql | #FFDD29 | — |
| meta.field.graphql | #82AAFF | — |
| variable.parameter.graphql | #C99492 | italic |
| string.quoted.double.graphql | #52D98F | — |
| support.function.special.clojure, keyword.control.clojure, keyword.other.special-method.clojure, meta.special.clojure, meta.special-form.clojure, meta.form.clojure | #FF8DD9 | — |
| entity.name.function.macro.clojure, support.function.macro.clojure, meta.macro.clojure | #B07CC3 | — |
| variable.function.clojure, meta.symbol.clojure, symbol.clojure, support.function.clojure, entity.name.function.clojure | #82AAFF | — |
| constant.keyword.clojure, constant.other.keyword.clojure | #D9B38C | — |
| entity.name.namespace.clojure, support.namespace.clojure | #FFDD29 | — |
| meta.metadata.clojure, storage.modifier.metadata.clojure | #FF8DD9 | — |
| constant.language.reader.clojure | #B07CC3 | — |
| meta.symbol.clojure, symbol.clojure | #82AAFF | — |
| string.quoted.double.clojure, string.quoted.single.clojure | #52D98F | — |
| constant.numeric.clojure | #D9B38C | — |
| constant.language.boolean.clojure, constant.language.nil.clojure | #FFD700 | — |
| variable.other.global.clojure | #FFB86B | — |
| variable.other.local.clojure | #FFFFFF | — |
| constant.character.clojure | #52D98F | — |
| string.regexp.clojure | #00D0E6 | — |
| punctuation.section.list.begin.clojure, punctuation.section.list.end.clojure, punctuation.section.vector.begin.clojure, punctuation.section.vector.end.clojure, punctuation.section.map.begin.clojure, punctuation.section.map.end.clojure, punctuation.section.set.begin.clojure, punctuation.section.set.end.clojure | #8B94B8 | — |
| comment.line.semicolon.clojure | #5A826B | italic |
| storage.type.zig, entity.name.type.zig | #FFDD29 | — |
| entity.name.function.zig | #82AAFF | — |
| entity.other.attribute-name.alpine | #FF8DD9 | — |
| support.type.flowtype | #FFDD29 | — |
| storage.type.c, storage.type.cpp, entity.name.type.class.cpp | #FFDD29 | — |
| entity.name.function.cpp, entity.name.function.c | #82AAFF | — |
| entity.name.function.preprocessor, keyword.control.directive | #B07CC3 | — |
| comment.keyword.todo, comment.keyword.fixme | #FFD700 | bold |
| comment.keyword.question | #82AAFF | italic |
| comment.keyword.alert | #FF8DD9 | bold |
| markup.coverage.covered | #52D98F | — |
| markup.coverage.uncovered | #C99492 | — |
| markup.heading.markdown | #FFDD29 | bold |
| markup.underline.link.markdown | #82AAFF | underline |
| keyword.other.dockerfile | #B07CC3 | — |
| support.type.property-name.env | #FFDD29 | — |
| string.unquoted.env | #52D98F | — |
| keyword.other.documentation.doxygen | #B07CC3 | — |
| support.type.property-name.editorconfig | #FFDD29 | — |
| markup.error | #FF8DD9 | bold |
| markup.warning | #FFD700 | bold |
| meta.eslint-rule | #B07CC3 | — |
| entity.name.function.go | #82AAFF | — |
| invalid.illegal.gremlin | #FF8DD9 | underline |
| meta.tag.match | #FFDD29 | — |
| meta.indent.rainbow | #B07CC3 | — |
| meta.intellicode.suggestion | #8B94B8 | italic |
| entity.name.function.jest | #FF8DD9 | — |
| support.type.property-name.json | #FFDD29 | — |
| meta.magic.jupyter | #B07CC3 | — |
| support.type.property-name.yaml.kubernetes | #FFDD29 | — |
| entity.name.type.class.java | #FFDD29 | — |
| meta.annotation.lombok | #FF8DD9 | — |
| support.module.node | #82AAFF | — |
| markup.info.output | #52D98F | — |
| markup.warning.output | #FFD700 | — |
| markup.error.output | #FF8DD9 | — |
| support.path | #82AAFF | — |
| meta.portal.data | #FFDD29 | — |
| meta.kernel.pycuda | #B07CC3 | — |
| meta.lint.ruff | #FF8DD9 | — |
| entity.name.type.class.ruby | #FFDD29 | — |
| support.macro.rust | #FF8DD9 | — |
| variable.other.shell | #FFDD29 | — |
| entity.name.tag.svelte | #FFDD29 | — |
| entity.other.attribute-name.svelte | #C99492 | — |
| meta.symbol.icon | #FF8DD9 | — |
| entity.class.tailwind | #52D98F | — |
| keyword.other.todo | #FFD700 | bold |
| entity.name.tag.xml | #FFDD29 | — |
| entity.other.attribute-name.xml | #C99492 | — |
| entity.name.tag.yaml | #FFDD29 | — |
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}!`;
}