D2T Colorful Theme
Publisher: dthanhtoanThemes in package: 2
🌈 D2T Colorful theme for Visual Studio Code
🌈 D2T Colorful theme for Visual Studio Code
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 keyword.codetag.notation, comment.block.documentation keyword, comment.block.documentation storage.type.class, constant.character.escape, constant.character.string.escape, constant.other.symbol.hashkey punctuation.definition.constant.ruby, constant.regexp, entity.other.attribute-name.parent-selector, entity.other.attribute-name.placeholder punctuation, entity.other.attribute-name.pseudo-class punctuation, entity.other.attribute-name.pseudo-element punctuation, keyword, meta.group.double.toml, meta.group.toml, meta.implementation storage.type.objc, meta.interface-or-protocol storage.type.objc, meta.link.reference.def.restructuredtext, meta.object-binding-pattern-variable punctuation.destructuring, meta.selector, meta.string-contents.quoted.double punctuation.definition.variable, punctuation.colon.graphql, punctuation.definition.block.scalar.folded.yaml, punctuation.definition.block.scalar.literal.yaml, punctuation.definition.block.sequence.item.yaml, punctuation.definition.directive.restructuredtext, punctuation.definition.entity.other.inherited-class, punctuation.definition.group.capture.regexp, punctuation.definition.interpolation.begin, punctuation.definition.interpolation.end, punctuation.definition.keyword, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.definition.variable.makefile, punctuation.function.swift, punctuation.section.embedded.begin, punctuation.section.embedded.coffee, punctuation.section.embedded.end source.php, punctuation.section.embedded.end source.ruby, punctuation.section.embedded.end, punctuation.separator.annotation, punctuation.separator.dictionary.key-value, punctuation.separator.hash, punctuation.separator.inheritance, punctuation.separator.key-value.mapping.yaml, punctuation.separator.namespace, punctuation.separator.pointer-access, punctuation.separator.slice, source.groovy storage.type.def, storage.modifier, storage, string.other.link.description, string.other.link.title, string.unquoted.heredoc punctuation.definition.string, support.other.chomping-indicator.yaml | #ee8897 | — |
| constant, entity.name.tag, header, keyword.expressions-and-types.swift, keyword.other.this, markup.heading.markdown punctuation.definition.string.begin, markup.heading.markdown punctuation.definition.string.end, markup.heading, punctuation.definition.constant.restructuredtext, punctuation.separator.key-value, source.shell variable.other, support.constant, support.function.magic, support.variable, variable.language punctuation.definition.variable.php, variable.language, variable.other.constant, variable.other.predefined, variable.other.readwrite.instance.ruby, variable.parameter.function.language.special | #8baef5 | — |
| entity.name.function, fenced_code.block.language, keyword.operator.function.infix, markup.fenced_code.block.markdown punctuation.definition.markdown, markup.inline.raw, markup.inserted, markup.raw.inner.restructuredtext, markup.raw.restructuredtext, meta.assertion.look-ahead.regexp, meta.decorator variable.other.object, meta.decorator variable.other.property, meta.decorator variable.other.readwrite, meta.function-call.object, meta.function-call.php, meta.function-call.static, meta.method-call.java meta.method, meta.method.groovy, support.function.any-method.lua, variable.other.alias.yaml | #efd59e | — |
| comment, meta.diff.header, meta.diff, meta.preprocessor.haskell, meta.separator.markdown, punctuation.definition.comment, string.quoted.docstring.multi.python constant.character.escape, string.quoted.docstring.multi.python punctuation.definition.string.begin, string.quoted.docstring.multi.python punctuation.definition.string.end, string.quoted.docstring.multi, unused.comment, wildcard.comment | #6f748e | — |
| constant.language.empty-list.haskell, constant.other.key.perl, constant.other.symbol.hashkey.ruby, invalid.deprecated, keyword.operator.dereference.java, keyword.operator.navigation.groovy, keyword.operator.other.powershell, keyword.other.statement-separator.powershell, meta.brace.round, meta.export variable.other.readwrite.alias, meta.function-call punctuation, meta.import variable.other.readwrite.alias, meta.paragraph.markdown punctuation.definition.string.begin, meta.paragraph.markdown punctuation.definition.string.end, meta.scope.for-loop.shell punctuation.definition.string.begin, meta.scope.for-loop.shell punctuation.definition.string.end, meta.scope.for-loop.shell string, meta.selectionset.graphql meta.arguments variable, meta.variable.assignment.destructured.object.coffee variable variable, punctuation.definition.arguments.begin, punctuation.definition.arguments.end, punctuation.definition.attribute-selector.begin.bracket.square.scss, punctuation.definition.attribute-selector.end.bracket.square.scss, punctuation.definition.entity.begin, punctuation.definition.entity.end, punctuation.definition.tag.cs, punctuation.definition.type.begin, punctuation.definition.type.end, punctuation.section.embedded.begin.jsx, punctuation.section.embedded.begin.tsx, punctuation.section.embedded.end.jsx, punctuation.section.embedded.end.tsx, punctuation.section.scope.begin, punctuation.section.scope.end, punctuation.separator.list.comma.css, punctuation.terminator.expression.php, storage.modifier.import, storage.type.generic.java, string.template meta.brace, string.template punctuation.accessor, support.type.property-name.css, support.variable.property, variable.other.constant.js, variable.other.constant.ts, variable.other.constant.tsx, variable | #cbd4f6 | — |
| invalid, keyword.operator.negation.regexp, log.error, markup.deleted, markup.error, punctuation.definition.group.assertion.regexp, string.regexp punctuation.definition.string.begin, string.regexp punctuation.definition.string.end | #ee8897 | — |
| comment.block.documentation variable, constant.other.date, constant.other.timestamp, entity.name.type.type-parameter, entity.name.variable.parameter, entity.other.attribute-name, markup.bold, markup.changed, meta.at-rule.function variable, meta.at-rule.mixin variable, meta.function.arguments variable.other.php, meta.import variable.other.readwrite, meta.indexer.mappedtype.declaration entity.name.type, meta.selectionset.graphql meta.arguments.graphql variable.arguments.graphql, meta.type.parameters entity.name.type, meta.variable.assignment.destructured.object.coffee variable, punctuation.definition.group.regexp, variable.parameter | #f6a880 | — |
| constant.character.escape.backslash.regexp, constant.other.character-class.set.regexp, entity.name.directive.restructuredtext, entity.name.filename, log.warning, markup.italic, markup.quote.markdown meta.paragraph.markdown punctuation.definition.string.begin, markup.quote.markdown meta.paragraph.markdown punctuation.definition.string.end, markup.quote, meta.attribute-selector.scss, meta.scope.prerequisites.makefile, meta.selectionset.graphql variable, punctuation.definition.string.begin, punctuation.definition.string.end, string.regexp, string | #a7db94 | — |
| beginning.punctuation.definition.list.markdown, beginning.punctuation.definition.quote.markdown, comment.block.documentation entity.name.type punctuation.definition.bracket, comment.block.documentation entity.name.type, entity.name.class, entity.name.fragment.graphql, entity.name.function.target.makefile, entity.name.section.toml, entity.name.tag.yaml, entity.name.type.class, entity.name.type, entity.other.inherited-class, keyword.primitive-datatypes.swift, keyword.type.cs, markup.underline.link.image, markup.underline.link, meta.protocol-list.objc, meta.return-type.objc, punctuation.definition.character-class.regexp, punctuation.definition.link.restructuredtext, punctuation.support.type.property-name.begin, punctuation.support.type.property-name.end, source.go storage.type, source.groovy storage.type, source.java storage.type, source.powershell entity.other.attribute-name, storage.class.std.rust, storage.type.attribute.swift, storage.type.c, storage.type.core.rust, storage.type.cs, storage.type.groovy, storage.type.haskell, storage.type.objc, storage.type.ocaml, storage.type.php, support, variable.fragment.graphql, variable.other.key.toml | #7ec5e5 | — |
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}!`;
}