DecodeLabs nucleus theme
Publisher: Decode LabsThemes in package: 1
Easy on the eyes colour theme for web dev
Easy on the eyes colour theme for web dev
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 |
|---|---|---|
| constant.other.color | #ffffff | — |
| invalid, invalid.illegal | #FF5370 | — |
| keyword, storage.modifier, support.function.construct.output, support.function.general.tex, support.function.be.latex, support.function.section.latex, support.function.textit.latex | #80d746ea | — |
| keyword.control, support.function.construct.output, support.function.general.tex, support.function.be.latex, support.function.section.latex, support.function.textit.latex | — | bold |
| storage, storage.type.function, storage.type.class, storage.type.interface, storage.type.trait, meta.var storage.type | #BEB2A0 | |
| entity.name.function, support.function.magic, meta.function-call, meta.method-call, meta.use constant.other, keyword.other.get, keyword.other.set | #8fcbff | — |
| meta.function entity.name.function | — | bold |
| meta.function support.function.magic | — | bold italic |
| storage.type, keyword.other.type, keyword.type | #5affe6df | italic |
| entity.name.type.namespace, support.other.namespace, support.other.namespace storage.type | #49a89ae6 | — |
| support.other.namespace variable.language.namespace | #eae088c8 | — |
| support.class, entity.name.type, entity.other.inherited-class, entity.other.alias, meta.interface | #5affe6df | — |
| entity.other.alias | — | italic |
| entity.name.type.class, entity.name.type.interface, entity.name.type.trait | #a9d7ff | underline |
| punctuation, keyword.operator, meta.brace | #868e90 | — |
| punctuation.separator.inheritance | #868e9094 | — |
| punctuation.section.embedded | #ea7b7b | bold |
| keyword.operator.type.php, keyword.control.as, keyword.other.use-as, keyword.other.use-insteadof, storage.type.property, keyword.operator.new, keyword.other.new | #eae088da | — |
| constant, support.constant, support.type.builtin, support.type.primitive, variable.parameter.definition.label.latex | #dbace8 | — |
| constant.other | #fd7acd | — |
| constant.other, constant.character.escape, variable.parameter.definition.label.latex | — | bold |
| comment, punctuation.definition.comment | #60554a | bold |
| comment keyword | #fd7acde1 | bold |
| variable, string constant.other.placeholder | #ced4da | — |
| variable.language.this, keyword.other.this | #abdad3 | italic |
| punctuation.definition.variable | #a2a8af | — |
| support.other.variable, string.other.link, markup.underline.link | #d0bbef | — |
| source.shell variable, variable.other.env | #d4c290 | — |
| punctuation.definition.string | #85625B | — |
| string.quoted, meta.attribute-selector, source.env | #ff9494 | — |
| string.regexp | #eaac8d | — |
| keyword.control.anchor.regexp | #fdf3ef | — |
| string.regexp keyword | #fecccc | — |
| constant.other.character-class.regexp, keyword.operator.quantifier.regexp, constant.other.character-class.range.regexp | #86e1efc7 | — |
| constant.other.character-class.range.regexp | #eae188 | — |
| string.template, string.other.link.title, string.other.link.description | #f4c3aa | — |
| meta.object-literal.key, meta.object-literal.key string.quoted, support.type.property-name.json, entity.name.tag.yaml, entity.name.function.neon, support.other.neon | #b2d7d7c2 | — |
| entity.name.variable.parameter.php, variable.parameter.function.latex | #aec29be9 | — |
| source.neon, string.unquoted.plain, string.quoted.single.yaml, string.quoted.double.yaml, string.quoted.single.neon, string.quoted.double.neon, meta.structure.dictionary string.quoted.double | #d4c076 | — |
| keyword.preprocessor | #bda241 | bold |
| entity.name.tag.css | #5affe6 | — |
| keyword.other.unit | #eae188 | — |
| entity.other.attribute-name.class, entity.other.attribute-name | #ffc277 | — |
| entity.other.attribute-name.pseudo-class | #8fcbff | italic |
| entity.name.tag.reference | #6adc40 | italic |
| source.css variable | #ed6dbe | — |
| punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html | #d2c4b5 | — |
| entity.name.tag | #b09b7c | — |
| meta.attribute, meta.attribute entity.other.attribute-name | #5affe6 | — |
| meta.attribute string.quoted | #f1bdff | — |
| constant.other.rgb-value | #b79d7e | — |
| markup.heading | #8fcbff | bold |
| markup.bold | #f1bdff | bold |
| markup.italic | #f1bdff | italic |
| markup.quote | #5affe6 | — |
| markup.list | #ab9067 | — |
| markup.raw.block, markup.inline.raw.string, markup.fenced_code.block | #ff9494 | — |
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}!`;
}