Monokai Deuteranopia Colorblind
Publisher: Felipe ZarcoThemes in package: 1
Deep space theme with animated stars, designed for deuteranopia (red-green colorblindness) accessibility using the blue-yellow axis
Deep space theme with animated stars, designed for deuteranopia (red-green colorblindness) accessibility using the blue-yellow axis
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 |
|---|---|---|
| — | #D4E4FF | — |
| comment, punctuation.definition.comment | #6B7D94 | italic |
| comment.block.documentation, comment.block.javadoc | #7E92AB | italic |
| string | #E6C07B | — |
| string.quoted.double, string.template.js, string.template.ts, string.template.* | #E6C07B | bold |
| string.quoted.single | #E6C07B | |
| string.regexp, constant.other.character-class.regexp | #CC79A7 | — |
| constant.character.escape, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end | #D4A0FF | — |
| constant.numeric | #D4A0FF | — |
| constant.language | #D4A0FF | bold |
| constant.character, constant.other | #D4A0FF | — |
| variable.other.constant, variable.other.enummember | #D4A0FF | bold |
| variable | #9CDCFE | — |
| variable.other.object, variable.other.readwrite, support.variable.property.ts, meta.object-literal.key.ts, meta.object-literal.key | #D4E4FF | — |
| variable.language | #56B4E9 | italic |
| variable.parameter | #E5B567 | italic |
| variable.other.property, support.variable.property | #9CDCFE | — |
| keyword | #B28BFF | bold |
| keyword.control | #B28BFF | bold |
| keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.as | #B28BFF | italic bold |
| keyword.operator | #A8C4FF | — |
| keyword.operator.arithmetic | #DCDCAA | — |
| keyword.operator.assignment | #D4E4FF | bold |
| keyword.operator.logical | #B28BFF | bold |
| keyword.operator.comparison | #A8C4FF | bold |
| keyword.operator.new, keyword.operator.delete, keyword.operator.typeof, keyword.operator.instanceof, keyword.operator.expression | #B28BFF | bold |
| keyword.operator.spread | #D4A0FF | — |
| keyword.other.http | #56B4E9 | — |
| storage | #B28BFF | bold |
| storage.type | #56B4E9 | italic bold |
| storage.modifier | #B28BFF | italic |
| entity.name.function | #DCDCAA | — |
| entity.name.function.member, meta.function-call entity.name.function | #DCDCAA | — |
| entity.name.class, entity.name.type.class | #56B4E9 | underline bold |
| entity.other.inherited-class | #56B4E9 | italic underline |
| entity.name.type.interface, entity.name.type.alias | #56B4E9 | italic |
| entity.name.type.enum | #56B4E9 | bold |
| entity.name.namespace, entity.name.type.module | #56B4E9 | — |
| entity.name.type.parameter, meta.type.parameters entity.name.type | #CC79A7 | italic |
| entity.name.tag | #56B4E9 | bold |
| entity.other.attribute-name | #DCDCAA | italic |
| support.class.component.tsx, support.class.component.jsx | #56B4E9 | bold |
| entity.name.label | #E5B567 | — |
| support.function | #DCDCAA | — |
| support.constant | #D4A0FF | — |
| support.type, support.class | #56B4E9 | italic |
| support.other.variable, support.variable | #9CDCFE | — |
| meta.decorator, meta.decorator entity.name.function, punctuation.decorator, storage.type.annotation | #CC79A7 | italic |
| meta.type.annotation, meta.return.type, entity.name.type | #56B4E9 | — |
| punctuation.accessor, meta.brace.round, meta.brace.square, meta.brace.curly, punctuation.separator.comma, punctuation.terminator.statement, punctuation.separator, punctuation.definition.block, punctuation.definition.parameters, punctuation.definition.array | #D4E4FF | — |
| punctuation.definition.string.begin, punctuation.definition.string.end | #E6C07B | — |
| invalid | #0B1026 | bold underline |
| invalid.deprecated | #D4E4FF | italic underline |
| meta.embedded | #D4E4FF | — |
| support.type.property-name.json, meta.structure.dictionary.key.json string.quoted.double.json | #56B4E9 | — |
| meta.structure.dictionary.value.json string.quoted.double.json, meta.structure.dictionary.json string.quoted.double.json | #E6C07B | — |
| entity.name.tag.yaml | #56B4E9 | — |
| support.type.property-name.css, support.type.property-name.scss, support.type.property-name.less | #9CDCFE | — |
| support.constant.property-value.css, support.constant.property-value.scss | #E6C07B | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, entity.name.tag.css | #DCDCAA | — |
| keyword.other.unit.css | #D4A0FF | — |
| entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #CC79A7 | italic |
| entity.name.function.decorator.python, meta.function.decorator.python | #CC79A7 | italic |
| variable.parameter.function.language.special.self.python, variable.parameter.function.language.special.cls.python | #56B4E9 | italic |
| meta.fstring.python | #E6C07B | — |
| entity.name.package.go | #56B4E9 | — |
| storage.modifier.lifetime.rust, entity.name.lifetime.rust | #CC79A7 | italic |
| entity.name.function.macro.rust | #DCDCAA | bold |
| variable.other.normal.shell, variable.other.special.shell, variable.other.positional.shell | #9CDCFE | — |
| meta.diff, meta.diff.header | #6B7D94 | — |
| markup.deleted | #E69F00 | — |
| markup.inserted | #56B4E9 | — |
| markup.changed | #F0E442 | — |
| constant.numeric.line-number.find-in-files - match | #D4A0FFA0 | — |
| entity.name.filename.find-in-files | #E6C07B | — |
| heading.1.markdown, entity.name.section.markdown, punctuation.definition.heading.markdown | #56B4E9 | bold |
| markup.bold.markdown | #E8F0FF | bold |
| markup.italic.markdown | #E8F0FF | italic |
| markup.underline, markup.underline.link.markdown | #56B4E9 | underline |
| markup.inline.raw.string.markdown | #DCDCAA | — |
| markup.fenced_code.block.markdown, markup.raw.block.markdown | #D4E4FF | — |
| markup.quote.markdown | #6B7D94 | italic |
| punctuation.definition.list.begin.markdown | #D4A0FF | — |
| meta.image.inline.markdown, meta.link.inline.markdown | #E6C07B | — |
| meta.separator.markdown | #6B7D94 | — |
| keyword.other.sql, keyword.other.DML.sql | #B28BFF | bold |
| meta.var.expr.js | #D4E4FF | — |
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}!`;
}