Bits
Publisher: Manu CodesThemes in package: 2
Cool and simple VS Code theme
Cool and simple VS Code 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 |
|---|---|---|
| comment | #7077a8 | italic |
| string, string.quoted, meta.structure.dictionary.value.json string.quoted.double.json | #7984D1 | |
| constant.numeric | #FDE74E | — |
| meta.object-literal.key, meta.object.member | #aab7ec | |
| constant.language, entity.other.attribute-name.class.pug | #df85ff | italic |
| variable.scss, variable.css | #58afd4 | italic |
| constant.character, constant.other, support.constant.property-value.css, entity.other.attribute-name.pseudo-class.css, keyword.other.important.scss | #df85ff | — |
| variable | — | |
| keyword | #fe36fb | — |
| storage | #42c6ff | |
| storage.type, keyword.declaration.dart | #fe36fb | bold italic |
| entity.name.class, entity.name.type | #42c6ff | italic |
| entity.other.inherited-class, meta.other.inherited-class.php | #FDE74E | italic |
| variable.parameter | #FFFFFF | |
| entity.name.tag | #42c6ff | |
| meta.entity.name.function.tsx, meta.entity.name.function.js, meta.entity.name.function.ts, meta.definition.function.tsx | #42c6ff | |
| entity.other.attribute-name, source.dart, variable.parameter, meta.jsx.children, meta.jsx.children, constant.other.color.rgb-value.hex.css | #d1d1d1 | |
| support.function, keyword.operator | #FF2AFC | |
| support.constant | #A3D6E0 | |
| support.type, support.class | #42c6ff | italic |
| support.other.variable | — | |
| variable.language.this, variable.language.this, variable.language.super, variable.language.this | #42c6ff | italic |
| invalid | #cf433e | |
| invalid.deprecated | #cf433e | — |
| meta.diff, meta.diff.header | #456b7c | — |
| markup.deleted | #e61f44 | — |
| markup.inserted | #A6E22E | — |
| markup.changed | #f7b83d | — |
| constant.numeric.line-number.find-in-files - match | #f7b83d | — |
| entity.name.filename.find-in-files | #E6DB74 | — |
| keyword.other | #4ca2c7 | — |
| meta.property-value, support.constant.property-value, constant.other.color | #cccccc | — |
| meta.structure.dictionary.json string.quoted.double.json | #FF0081 | — |
| support.type.property-name.json | #D86BFF | |
| meta.property-name support.type.property-name | — | |
| meta.property-value punctuation.separator.key-value | #b6ced8 | — |
| keyword.other.use, keyword.other.function.use, keyword.other.namespace, keyword.other.new, keyword.other.special-method, keyword.other.unit, keyword.other.use-as, keyword.other.import | #ff2afc | — |
| support.other.namespace.php | #F8F8F2 | — |
| meta.use | #1ea8fc | |
| meta.function-call, entity.name.function.dart | #42c6ff | italic |
| support.class.component.js.jsx | — | bold |
| variable.parameter | #aaaaaa | |
| variable.other | #f0f2ff | — |
| variable.other.property, support.variable.property | — | italic |
| variable.other.readwrite, variable.other.constant, variable.other.property.js, support.variable.property.js | #cecece | — |
| entity.name.section.markdown | #5dcdfd | — |
| punctuation.section.embedded, punctuation.definition.block, meta.brace.round, punctuation.definition.parameters.begin, punctuation.definition.parameters.end, punctuation.definition.binding-pattern.object, punctuation.section.property-list.begin.bracket.curly, punctuation.section.property-list.end.bracket.curly, punctuation.section.function.begin.bracket.round, punctuation.section.function.end.bracket.round, constant.name.attribute.tag.pug, punctuation.definition.tag, punctuation.definition.typeparameters | #545C79 | bold |
| punctuation.definition.heading.markdown | #1ea8fc | — |
| markup.raw.inline.markdown | #cccccc | — |
| punctuation.definition.bold.markdown, punctuation.definition.italic.markdown | #1ea8fc | — |
| punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown | #1ea8fc | — |
| punctuation.definition.metadata.markdown | #1ea8fc | — |
| markup.underline.link.markdown, markup.underline.link.image.markdown, meta.image.inline.markdown | #1ea8fc | |
| markup.bold.markdown, markup.italic.markdown | #1ea8fc | — |
| markup.italic.markdown | — | italic |
| markup.bold.markdown | — | bold |
| markup.raw.block.markdown | #664e4d | — |
| markup.deleted.git_gutter | #e61f44 | — |
| markup.inserted.git_gutter | #a7da1e | — |
| markup.changed.git_gutter | #f7b83d | — |
| meta.template.expression | #b6ced8 | — |
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}!`;
}