Phosphorus Minor
Publisher: adamsomeThemes in package: 1
Phosphorus Minor
Phosphorus Minor
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 |
|---|---|---|
| source, text.html | #2ba151 | — |
| emphasis | — | italic |
| strong | — | bold |
| header | #3ae73a | — |
| *url*, *link*, *uri* | — | underline |
| invalid | #ef4444 | — |
| punctuation, meta.embedded, source.js, source.ts, punctuation.section.embedded.begin.tsx, punctuation.section.embedded.end.tsx, punctuation.section.embedded.begin.jsx, punctuation.section.embedded.end.jsx | #037223 | — |
| comment, punctuation.definition.comment, unused.comment, wildcard.comment | #57534e | italic |
| comment keyword.codetag.notation, comment.block.documentation keyword, comment.block.documentation storage.type.class, comment.block.documentation storage.type.class punctuation | #bfcd92c0 | italic |
| comment.block.documentation variable, comment.block.documentation variable.other | #037223 | italic |
| constant, constant.numeric, constant.language, support.constant, meta.preprocessor.numeric, keyword.other.unit | #3ae73a | — |
| string, meta.preprocessor.string | #3ae73a | — |
| constant.character, constant.regexp | #bfcd92 | — |
| punctuation.section.embedded, meta.string-contents.quoted.double punctuation.definition.variable, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.definition.interpolation.begin.bracket, punctuation.definition.interpolation.end.bracket, punctuation.definition.variable.makefile, string.interpolated punctuation.definition.string.begin, string.interpolated punctuation.definition.string.end | #7e9e83 | — |
| string.regexp | #95c8b1 | — |
| punctuation.definition.group.regexp, punctuation.definition.group.assertion.regexp, support.other.parenthesis.regexp | #037223 | — |
| punctuation.definition.character-class.regexp, punctuation.character.set.begin.regexp, punctuation.character.set.end.regexp, constant.character.character-class.regexp, constant.other.character-class.set.regexp, constant.other.character-class.regexp, constant.character.set.regexp | #2ba151 | — |
| keyword.operator.quantifier.regexp | #2ba151 | — |
| string.regexp keyword.other | #037223 | — |
| storage, meta.implementation storage.type.objc, meta.interface-or-protocol storage.type.objc, source.groovy storage.type.def | #73db8a | — |
| entity.name.type.class, support.class, keyword.primitive-datatypes.swift, storage.type.attribute.swift, storage.type.objc, meta.protocol-list.objc, meta.return-type.objc, source.go storage.type, keyword.struct.go, keyword.interface.go, storage.type.c, keyword.type.cs, storage.type.cs, storage.type.generic.cs, storage.type.modifier.cs, storage.type.variable.cs, storage.type.groovy, source.groovy storage.type, storage.type.php, storage.type.haskell, storage.type.ocaml, source.java storage.type, storage.type.core.rust, storage.class.std.rust, source.powershell entity.other.attribute-name, meta.type.cast.expr, meta.type.new.expr, support.constant.math, support.constant.dom, support.constant.json, entity.other.inherited-class | #7e9e83 | — |
| entity.name.type.interface, support.interface, support.type, meta.return-type, meta.return.type, meta.type.name, meta.cast, meta.type.annotation, keyword.primitive-datatypes.swift, storage.type.attribute.swift, storage.type.objc, meta.protocol-list.objc, meta.return-type.objc, source.go storage.type, keyword.struct.go, keyword.interface.go, storage.type.c, keyword.type.cs, storage.type.cs, storage.type.generic.cs, storage.type.modifier.cs, storage.type.variable.cs, storage.type.groovy, source.groovy storage.type, storage.type.php, storage.type.haskell, storage.type.ocaml, source.java storage.type, storage.type.core.rust, storage.class.std.rust, source.powershell entity.other.attribute-name, meta.type.cast.expr, meta.type.new.expr, support.constant.math, support.constant.dom, support.constant.json, entity.other.inherited-class | #7e9e83 | — |
| variable.language.this, variable.language.super, variable.this, variable.language.special.self, variable.parameter.function.language.special.self, keyword.other.this, keyword.expressions-and-types.swift | #73db8a | — |
| keyword, punctuation.definition.keyword | #73db8a | — |
| keyword.operator | #73db8a | — |
| keyword.operator.ternary | #73db8a | — |
| variable.language, keyword.control.new, keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof, keyword.operator.logical.python, meta.preprocessor, meta.diff.header, meta.selector | #73db8a | — |
| keyword.control, keyword.control punctuation.definition.keyword | #73db8a | — |
| keyword.import, keyword.package, keyword.control.directive, keyword.control.export, keyword.control.import, keyword.other.import, keyword.other.package, meta.import keyword.control, support.type.object.module | #73db8a | — |
| storage.modifier.import.java, storage.modifier.package.java, variable.language.wildcard.java | #7e9e83 | — |
| entity.name.function, entity.name.method, entity.name.static.function-call, support.function, support.constant.handlebars, variable.function, keyword.operator.function.infix, meta.function-call.generic, meta.function-call.object, meta.function-call.static, meta.function.python, meta.function-call.php, meta.method-call.java meta.method, meta.method.groovy, support.function.any-method.lua, entity.name.function.go | #46b191 | — |
| entity.name.variable.parameter, variable.parameter, meta.function.arguments variable.other.php, meta.selectionset.graphql meta.arguments.graphql variable.arguments.graphql, meta.at-rule.function variable, meta.at-rule.mixin variable | #2ba151 | — |
| meta.decorator entity.name.function, storage.type.annotation, meta.decorator punctuation.decorator, meta.decorator variable.other.readwrite, meta.decorator variable.other.property, meta.decorator variable.other.object | #7e9e83 | — |
| meta.parameter.type.variable, support.variable, variable.name, variable.other, variable, string.constant.other.placeholder, meta.object-literal.key, meta.decorator.ts meta.object.member, constant.other.key.perl | #2ba151 | — |
| meta.object-binding-pattern-variable variable.object.property, meta.import variable.other.readwrite, meta.export variable.other.readwrite | #037223 | — |
| meta.import variable.other.readwrite.alias, meta.export variable.other.readwrite.alias, meta.variable.assignment.destructured.object.coffee variable variable | #2ba151 | — |
| meta.export.default variable.other.readwrite | #2ba151 | — |
| entity.name.function.target.makefile, entity.name.section.toml, variable.other.key.toml, entity.name.tag.yaml | #95c8b1 | — |
| constant.other.date, constant.other.timestamp | #3ae73a | — |
| variable.other.alias.yaml | #46b191 | — |
| source.json meta.structure.dictionary.json support.type.property-name.json | #95c8b1 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #6cc1a5 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #73db8a | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #2ba151 | — |
| entity.name.tag | #46b191 | bold |
| tag.close entity.name.tag | #2f7c64 | — |
| entity.other.attribute-name, meta.tag.inline.any.html, meta.tag.sgml | #2ba151 | — |
| entity.other.attribute-name.id | #bfcd92 | — |
| punctuation.definition.entity.html | #bfcd92 | — |
| entity.other.attribute-name.pseudo-class, entity.other.attribute-name.pseudo-element | #037223 | — |
| entity.other.attribute-name.parent-selector | #73db8a | — |
| meta.function-call.arguments | #2ba151 | — |
| meta.selectionset.graphql variable | #3ae73a | — |
| meta.selectionset.graphql meta.arguments variable | #2ba151 | — |
| source.shell support.function.builtin | #7e9e83 | — |
| source.shell support.function.builtin | #46b191 | — |
| punctuation.definition.variable.shell, source.shell variable.other | #7e9e83 | — |
| string.interpolated.backtick.shell, string.interpolated.dollar.shell | #95c8b1 | — |
| meta.scope.for-loop.shell punctuation.definition.string.begin, meta.scope.for-loop.shell punctuation.definition.string.end, meta.scope.for-loop.shell string | #2ba151 | — |
| meta.scope.prerequisites | #7e9e83 | — |
| entity.name.function.target | #3ae73a | bold |
| meta.function-parameters.lisp | #46b191 | — |
| markup.underline | — | underline |
| markup.bold | #bfcd92 | bold |
| markup.italic | — | italic |
| markup.heading, entity.name.section | #3ae73a | bold |
| meta.link.reference.def.restructuredtext, punctuation.definition.directive.restructuredtext, string.other.link.description, string.other.link.title | #73db8a | underline |
| markup.underline.link, markup.underline.link.image | #037223 | — |
| markup.inline.raw, markup.raw.restructuredtext | #95c8b1 | — |
| fenced_code.block.language, markup.raw.inner.restructuredtext, markup.fenced_code.block.markdown punctuation.definition.markdown | #95c8b1 | — |
| entity.name.directive.restructuredtext, markup.quote | #3ae73a | — |
| beginning.punctuation.definition.list.markdown, beginning.punctuation.definition.quote.markdown, punctuation.definition.link.restructuredtext, markup.punctuation.quote.beginning, markup.punctuation.list.beginning | #3ae73a | — |
| meta.separator.markdown | #037223 | — |
| punctuation.definition.constant.restructuredtext | #3ae73a | — |
| markup.inserted | #95c8b1 | — |
| markup.deleted | #ef4444 | — |
| markup.changed | #73db8a | — |
| source.go entity.name.import | #3ae73a | — |
| source.go entity.name.type | #2ba151 | — |
| keyword.control.cucumber.table | #46b191 | — |
| metatag.php | #46b191 | — |
| support.function.git-rebase | #95c8b1 | — |
| constant.sha.git-rebase | #3ae73a | — |
TypeScript sample highlighted with this variant's colors and tokenColors.
Loading...
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}!`;
}
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}!`;
}