Trigger Dark Refined
Publisher: dewantorafliThemes in package: 7
A sleek, modern dark theme for Visual Studio Code inspired by Trigger aesthetics
A sleek, modern dark theme for Visual Studio Code inspired by Trigger aesthetics
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 |
|---|---|---|
| punctuation.definition.string.begin.html, punctuation.definition.string.end.html, string.quoted.double.html, string.quoted.double.css | #9ED66B | — |
| storage.modifier.async.js, storage.modifier.async.ts | #D886FF | — |
| keyword.control, source.cpp keyword.operator.new, keyword.operator.delete, keyword.other.using, keyword.other.directive.using, keyword.other.operator, entity.name.operator | #E888F8 | — |
| text.html.basic, text.html.jsx, text, meta.jsx.children | #D7D9DD | — |
| support.class, support.type, entity.name.type, entity.name.namespace, entity.other.attribute, entity.name.scope-resolution, entity.name.class, storage.type.numeric.go, storage.type.byte.go, storage.type.boolean.go, storage.type.string.go, storage.type.uintptr.go, storage.type.error.go, storage.type.rune.go, storage.type.cs, storage.type.generic.cs, storage.type.modifier.cs, storage.type.variable.cs, storage.type.annotation.java, storage.type.generic.java, storage.type.java, storage.type.object.array.java, storage.type.primitive.array.java, storage.type.primitive.java, storage.type.token.java, storage.type.groovy, storage.type.annotation.groovy, storage.type.parameters.groovy, storage.type.generic.groovy, storage.type.object.array.groovy, storage.type.primitive.array.groovy, storage.type.primitive.groovy | #F770C6 | — |
| variable, meta.definition.variable.name, support.variable, entity.name.variable, constant.other.placeholder | #CCCBFF | — |
| variable.other.constant, variable.other.enummember | #9C9AF2 | — |
| 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 | #8271ED | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded | #7A78EA | — |
| storage.type | #8271ED | — |
| storage.modifier, keyword.operator.noexcept | #8271ED | — |
| entity.name.function, support.function, support.constant.handlebars, source.powershell variable.other.member, entity.name.operator.custom-literal | #D9F07C | — |
| string, meta.embedded.assembly | #AFEC73 | — |
| string.tag | #AFEC73 | — |
| string.value | #AFEC73 | — |
| keyword.operator | #878C99 | — |
| meta.embedded, source.groovy.embedded, string meta.image.inline.markdown, variable.legacy.builtin.python | #D4D4D4 | — |
| emphasis | — | italic |
| strong | — | bold |
| header | #7f7ffa | — |
| comment | #6f736d | — |
| constant.language | #9B99FF | — |
| constant.numeric, variable.other.enummember, keyword.operator.plus.exponent, keyword.operator.minus.exponent | #b5cea8 | — |
| constant.regexp | #646695 | — |
| entity.name.tag | #9B99FF | — |
| entity.name.tag.css, entity.name.tag.less | #d7ba7d | — |
| entity.other.attribute-name | #C39EFF | — |
| entity.other.attribute-name.class.css, source.css entity.other.attribute-name.class, entity.other.attribute-name.id.css, entity.other.attribute-name.parent-selector.css, entity.other.attribute-name.parent.less, source.css entity.other.attribute-name.pseudo-class, entity.other.attribute-name.pseudo-element.css, source.css.less entity.other.attribute-name.id, entity.other.attribute-name.scss | #F8F8F8 | — |
| invalid | #f44747 | — |
| markup.underline | — | underline |
| markup.bold | #9B99FF | bold |
| markup.heading | #9B99FF | bold |
| markup.italic | — | italic |
| markup.strikethrough | — | strikethrough |
| markup.inserted | #b5cea8 | — |
| markup.deleted | #AFEC73 | — |
| markup.changed | #9B99FF | — |
| punctuation.definition.quote.begin.markdown | #6A9955 | — |
| punctuation.definition.list.begin.markdown | #6796e6 | — |
| markup.inline.raw | #AFEC73 | — |
| punctuation.definition.tag | #5F6570 | — |
| meta.preprocessor, entity.name.function.preprocessor | #9B99FF | — |
| meta.preprocessor.string | #AFEC73 | — |
| meta.preprocessor.numeric | #b5cea8 | — |
| meta.structure.dictionary.key.python | #bdf9e2 | — |
| meta.diff.header | #9B99FF | — |
| storage | #9B99FF | — |
| string.regexp | #d16969 | — |
| meta.template.expression | #d4d4d4 | — |
| support.type.vendored.property-name, support.type.property-name, variable.css, variable.scss, source.css.less variable.other, source.coffee.embedded | #bdf9e2 | — |
| keyword.other.unit | #b5cea8 | — |
| punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php | #9B99FF | — |
| support.function.git-rebase | #bdf9e2 | — |
| constant.sha.git-rebase | #b5cea8 | — |
| storage.modifier.import.java, variable.language.wildcard.java, storage.modifier.package.java | #d4d4d4 | — |
| variable.language | #9B99FF | — |
| meta.type.cast.expr, meta.type.new.expr, support.constant.math, support.constant.dom, support.constant.json, entity.other.inherited-class | #9B99FF | — |
| meta.object-literal.key | #8B89FF | — |
| entity.name.function.decorator.python, punctuation.definition.decorator.python | #F770C6 | italic |
| meta.fstring.python, string.interpolated.python, punctuation.definition.interpolation.begin.python, punctuation.definition.interpolation.end.python | #D9F07C | — |
| meta.function.parameters.python storage.type.annotation.python, meta.function.python storage.type.annotation.python, punctuation.separator.annotation.python, punctuation.separator.annotation.result.python | #8271ED | — |
| storage.modifier.async.python, keyword.control.flow.await.python | #E888F8 | italic |
| support.variable.magic.python, support.function.magic.python | #C39EFF | — |
| variable.language.special.self.python, variable.language.special.cls.python | #9B99FF | italic |
| storage.modifier.lifetime.rust, entity.name.type.lifetime.rust | #C39EFF | italic |
| storage.type.trait.rust, storage.type.impl.rust, entity.name.type.trait.rust | #F770C6 | — |
| entity.name.function.macro.rust, support.function.macro.rust | #D9F07C | bold |
| keyword.other.rust, storage.modifier.mut.rust, storage.modifier.ref.rust | #E888F8 | — |
| storage.type.numeric.rust, storage.type.rust, keyword.control.rust | #8271ED | — |
| meta.attribute.rust, punctuation.definition.attribute.rust | #C39EFF | italic |
| keyword.channel.go, keyword.control.go, keyword.import.go, keyword.interface.go, keyword.package.go, keyword.struct.go, keyword.type.go | #E888F8 | — |
| keyword.function.go, keyword.var.go, keyword.const.go, keyword.map.go, keyword.const.go | #8271ED | — |
| support.function.builtin.go | #D9F07C | — |
| variable.other.assignment.go, keyword.operator.address.go | #C39EFF | — |
| variable.other.php, punctuation.definition.variable.php | #CCCBFF | — |
| variable.other.global.php, variable.other.global.safer.php | #F770C6 | bold |
| support.other.namespace.php, keyword.other.use.php, support.class.php | #8271ED | — |
| storage.type.trait.php, storage.type.interface.php | #F770C6 | — |
| support.function.magic.php, constant.language.php | #C39EFF | — |
| constant.other.symbol.ruby, punctuation.definition.constant.ruby | #9C9AF2 | — |
| variable.other.readwrite.instance.ruby, variable.other.readwrite.class.ruby, punctuation.definition.variable.ruby | #F770C6 | — |
| punctuation.section.scope.begin.ruby, punctuation.section.scope.end.ruby, keyword.control.pseudo-method.ruby | #E888F8 | — |
| punctuation.section.embedded.begin.ruby, punctuation.section.embedded.end.ruby, source.ruby.embedded.source | #D9F07C | — |
| keyword.control.module.ruby, keyword.control.class.ruby, keyword.control.def.ruby, storage.type.variable.ruby | #8271ED | — |
| keyword.operator.type.optional.swift, keyword.operator.optional-chaining.swift, keyword.operator.nil-coalescing.swift | #C39EFF | — |
| storage.type.protocol.swift, storage.type.extension.swift, keyword.other.declaration-specifier.swift | #F770C6 | — |
| storage.type.attribute.swift, punctuation.definition.attribute.swift | #C39EFF | italic |
| keyword.declaration.swift, storage.modifier.swift, keyword.control.transfer.swift | #E888F8 | — |
| punctuation.definition.generic.begin.swift, punctuation.definition.generic.end.swift | #8271ED | — |
| keyword.operator.safe-navigation.kotlin, keyword.operator.elvis.kotlin | #C39EFF | — |
| storage.modifier.kotlin, keyword.other.kotlin | #F770C6 | — |
| storage.modifier.suspend.kotlin, keyword.other.kotlin | #E888F8 | italic |
| punctuation.definition.annotation.kotlin, storage.type.annotation.kotlin | #C39EFF | italic |
| punctuation.definition.template-expression.begin.kotlin, punctuation.definition.template-expression.end.kotlin | #D9F07C | — |
| keyword.other.DML.sql, keyword.other.DDL.create.II.sql, keyword.other.DDL.drop.sql, keyword.other.sql | #E888F8 | — |
| support.function.aggregate.sql, support.function.string.sql, support.function.window.sql | #D9F07C | — |
| storage.type.sql, constant.language.sql | #F770C6 | — |
| keyword.operator.comparison.sql, keyword.operator.logical.sql | #8271ED | — |
| constant.other.table-name.sql, constant.other.database-name.sql | #CCCBFF | — |
| variable.other.readwrite.shell, variable.other.positional.shell, variable.other.special.shell, punctuation.definition.variable.shell | #CCCBFF | — |
| punctuation.definition.string.begin.shell, punctuation.definition.string.end.shell, string.interpolated.backtick.shell | #D9F07C | — |
| keyword.control.shell, storage.modifier.shell | #E888F8 | — |
| support.function.builtin.shell, entity.name.command.shell | #D9F07C | — |
| keyword.operator.redirect.shell, keyword.operator.pipe.shell | #8271ED | — |
| keyword.other.special-method.dockerfile, keyword.operator.flag.dockerfile | #E888F8 | bold |
| entity.name.tag.yaml, punctuation.definition.key-value.yaml | #9C9AF2 | — |
| string.unquoted.plain.out.yaml, string.quoted.single.yaml, string.quoted.double.yaml | #AFEC73 | — |
| punctuation.definition.anchor.yaml, punctuation.definition.alias.yaml, variable.other.alias.yaml | #C39EFF | — |
| entity.other.document.begin.yaml, entity.other.document.end.yaml | #878C99 | — |
| meta.structure.dictionary.key.json string.quoted.double.json, support.type.property-name.json | #9C9AF2 | — |
| support.constant.property-value, support.constant.font-name, support.constant.media-type, support.constant.media, constant.other.color.rgb-value, constant.other.rgb-value, support.constant.color | #CE9178 | — |
| punctuation.definition.group.regexp, punctuation.definition.group.assertion.regexp, punctuation.definition.character-class.regexp, punctuation.character.set.begin.regexp, punctuation.character.set.end.regexp, keyword.operator.negation.regexp, support.other.parenthesis.regexp | #CE9178 | — |
| constant.character.character-class.regexp, constant.other.character-class.set.regexp, constant.other.character-class.regexp, constant.character.set.regexp | #d16969 | — |
| keyword.operator.or.regexp, keyword.control.anchor.regexp | #DDEB88 | — |
| keyword.operator.quantifier.regexp | #d7ba7d | — |
| constant.character, constant.other.option | #9B99FF | — |
| constant.character.escape | #d7ba7d | — |
| entity.name.label | #C8C8C8 | — |
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}!`;
}