NevsThemeGen
Publisher: Nevin FosterThemes in package: 1
Starting point for generating new themes using a few or many color pickers.
Starting point for generating new themes using a few or many color pickers.
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 |
|---|---|---|
| Mirrored Styles - Tokens that visually represent a font style, so they can display that style in the editor. No colors assigned here, group is kinda a 'don't change' group other than specific user preferences. | — | — |
| emphasis, markup.italic | — | italic |
| strong, markup.bold | — | bold |
| markup.underline | — | underline |
| markup.strikethrough | — | strikethrough |
| keyword, storage.type, keyword.operator.noexcept, storage.modifier | — | italic |
| Comment Text | — | — |
| comment | #00c860b0 | — |
| comment.documentation, comment.block.documentation, string.quoted.docstring.multi, string.unquoted.preprocessor.message, meta.preprocessor.string | #7be9afb0 | — |
| comment.documentation.delimiter, punctuation.definition.comment, comment.block.documentation punctuation.definition.tag | #00d070b0 | — |
| Primary Accent | — | — |
| markup.heading, header, meta.diff.header, support.type.tag-prefix | #00a3ff | bold |
| markup.bold, punctuation.definition.list.begin.markdown, markup.italic, markup.strikethrough, string.other.link | #93dcff | — |
| markup.underline.link, fenced_code.block | #7dbdff | — |
| token.debug-token | #8a3a8c | — |
| punctuation.definition.tag | #7B7B7B | — |
| Control Keywords | — | — |
| keyword.control.import, keyword.control.from, keyword.control.loop, keyword.control.conditional, keyword.control.else, keyword.control.if, keyword.control.flow, keyword.control.while, keyword.control.for, keyword.control.do, keyword.control.foreach, keyword.control.try, keyword.control.catch, keyword.control.switch, keyword.control.break, keyword.control.continue, keyword.control.goto, keyword.control.return, keyword.control.throw, keyword.control.finally, keyword.control.directive, storage.modifier.import.java, variable.language.wildcard.java, storage.modifier.package.java | #f36cf3 | — |
| meta.preprocessor, keyword.other.using, keyword.other.import, entity.name.function.preprocessor | #9f5dcb | — |
| Data Descriptors - Keywords that are used to define some data (var, let, etc.) or data factory (class, struct, enum, etc.) | — | — |
| storage.type, keyword.other.namespace, keyword.other.class, keyword.other.struct, keyword.other.enum, keyword.other.union, keyword.other.interface, storage.type.accessor, keyword.other.var, keyword.other.delegate, keyword.other.special-method, keyword.other.directive, punctuation.definition.directive.begin | #ff4f6b | — |
| keyword.operator.noexcept, storage.modifier, storage.type.modifier, keyword.control.default | #ff4c8c | — |
| Data Types - Referable names that describe the layout/functions of some data ('int', 'string', class name, struct name, etc.) | — | — |
| entity.name.type, entity.name.type.delegate | #009866 | — |
| keyword.type, storage.type.primitive, storage.type.built-in, support.type.primitive | #74b700 | — |
| entity.name.type.struct | #00c300 | — |
| entity.name.tag.css, entity.other.attribute-name.class.css, entity.other.attribute-name.class.mixin.css, entity.other.attribute-name.id.css, entity.other.attribute-name.parent-selector.css, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css, source.css.less entity.other.attribute-name.id, entity.other.attribute-name.scss | #00c300 | — |
| entity.name.type.enum | #56d753 | — |
| entity.name.type.interface | #00c860 | — |
| entity.name.class, entity.name.type.class, entity.other.inherited-class | #00c985 | — |
| entity.name.type.namespace, entity.name.scope-resolution, entity.name.type.module, entity.name.tag.namespace | #00987b | — |
| entity.name.tag | #00c860 | — |
| comment.block.documentation entity.name.tag, comment.documentation.name | #00c860b0 | — |
| Add/Success - Tokens that represent a successful action (add, success, pass, etc.) | — | — |
| markup.inserted | #00cc06 | — |
| Info - Tokens that represent an informational action (info, help, etc.) | — | — |
| markup.changed, token.info-token | #00c5ff | — |
| Warning - Tokens that represent a warning action (warning, caution, etc.) | — | — |
| token.warn-token | #ff8200 | — |
| Error - Tokens that represent an error action (error, fail, etc.) | — | — |
| token.error-token, invalid | #ff5a39 | — |
| markup.deleted | #ff724f | — |
| Functions - Tokens that represent a function call or manipulation of data (function, operator, etc.) | — | — |
| entity.name.function, keyword.command, support.function.transform, meta.function-call.generic | #b9a600 | — |
| punctuation.accessor, punctuation.separator.pointer-access, punctuation.definition.typeparameters, punctuation.section.angle-brackets, punctuation.separator.scope-resolution, punctuation.definition.evaluation, keyword.operator.null-conditional | #e3d763 | italic |
| keyword.operator | #d4d4d4 | |
| entity.name.function keyword, keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof, keyword.operator.alignof, keyword.operator.typeid, keyword.operator.alignas, keyword.operator.instanceof, keyword.operator.logical.python, keyword.operator.wordlike, keyword.other.typeof, keyword.other.is, keyword.other.as, keyword.other.new, keyword.query, keyword.other.get, keyword.other.set, keyword.other.init, entity.other.keyframe-offset, keyword.operator.logical | #ff7100 | — |
| Strings - Tokens that represent a string or string like value (string, character, regex, etc.) | — | — |
| meta.embedded.assembly, string.quoted.double, string.quoted.single, string.tag, string.value, markup.quote, markup.inline.raw, markup.fenced_code.block, string.unquoted.plain | #ffbca5 | — |
| string.regexp | #ff8d8f | — |
| constant.character.escape, string.quoted.single.cs, constant.character.entity, constant.character.entity punctuation.definition.constant | #ff724f | bold |
| punctuation.definition.string.begin, punctuation.definition.string.end, punctuation.definition.char.begin, punctuation.definition.char.end, punctuation.definition.quote.begin.markdown, punctuation.definition.link, punctuation.definition.raw, markup.fenced_code.block punctuation.definition, storage.type.string.python | #ffbbb7 | italic |
| Numbers | — | — |
| constant.numeric, keyword.operator.plus.exponent, keyword.operator.minus.exponent, constant.other.color | #f1d268 | — |
| constant.numeric.other.suffix, constant.numeric.other.preffix, constant.numeric.other.separator.thousands, keyword.other.unit, constant.language, punctuation.definition.constant | #e5b800 | italic |
| entity.name.variable.enum-member, variable.other.enummember | #d4db66 | bold |
| Variables - Tokens that represent a variable or reference to a variable (variable, property, etc.) | — | — |
| keyword.other.this, variable.language.this, variable.language.super, support.constant.property-value, variable.language.special.self, keyword.other.base | — | italic bold |
| variable.other.constant | — | bold |
| variable.other.object, variable.other.readwrite, variable.other.definition.java | #00d0ff | — |
| entity.name.variable.local, entity.name.variable.parameter, meta.function-call.arguments, variable.parameter, variable.other.constant, support.constant.property-value, source.shell variable.other, string.unquoted.argument.shell, meta.flow-pair.key entity.name.tag, meta.flow-pair.key constant.language.boolean.yaml | #4fe8ed | — |
| support.type.vendored.property-name, support.type.property-name, variable.css, variable.scss, variable.other.less, source.coffee.embedded, entity.other.attribute-name, meta.structure.dictionary.key.python, entity.name.variable.field, meta.object-literal.key, meta.attribute | #00d0ff | — |
| entity.name.variable.property, variable.other.object.property, keyword.other.this, variable.language.this, variable.language.super, variable.other.property, variable.object.property, variable.language.special.self, keyword.other.base, variable.other.constant.property | #0085e3 | — |
| comment entity.other.attribute-name | #00d0ffb0 | — |
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}!`;
}