Code Green
Publisher: SujanThemes in package: 1
A dark low-constrast theme of subtle greens and other mindfully-picked hues.
A dark low-constrast theme of subtle greens and other mindfully-picked hues.
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 | #439987 | italic |
| variable, string constant.other.placeholder | #21b6f8 | — |
| constant.other.color | #ffffff | — |
| invalid, invalid.illegal | #ff5370 | — |
| keyword, storage.type, storage.modifier | #C792EA | — |
| keyword.control, constant.other.color, punctuation, meta.tag, punctuation.definition.tag, punctuation.separator.inheritance.php, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.section.embedded, keyword.other.template, keyword.other.substitution | #2caf93 | — |
| entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter | #f07178 | — |
| entity.name.function, meta.function-call, variable.function, support.function, keyword.other.special-method | #9b7af4 | bold |
| meta.block variable.other | #ffac8a | — |
| meta.block variable.other | #ffac8a | — |
| support.other.variable, string.other.link | #f07178 | — |
| constant.numeric, constant.language, support.constant, constant.character, constant.escape, variable.parameter, keyword.other.unit, keyword.other | #f4e4dc | — |
| variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node | #ef596f | — |
| string, constant.other.symbol, constant.other.key, entity.other.inherited-class, markup.heading, markup.inserted.git_gutter, meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js | #ffbd49 | — |
| entity.name, support.type, support.class, support.orther.namespace.use.php, meta.use.php, support.other.namespace.php, markup.changed.git_gutter, support.type.sys-types | #a0c566 | — |
| support.type | #B2CCD6 | — |
| source.css support.type.property-name, source.sass support.type.property-name, source.scss support.type.property-name, source.less support.type.property-name, source.stylus support.type.property-name, source.postcss support.type.property-name | #ffcc6b | — |
| text.html.derivtive | #f78c6c | — |
| entity.name.module.js, variable.import.parameter.js, variable.other.class.js | #ff5370 | — |
| variable.language | #ff5370 | italic |
| entity.name.method.js | #82aaff | italic |
| meta.class-method.js entity.name.function.js, variable.function.constructor | #82aaff | — |
| entity.other.attribute-name | #8cd7ae | — |
| text.html.basic entity.other.attribute-name.html, text.html.basic entity.other.attribute-name | #ffcb6b | italic |
| entity.other.attribute-name.class | #7dafe9 | — |
| source.sass keyword.control | #82aaff | — |
| markup.inserted | #c3e88d | — |
| markup.deleted | #ff5370 | — |
| markup.changed | #C792EA | — |
| string.regexp | #ffe770 | — |
| constant.character.escape | #89DDFF | — |
| *url*, *link*, *uri* | — | underline |
| tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #82aaff | italic |
| source.js constant.other.object.key.js string.unquoted.label.js | #ff5370 | italic |
| source.json meta.structure.dictionary.json support.type.property-name.json | #C792EA | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #ffcb6b | — |
| 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 | #f78c6c | — |
| 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 | #ff5370 | — |
| 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 meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #C17E70 | — |
| 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 meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #82aaff | — |
| 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 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 | #f07178 | — |
| 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 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 meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #C792EA | — |
| 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 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 meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #c3e88d | — |
| text.html.markdown, punctuation.definition.list_item.markdown | #eeffff | — |
| text.html.markdown markup.inline.raw.markdown | #C792EA | — |
| text.html.markdown markup.inline.raw.markdown punctuation.definition.raw.markdown | #65737e | — |
| markdown.heading, markup.heading | markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown | #c3e88d | — |
| markup.italic | #f07178 | italic |
| markup.bold, markup.bold string | #f07178 | bold |
| markup.bold markup.italic, markup.italic markup.bold, markup.quote markup.bold, markup.bold markup.italic string, markup.italic markup.bold string, markup.quote markup.bold string | #f07178 | bold |
| markup.underline | #f78c6c | underline |
| markup.quote punctuation.definition.blockquote.markdown | #65737e | — |
| markup.quote | — | italic |
| string.other.link.title.markdown | #82aaff | — |
| string.other.link.description.title.markdown | #C792EA | — |
| constant.other.reference.link.markdown | #ffcb6b | — |
| markup.raw.block | #C792EA | — |
| markup.raw.block.fenced.markdown | #00000050 | — |
| punctuation.definition.fenced.markdown | #00000050 | — |
| markup.raw.block.fenced.markdown, variable.language.fenced.markdown, punctuation.section.class.end | #eeffff | — |
| variable.language.fenced.markdown | #65737e | — |
| meta.separator | #65737e | bold |
| markup.table | #eeffff | — |
| source.go | #82aaff | — |
| storage.type.string.go | #ffcb6b | — |
| keyword.control.go | #dbdc0a | — |
| support.function.go | #f07178 | — |
| keyword.function.go | #fac7be | — |
| keyword.operator.comparison.go | #ffcc6b | — |
| string.quoted.double.shell | #f07178 | — |
| meta.scope.group.shell, source.shell | #ffcc6b | — |
| meta.function.shell | #f07178 | bold |
| punctuation.definition.case-pattern.shell | #fac7be | — |
| string.interpolated.dollar.shell | #82aaff | — |
| meta.scope.case-clause-body.shell | #c3e88d | — |
| meta.scope.case-clause.shell, meta.scope.case-body.shell, meta.scope.case-block.shell, source.shell | #82aaff | — |
| meta.embedded.line.scala | #fac7be | — |
| meta.template.expression.scala | #82aaff | — |
| source.scala, source.haskell | #c3e88d | — |
| constant.other.haskell | #82aaff | — |
| meta.function.type-declaration.haskell, storage.type.haskell | #f07178 | — |
| meta.body.function.definition.cpp | #f07178 | — |
| meta.body.function.definition.cpp | #c3e88d | — |
| meta.parens.cpp | #82aaff | — |
| entity.name.scope-resolution.cpp | #f07178 | — |
| storage.modifier.specifier.const.cpp | #ff5370 | — |
| constant.numeric.css | #82aaff | — |
| keyword.other.unit.percentage.css, keyword.other.unit.px.css, keyword.other.unit.em.css, keyword.other.unit.ch.css, keyword.other.unit.vh.css, keyword.other.unit.vw.css, keyword.other.unit.vmax.css, keyword.other.unit.vmin.css, keyword.other.unit.rem.css | #C792EA | — |
| storage.type.kotlin | #ff5370 | — |
| meta.block.kotlin | #82aaff | — |
| storage.modifier.import.java | #f78c6c | — |
| keyword.other.sql | #f78c6c | — |
| source.sql | #ffcb6b | — |
| constant.other.database-name.sql | #C792EA | — |
| constant.other.table-name.sql | #82aaff | — |
| keyword.control.flow.python | #ff5370 | — |
| source.python | #c3e88d | — |
| meta.function-call.arguments.python | #82aaff | bold |
| storage.type.function.python | #ffcb6b | bold |
| keyword.operator.logical.python | #f78c6c | bold |
| entity.name.function.python | #dbdc0a | bold |
| source.platformio-debug-asm | #dbdc0a | — |
| constant.numeric.dec | #82aaff | — |
| support.directive.asm | #ff5370 | — |
| constant.language.registers.general-purpose | #ff5370 | — |
| source.platformio-debug-asm | #ffcb6b | — |
| constant.numeric.hex | #82aaff | — |
| support.type.asm | #c3e88d | — |
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}!`;
}