Naomi's Themes
Publisher: NHCarriganThemes in package: 5
Various themes Naomi has created.
Various themes Naomi has created.
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, punctuation.definition.comment | #7A5A8A | italic |
| string, string.quoted.single, string.quoted.double, string.quoted.triple, string.template, constant.character, constant.other.symbol | #D4A5C7 | — |
| constant.numeric, constant.language, constant.character.escape, constant.other, support.constant | #C88FA8 | — |
| variable, variable.other, variable.parameter, variable.language, variable.object.property | #E8D5E8 | — |
| keyword, keyword.control, keyword.operator, keyword.other, storage.type, storage.modifier, punctuation.decorator | #A8577E | — |
| entity.name.function, entity.name.method, support.function, meta.function-call, meta.method-call, meta.function.dart | #C070A0 | — |
| entity.name.type, entity.name.class, entity.name.struct, entity.name.enum, entity.name.union, entity.name.trait, entity.name.interface, support.class, support.type, meta.return-type | #D4A5C7 | bold |
| meta.decorator, meta.annotation, punctuation.definition.annotation | #9B5878 | — |
| entity.name.tag, punctuation.definition.tag | #A8577E | — |
| entity.other.attribute-name, entity.other.attribute-name.html, entity.other.attribute-name.css, support.type.property-name.css, entity.other.attribute-name.class | #D4A5C7 | — |
| support.type.primitive, support.type.builtin, keyword.type, storage.type.primitive, storage.type.built-in, support.type.primitive.dart | #D4A5C7 | — |
| string.regexp, constant.character.escape.regex | #D4A5C7 | — |
| markup.heading, entity.name.section | #A8577E | bold |
| markup.bold | — | bold |
| markup.italic | — | italic |
| markup.inline.raw, markup.fenced_code, markup.raw | #D4A5C7 | — |
| support.type.property-name.json, support.type.property-name.jsonc | #D4A5C7 | — |
| keyword.operator.expression, keyword.operator.new, keyword.operator.optional, keyword.operator.comparison, keyword.operator.arithmetic, keyword.operator.assignment, keyword.operator.logical | #CF8FAE | — |
| meta.embedded, source.groovy.embedded, meta.template.expression | #E8D5E8 | — |
| meta.object-literal.key, variable.object.property, variable.other.property, variable.other.object.property | #D4A5C7 | — |
| support.variable.property, support.variable.object.process, support.variable.object.node | #D4A5C7 | — |
| source.rust storage.type.rust, source.rust entity.name.type.rust, source.rust entity.name.type.struct.rust | #D4A5C7 | — |
| source.rust keyword.operator, source.rust keyword.operator.arithmetic, source.rust keyword.operator.logical | #CF8FAE | — |
| source.python support.type.python, source.python support.function.builtin.python | #C070A0 | — |
| source.cs entity.name.type.class.cs, source.cs storage.type.cs | #D4A5C7 | — |
| source.dart support.class.dart, source.dart support.type.dart | #D4A5C7 | — |
| source.prisma keyword.operator, source.prisma constant.language, source.prisma keyword.type | #A8577E | — |
| source.graphql support.type, source.graphql constant.character | #D4A5C7 | — |
| source.sql keyword.other, source.sql storage.type | #A8577E | — |
| meta.jsx.children, meta.embedded.block.tsx, meta.embedded.block.jsx | #E8D5E8 | — |
| meta.decorator.ts, meta.decorator.tsx, meta.decorator.angular | #9B5878 | — |
| entity.name.tag.yaml, string.unquoted.plain.out.yaml | #D4A5C7 | — |
| support.type.property-name.toml, entity.name.tag.toml | #D4A5C7 | — |
| markup.underline.link, string.other.link.title.markdown, meta.link.inline.markdown | #A8577E | — |
| markup.quote | #7A5A8A | italic |
| punctuation.definition.list.begin.markdown, beginning.punctuation.definition.list.markdown | #A8577E | — |
| variable.css, variable.other.custom-property.css, support.type.custom-property.css | #CF8FAE | — |
| support.macro.rust, entity.name.function.macro.rust, meta.macro.rust entity.name.function.rust | #C070A0 | — |
| storage.modifier.lifetime.rust, entity.name.lifetime.rust, punctuation.definition.lifetime.rust | #9B5878 | — |
| entity.name.package.go | #C88FA8 | — |
| entity.name.package.java, support.other.package.java, entity.name.package.kotlin | #C88FA8 | — |
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}!`;
}