squared Theme
Publisher: squaredThemes in package: 2
VSCode color themes for squared.
VSCode color themes for squared.
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 |
|---|---|---|
| comment | #88846F | — |
| string, storage.identifier, entity.name.module | #E6DB74 | — |
| keyword, storage, storage.type.class, variable.language.arguments, entity.name.tag, keyword.control.directive.include, punctuation.definition.function.return-type | #F92672 | — |
| variable, variable.other, variable.other.readwrite, variable.other.object, variable.other.property, variable.other.enummember, variable.other.object.access, string.other.link.description, support.variable, storage.type.annotation, punctuation.accessor, punctuation.separator.dot-access, punctuation.definition.annotation-arguments.begin, punctuation.definition.annotation-arguments.end, keyword.operator.bitwise.shift, keyword.operator.type.annotation, keyword.operator.spread, keyword.operator.rest, entity.name.namespace, entity.name.type.module, entity.name.type.namespace, entity.name.function.preprocessor | #D8D8D8 | — |
| variable.language, variable.language.super, keyword.other.package, keyword.other.namespace, keyword.other.class, keyword.control.directive.conditional, constant.other.color, constant.character.escape, support.type, storage.type.type, storage.type.interface, storage.type.property, storage.type.enum, storage.type.namespace, storage.type.function, support.constant, support.other.variable, entity.name.tag.class, entity.name.tag.id, string.other.link.title, punctuation.section.angle-brackets | #77C8E4 | — |
| support.function, support.type.exception, keyword.other.typedef, keyword.operator.cast, keyword.control.require, entity.name.type.module, entity.name.type.enum, entity.name.type.interface, entity.name.type.class, entity.name.type.alias, entity.name.function, entity.name.function.invocation, entity.other.inherited-class, entity.other.attribute-name, punctuation.separator.pointer-access | #91D921 | — |
| support.class, support.class.builtin, keyword.control.directive, constant.numeric.preprocessor, entity.name.class, entity.name.type, entity.name.type.namespace.declaration, entity.name.scope-resolution, entity.name.variable.parameter, entity.name.function.decorator | #56BF4B | — |
| constant.language, constant.numeric, keyword.other.unit, keyword.control.as, keyword.operator.expression.is, keyword.operator.expression.delete, keyword.operator.expression.void, storage.modifier.async, punctuation.definition.template-expression, punctuation.section.embedded | #CB95FD | — |
| variable.parameter, variable.language.this, entity.name.section | #FDA129 | — |
| variable.parameter, variable.language.this, variable.other.object.access, keyword.other.package, keyword.other.namespace, keyword.other.class, keyword.other.typedef, keyword.operator.expression.void, keyword.control.directive.define, keyword.control.directive.undef, constant.numeric.preprocessor, storage.type.namespace, storage.modifier.async, storage.type.function, entity.name.namespace, entity.name.function.invocation, entity.other.inherited-class, markup.italic, markup.quote | — | italic |
| entity.name.section, entity.name.function.preprocessor, markup.bold, markup.heading | — | bold |
| keyword.control.directive.include | — | |
| punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html | #ACA99E | — |
| variable.parameter.url.css | #E6DB74 | — |
| entity.name.tag.css, entity.name.tag.wildcard.css, entity.other.attribute-name.class.css, meta.attribute-selector.css, support.function.url.css, support.function.misc.css | #91D921 | — |
| entity.other.attribute-name.id.css | #FDA129 | — |
| punctuation.definition.keyword.css, keyword.control.at-rule.import.css | #F92672 | — |
| support.type.property-name.css, entity.other.attribute-name.css, keyword.operator.combinator.css, punctuation.terminator.rule.css, punctuation.definition.entity.css | #D8D8D8 | — |
| entity.other.attribute-name.pseudo-element.css, entity.other.attribute-name.pseudo-class.css, punctuation.section.function.css | #56BF4B | — |
| support.constant.property-value.css | #77C8E4 | — |
| keyword.other.important.css | #91D921 | — |
| constant.language.import-export-all.js, constant.language.import-export-all.ts | #D8D8D8 | — |
| storage.type.js, storage.type.ts | #77C8E4 | — |
| constant.other.character-class.regexp | #CB95FD | — |
| punctuation.definition.group.regexp, punctuation.definition.group.capture.regexp, punctuation.definition.group.assertion.regexp, keyword.other.back-reference.regexp, keyword.operator.or.regexp | #FDA129 | — |
| keyword.control.anchor.regexp, keyword.operator.negation.regexp, keyword.operator.quantifier.regexp | #F92672 | — |
| constant.other.character-class.range.regexp, constant.other.character-class.set.regexp | #D8D8D8 | — |
| punctuation.definition.character-class.regexp | #91D921 | — |
| support.type.property-name.json | #77C8E4 | — |
| punctuation.definition.string.begin.json, punctuation.definition.string.end.json | #E6DB7499 | — |
| punctuation.separator.dictionary.pair.json, punctuation.separator.dictionary.key-value.json, punctuation.separator.array.json | #8E8B7C | — |
| punctuation.support.type.property-name.begin.json, punctuation.support.type.property-name.end.json | #77C8E499 | — |
| storage.modifier.import.java, storage.modifier.import.kotlin, variable.language.wildcard.java, variable.language.wildcard.kotlin, storage.modifier.package.java, storage.modifier.package.kotlin | #D8D8D8 | — |
| variable.language.java, variable.language.kotlin, keyword.operator.arithmetic.java, keyword.operator.arithmetic.kotlin | #F92672 | — |
| storage.type.java, storage.type.primitive.java, storage.type.generic.java, support.class.kotlin, keyword.other.kotlin | #77C8E4 | — |
| support.class.ruby | #56BF4B | — |
| entity.name.type.module.ruby, variable.other.constant.ruby | #91D921 | — |
| variable.other.readwrite.global.ruby | #77C8E4 | — |
| keyword.other.special-method.ruby | #F92672 | — |
| variable.language.self.ruby, variable.other.block.ruby, punctuation.definition.variable.ruby | #FDA129 | — |
| constant.other.symbol.ruby | #CB95FD | — |
| string.quoted.docstring.multi.python, string.quoted.docstring.single.python | #88846F | — |
| keyword.codetag.notation.python, variable.language.special.self.python | #FDA129 | — |
| support.function.library.lua | #77C8E4 | — |
| variable.language.self.lua | #FDA129 | — |
| variable.parameter.preprocessor.c, meta.qualified_type.cpp, entity.name.function.member.cpp, entity.name.operator.cpp, entity.name.scope-resolution.operator.cpp, storage.modifier.pointer.cpp, storage.modifier.reference.cpp, storage.modifier.specifier.parameter.cpp, variable.language.llvm | #D8D8D8 | — |
| keyword.instruction.llvm | #91D921 | — |
| entity.name.type.c, entity.name.type.struct.c, storage.type.built-in.c, storage.type.built-in.primitive.c, punctuation.definition.begin.bracket.c, punctuation.definition.end.bracket.c, entity.name.type.cpp, entity.name.type.struct.cpp, entity.name.type.template.cpp, storage.type.built-in.cpp, storage.type.built-in.primitive.cpp, storage.type.template.cpp, keyword.control.directive.elif, keyword.control.directive.else, keyword.control.directive.endif, keyword.other.using.directive.cpp, punctuation.definition.begin.bracket.cpp, punctuation.definition.end.bracket.cpp, storage.type.language.llvm | #77C8E4 | — |
| support.class.c, support.class.cpp, punctuation.section.arguments.begin.bracket.round.c, punctuation.section.arguments.end.bracket.round.c, punctuation.section.arguments.begin.bracket.round.cpp, punctuation.section.arguments.end.bracket.round.cpp | #56BF4B | — |
| markup.deleted | #F92672 | — |
| markup.inserted | #91D921 | — |
| markup.list, markup.changed, markup.underline.link, markup.underline.link.image, variable.parameter.misc.css | #E6DB74 | — |
| markup.quote | #CB95FD | — |
| markup.bold, markup.inline.raw | #DDAB31 | — |
| markup.italic | #FDA129 | — |
| markup.heading | #FDA129AA | — |
| markup.list.unnumbered, markup.list.numbered, meta.embedded, meta.template.expression | #D8D8D8 | — |
| meta.diff, meta.diff.header | #75715E | — |
| token.info-token | #77C8E4 | — |
| token.warn-token | #DDAB31 | — |
| token.error-token | #F92672 | — |
| token.debug-token | #CB95FD | — |
| punctuation.definition.variable.shell | #CB95FD | — |
| keyword.operator.logical.shell, punctuation.definition.logical-expression.shell | #77C8E4 | — |
| keyword.operator.redirect.shell, keyword.operator.pipe.shell | #D8D8D8 | — |
| variable.other.normal.shell, keyword.operator.expansion.shell, punctuation.section.array.shell | #FDA129 | — |
| string.quoted.double.shell | #FDA129D0 | — |
| punctuation.definition.variable.powershell | #F92672 | — |
| variable.other.member.powershell | #91D921 | — |
| support.variable.automatic.powershell | #77C8E4 | — |
| storage.modifier.extends.java, keyword.other.important.css, keyword.other.kotlin, keyword.other.using.directive.cpp, entity.name.operator.cpp, entity.name.scope-resolution.operator.cpp, keyword.control.def.ruby, variable.language.self.ruby, variable.language.special.self.python, variable.language.self.lua, string.quoted.other.multiline.lua | — | italic |
| support.function.lua, punctuation.definition.group.regexp, punctuation.definition.group.shell, storage.modifier.pointer.cpp, storage.modifier.reference.cpp, storage.type.language.llvm | — | bold |
| storage.modifier.specifier.parameter.cpp, keyword.control.flow.js, keyword.control.flow.ts, keyword.control.default.js, keyword.control.default.ts, keyword.control.pseudo-method.ruby | — | underline |
| variable.parameter.url.css, variable.parameter.misc.css, storage.type.generic.java, variable.parameter.c, variable.parameter.preprocessor.c, variable.parameter.cpp, variable.parameter.preprocessor.cpp | — |
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}!`;
}