Intent Semantic
Publisher: nheoThemes in package: 1
A dark theme that colors code by what it does, not what it is — data flow in warm ambers, control flow in cool blues, side effects in magenta-red, pure logic in neutral silver.
A dark theme that colors code by what it does, not what it is — data flow in warm ambers, control flow in cool blues, side effects in magenta-red, pure logic in neutral silver.
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, comment.block.documentation | #505868 | italic |
| storage.type.class.jsdoc, punctuation.definition.block.tag.jsdoc, entity.name.type.instance.jsdoc | #606878 | italic |
| keyword, keyword.control, keyword.control.flow, keyword.operator.new, keyword.operator.delete, keyword.other.important.css | #5c9cf5 | — |
| keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.as, keyword.control.require | #4ec9b0 | italic |
| variable.language.this, variable.language.self, variable.language.super, variable.language.special.self | #f09860 | italic |
| keyword.operator | #8890a0 | — |
| keyword.operator.assignment, keyword.operator.arrow, keyword.operator.pipe, storage.type.function.arrow | #e8a855 | — |
| punctuation.definition, punctuation.terminator, punctuation.accessor, meta.brace, punctuation.separator, punctuation.section | #404858 | — |
| string, string.quoted, string.quoted.single, string.quoted.double, string.quoted.triple, string.template, string.unquoted, punctuation.definition.string | #8cb870 | — |
| punctuation.definition.template-expression, punctuation.section.embedded, punctuation.definition.interpolation, punctuation.section.interpolation | #e06c88 | — |
| constant.character.escape, constant.other.placeholder | #c8a86c | — |
| constant.numeric, constant.numeric.integer, constant.numeric.float, constant.numeric.hex, constant.numeric.binary | #c8a86c | — |
| constant.language | #b88860 | italic |
| constant.character, constant.other | #c8a86c | — |
| entity.name.function, meta.function-call entity.name.function, support.function, entity.name.function.member | #e06c88 | — |
| support.function.builtin | #e87070 | — |
| variable.parameter, meta.parameters variable.other | #d4a856 | italic |
| entity.name.type, entity.name.class, entity.other.inherited-class, support.type, support.class, entity.name.type.alias, entity.name.type.enum, entity.name.enum | #b0b8c8 | — |
| entity.name.type.interface | #8890a0 | italic |
| meta.type.annotation, meta.type.parameters, meta.return.type | #b0b8c8 | — |
| meta.type.parameters entity.name.type | #a0a8b8 | — |
| entity.name.namespace, entity.name.module | #4ec9b0 | — |
| variable, variable.other, variable.other.readwrite | #d4a856 | — |
| variable.other.property, support.variable.property, meta.object-literal.key, variable.other.object.property | #c8a040 | — |
| variable.other.constant, variable.other.enummember | #b88860 | — |
| meta.decorator, punctuation.decorator, entity.name.function.decorator, meta.annotation, storage.type.annotation, punctuation.definition.annotation | #f06090 | italic |
| entity.name.tag, meta.tag.sgml, support.class.component | #e87070 | — |
| entity.other.attribute-name, meta.tag entity.other.attribute-name | #d4a856 | — |
| punctuation.section.embedded.begin.jsx, punctuation.section.embedded.end.jsx | #e06c88 | — |
| constant.character.entity.html | #c8a86c | — |
| support.type.property-name.css, support.type.property-name.scss, support.type.property-name.less | #c8a040 | — |
| support.constant.property-value.css, support.constant.property-value.scss | #8cb870 | — |
| keyword.other.unit.css, keyword.other.unit.scss | #c8a86c | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, entity.other.attribute-name.class.scss, entity.other.attribute-name.id.scss | #b0b8c8 | — |
| entity.name.tag.css, entity.name.tag.scss | #e87070 | — |
| entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #56d6d6 | — |
| keyword.control.at-rule.css, keyword.control.at-rule.scss | #5c9cf5 | — |
| variable.css, variable.scss, variable.less | #d4a856 | — |
| constant.other.color.rgb-value.css, support.constant.color.css | #c8a86c | — |
| string.regexp, constant.regexp | #8cb870 | — |
| keyword.operator.quantifier.regexp, keyword.operator.or.regexp, punctuation.definition.group.regexp | #8890a0 | — |
| constant.other.character-class.regexp | #b0b8c8 | — |
| support.function.builtin.python | #e87070 | — |
| support.type.python | #b0b8c8 | — |
| support.function.magic.python, entity.name.function.magic.python | #e06c88 | italic |
| entity.name.function.decorator.python, meta.function.decorator.python | #f06090 | italic |
| meta.fstring.python, constant.character.format.placeholder.other.python | #e8a855 | — |
| entity.name.package.go | #4ec9b0 | — |
| support.function.builtin.go | #e87070 | — |
| storage.type.go, keyword.type.go | #a0a8b8 | — |
| entity.name.lifetime.rust, storage.modifier.lifetime.rust, punctuation.definition.lifetime.rust | #f09860 | italic |
| entity.name.function.macro.rust, meta.macro.rust entity.name.function.rust | #e06c88 | — |
| meta.attribute.rust, entity.name.function.attribute.rust | #f06090 | italic |
| support.type.primitive.rust, entity.name.type.primitive.rust | #a0a8b8 | — |
| entity.name.type.trait.rust | #8890a0 | italic |
| storage.type.annotation.java, meta.declaration.annotation.java, punctuation.definition.annotation.java, entity.name.type.annotation.kotlin, meta.annotation.kotlin | #f06090 | italic |
| storage.modifier.import.java, variable.language.wildcard.java | #d4a856 | — |
| storage.type.primitive.java, storage.type.java | #a0a8b8 | — |
| keyword.control.directive.c, keyword.control.directive.cpp, punctuation.definition.directive.c | #f06090 | — |
| entity.name.function.preprocessor.c, entity.name.function.preprocessor.cpp | #e06c88 | — |
| storage.type.c, storage.type.cpp, support.type.posix-reserved.c | #a0a8b8 | — |
| constant.other.symbol.ruby, constant.other.symbol.hashkey.ruby | #b88860 | — |
| variable.other.readwrite.instance.ruby, variable.other.readwrite.class.ruby | #d4a856 | — |
| support.function.kernel.ruby, support.function.builtin.ruby | #e87070 | — |
| punctuation.section.embedded.begin.ruby, punctuation.section.embedded.end.ruby | #e06c88 | — |
| variable.other.php, variable.language.php | #d4a856 | — |
| support.function.builtin.php | #e87070 | — |
| punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php | #e87070 | bold |
| keyword.other.DML.sql, keyword.other.DDL.create.sql, keyword.other.DDL.sql | #e06c88 | — |
| keyword.other.sql, keyword.other.alias.sql, keyword.other.order.sql | #5c9cf5 | — |
| support.function.aggregate.sql, support.function.sql | #e87070 | — |
| entity.name.function.sql | #d4a856 | — |
| storage.type.sql | #b0b8c8 | — |
| comment.line.shebang, punctuation.definition.comment.shebang | #e06c88 | bold |
| support.function.builtin.shell, support.function.builtin.bash | #e87070 | — |
| variable.other.normal.shell, variable.other.bracket.shell, variable.other.special.shell, variable.other.positional.shell | #d4a856 | — |
| meta.substitution.command.shell, punctuation.definition.string.begin.shell, punctuation.definition.string.end.shell | #e06c88 | — |
| string.unquoted.argument.shell | #c8ccd4 | — |
| entity.name.tag.yaml, support.type.property-name.yaml | #c8a040 | — |
| entity.name.type.anchor.yaml, variable.other.alias.yaml, punctuation.definition.anchor.yaml | #e8a855 | — |
| constant.language.boolean.yaml, constant.language.null.yaml | #b88860 | italic |
| entity.other.document.begin.yaml, entity.other.document.end.yaml | #404858 | — |
| support.type.property-name.json | #c8a040 | — |
| constant.language.json | #b88860 | italic |
| support.type.property-name.table.toml, entity.name.section.toml | #b0b8c8 | — |
| support.type.property-name.toml | #c8a040 | — |
| keyword.type.graphql, keyword.operation.graphql | #5c9cf5 | — |
| entity.name.type.graphql, support.type.graphql | #b0b8c8 | — |
| variable.other.field.graphql | #d4a856 | — |
| entity.name.fragment.graphql | #e8a855 | — |
| entity.name.directive.graphql, meta.directive.graphql | #f06090 | italic |
| keyword.other.special-method.dockerfile | #e06c88 | — |
| markup.heading, entity.name.section.markdown, punctuation.definition.heading.markdown | #e06c88 | bold |
| markup.bold, punctuation.definition.bold.markdown | #e8a855 | bold |
| markup.italic, punctuation.definition.italic.markdown | #b0b8c8 | italic |
| markup.inline.raw, punctuation.definition.raw.markdown | #8cb870 | — |
| markup.fenced_code.block.markdown, punctuation.definition.fenced.markdown | #8cb870 | — |
| markup.underline.link, string.other.link | #5c9cf5 | — |
| meta.link.inline.markdown entity.name.label | #4ec9b0 | — |
| punctuation.definition.list.begin.markdown, beginning.punctuation.definition.list.markdown | #e06c88 | — |
| markup.quote, punctuation.definition.blockquote.markdown | #404858 | italic |
| meta.separator.markdown | #505868 | — |
| storage.type, storage.modifier | #a0a8b8 | — |
| invalid, invalid.deprecated | #e87070 | underline |
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}!`;
}