Skip to main content
Home Theme VS Code Iqra themes This is a very simple black-blue color themes and long time work comfortable. The color is very eye-catching look like.
VS Code preview Full workbench mockup using this variant's colors and tokenColors.
colors Workbench UI color keys from the theme JSON colors map.
activityBar.activeBackground #4d009b activityBar.background #05001f activityBar.border #2e1979 activityBar.foreground #ffffff activityBar.inactiveForeground #cca8ff activityBarBadge.background #ff0000 tokenColors TextMate scopes and font styles (syntax highlighting rules).
scope foreground fontStyle punctuation.definition.delayed.unison,punctuation.definition.list.begin.unison,punctuation.definition.list.end.unison,punctuation.definition.ability.begin.unison,punctuation.definition.ability.end.unison,punctuation.operator.assignment.as.unison,punctuation.separator.pipe.unison,punctuation.separator.delimiter.unison,punctuation.definition.hash.unison #1e595c — variable.other.generic-type.haskell #d338ff — storage.type.haskell #02db2e — support.variable.magic.python
Shiki preview TypeScript sample highlighted with this variant's colors and tokenColors.
Iqra themes — Iqra themes
activityBarBadge.foreground
#fcf0ff
badge.background #ff0000
badge.foreground #ffffff
breadcrumb.activeSelectionForeground #ffffff
breadcrumb.background #05001f
breadcrumb.focusForeground #ffffff
breadcrumb.foreground #cca8ff
button.background #001028
button.foreground #cca8ff
button.hoverBackground #4d009b
button.secondaryBackground #4d009b
button.secondaryForeground #cca8ff
button.secondaryHoverBackground #130075
checkbox.background #05001f
checkbox.border #00000000
checkbox.foreground #cca8ff
debugExceptionWidget.background #05001f
debugExceptionWidget.border #f150ff
debugToolBar.background #05001f
debugToolBar.border #f150ff
diffEditor.border #444444
diffEditor.insertedTextBackground #9bb95533
diffEditor.removedTextBackground #ff000033
dropdown.background #05001f
dropdown.border #00000000
dropdown.foreground #cca8ff
editor.background #040406
editor.findMatchBackground #2bb61793
editor.findMatchBorder #0000ff00
editor.findMatchHighlightBackground #7cff691c
editor.findMatchHighlightBorder #ff5f5f00
editor.findRangeHighlightBackground #8b61ff34
editor.findRangeHighlightBorder #2e197900
editor.foldBackground #7f40f04d
editor.foreground #8186d7
editor.hoverHighlightBackground #7cff691c
editor.inactiveSelectionBackground #8b61ff34
editor.lineHighlightBackground #844fc414
editor.lineHighlightBorder #10156600
editor.rangeHighlightBackground #37466B
editor.rangeHighlightBorder #2e1979
editor.selectionBackground #8b61ff34
editor.selectionHighlightBackground #7cff691c
editor.selectionHighlightBorder #c0c0c0
editor.wordHighlightBackground #00db7540
editor.wordHighlightBorder #cbcbcb00
editor.wordHighlightStrongBackground #7cff691c
editor.wordHighlightStrongBorder #fd000000
editorBracketMatch.background #ff000038
editorBracketMatch.border #f7bdff
editorCodeLens.foreground #0437ffd3
editorCursor.background #ffffff
editorCursor.foreground #fafdff
editorError.background #9d070000
editorError.border #0019a300
editorError.foreground #857bff
editorGroup.border #204cf7
editorGroup.emptyBackground #040406
editorGroupHeader.border #2e1979
editorGroupHeader.tabsBackground #05001f
editorGroupHeader.tabsBorder #2e1979
editorGutter.addedBackground #00ff04
editorGutter.background #05001f
editorGutter.commentRangeForeground #c5c5c5
editorGutter.deletedBackground #d3d3d3
editorGutter.foldingControlForeground #c5c5c5
editorGutter.modifiedBackground #7887ff
editorHoverWidget.background #000054
editorHoverWidget.border #514cee
editorHoverWidget.foreground #ececec
editorIndentGuide.activeBackground #2e1979
editorIndentGuide.background #2e1979
editorInfo.background #f8a8ff00
editorInfo.border #4490BF00
editorInfo.foreground #ff8e8e
editorLineNumber.activeForeground #165255
editorLineNumber.foreground #cca8ff
editorLink.activeForeground #015396
editorMarkerNavigation.background #2d2d30
editorMarkerNavigationError.background #f48771
editorMarkerNavigationInfo.background #75beff
editorMarkerNavigationWarning.background #cca700
editorOverviewRuler.background #ffdfdf14
editorOverviewRuler.border #2e1979
editorRuler.foreground #2e1979
editorSuggestWidget.background #00004b
editorSuggestWidget.border #1014ff
editorSuggestWidget.foreground #d9d9d9
editorSuggestWidget.highlightForeground #f2e300
editorSuggestWidget.selectedBackground #001794
editorWarning.background #513e0000
editorWarning.border #ffffff00
editorWarning.foreground #ccde00
editorWhitespace.foreground #FFFFFF14
editorWidget.background #05001f
editorWidget.foreground #cccccc
editorWidget.resizeBorder #ffe0e0
focusBorder #2e1979
foreground #cca8ff
gitDecoration.addedResourceForeground #81b88b
gitDecoration.conflictingResourceForeground #6c6cc4
gitDecoration.deletedResourceForeground #c74e39
gitDecoration.ignoredResourceForeground #8c8c8c
gitDecoration.modifiedResourceForeground #e2c08d
gitDecoration.stageDeletedResourceForeground #c74e39
gitDecoration.stageModifiedResourceForeground #e2c08d
gitDecoration.submoduleResourceForeground #8db9e2
gitDecoration.untrackedResourceForeground #73c991
icon.foreground #cca8ff
input.background #05001f
input.border #00000000
input.foreground #cca8ff
input.placeholderForeground #cca8ff
inputOption.activeBackground #e9b8ff66
inputOption.activeBorder #267eba00
inputOption.activeForeground #cca8ff
list.activeSelectionBackground #4d009b
list.activeSelectionForeground #ffffff
list.dropBackground #05001f
list.focusBackground #000158
list.focusForeground #cca8ff
list.highlightForeground #0097fb
list.hoverBackground #4d009b
list.hoverForeground #ffffff
list.inactiveSelectionBackground #4d009b
list.inactiveSelectionForeground #ffffff
listFilterWidget.background #4d009b
listFilterWidget.noMatchesOutline #2e1979
listFilterWidget.outline #1c008000
menu.background #05001f
menu.border #7f00ff
menu.foreground #cca8ff
menu.selectionBackground #4d009b
menu.selectionBorder #ffffff00
menu.selectionForeground #e0a8ff
menu.separatorBackground #2e1979
menubar.selectionBackground #ffffff1a
menubar.selectionBorder #8e8b8b
menubar.selectionForeground #ffffff
merge.commonContentBackground #000551
merge.commonHeaderBackground #383838
merge.currentContentBackground #27403B
merge.currentHeaderBackground #367366
merge.incomingContentBackground #28384B
merge.incomingHeaderBackground #395F8F
minimap.background #040406
minimap.errorHighlight #857bff
minimap.findMatchHighlight #2bb61793
minimap.selectionHighlight #8b61ff34
minimap.warningHighlight #ccde00
minimapGutter.addedBackground #00ff04
minimapGutter.deletedBackground #d3d3d3
minimapGutter.modifiedBackground #7887ff
notificationCenter.border #131343
notificationCenterHeader.background #131343
notificationCenterHeader.foreground #5cff00
notifications.background #02001d
notifications.border #131343
notifications.foreground #c4c4c4
notificationsErrorIcon.foreground #ff0000
notificationsInfoIcon.foreground #00529b
notificationsWarningIcon.foreground #ffd30f
notificationToast.border #31219d
panel.background #05001f
panel.border #6c13d759
panelSection.border #9a7ed759
panelTitle.activeBorder #ff2afc
panelTitle.activeForeground #ff2afc
panelTitle.inactiveForeground #bc78ff99
peekView.border #3f455c
peekViewEditor.background #000e47
peekViewEditor.matchHighlightBackground #ff8f0099
peekViewEditor.matchHighlightBorder #ee931e
peekViewEditorGutter.background #01002e
peekViewResult.background #01002e
peekViewResult.fileForeground #ffffff
peekViewResult.lineForeground #bbbbbb
peekViewResult.matchHighlightBackground #ea5c004d
peekViewResult.selectionBackground #3399ff33
peekViewResult.selectionForeground #ffffff
peekViewTitle.background #1e1e1e
peekViewTitleDescription.foreground #ccccccb3
peekViewTitleLabel.foreground #ffffff
pickerGroup.border #2e1979
pickerGroup.foreground #3794ff
progressBar.background #0e70c0
scrollbar.shadow #2e1979
scrollbarSlider.activeBackground #bfbfbf66
scrollbarSlider.background #79797966
scrollbarSlider.hoverBackground #646464b3
selection.background #4d009b
settings.focusedRowBackground #ffffff07
settings.headerForeground #cca8ff
sideBar.background #040406
sideBar.border #2e1979
sideBar.dropBackground #05001f
sideBar.foreground #7c7eff
sideBarSectionHeader.background #4d009b
sideBarSectionHeader.border #2e1979
sideBarSectionHeader.foreground #cca8ff
sideBarTitle.foreground #cca8ff
statusBar.background #05001f
statusBar.debuggingBackground #01002e
statusBar.debuggingForeground #ffffff
statusBar.foreground #ffffff
statusBar.noFolderBackground #22006d
statusBar.noFolderForeground #cca8ff
statusBarItem.activeBackground #FFFFFF25
statusBarItem.hoverBackground #ffffff1f
statusBarItem.remoteBackground #16825d
statusBarItem.remoteForeground #ffffff
tab.activeBackground #4d009b
tab.activeBorder #ffffff
tab.activeBorderTop #ffffff00
tab.activeForeground #ffffff
tab.border #2e1979
tab.hoverBackground #4d009b
tab.inactiveBackground #05001f
tab.inactiveForeground #cca8ff
terminal.ansiBlack #000000
terminal.ansiBlue #2472c8
terminal.ansiBrightBlack #666666
terminal.ansiBrightBlue #3b8eea
terminal.ansiBrightCyan #29b8db
terminal.ansiBrightGreen #23d18b
terminal.ansiBrightMagenta #d670d6
terminal.ansiBrightRed #f14c4c
terminal.ansiBrightWhite #e5e5e5
terminal.ansiBrightYellow #f5f543
terminal.ansiCyan #11a8cd
terminal.ansiGreen #0dbc79
terminal.ansiMagenta #bc3fbc
terminal.ansiRed #cd3131
terminal.ansiWhite #e5e5e5
terminal.ansiYellow #e5e510
terminal.border #9a7ed759
terminal.foreground #cccccc
terminal.selectionBackground #00076281
terminalCursor.background #7e6cff
terminalCursor.foreground #ff7c7c
textLink.foreground #3794ff
titleBar.activeBackground #05001f
titleBar.activeForeground #9384c9
titleBar.border #2e1979
titleBar.inactiveBackground #05001f
titleBar.inactiveForeground #6f5dee99
tree.indentGuidesStroke #ffffff20
walkThrough.embeddedEditorBackground #00000050
widget.shadow #ebc7ff5c #1e595c
punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python #8186d7 —
variable.parameter.function.language.special.self.python #ffe300 —
storage.modifier.lifetime.rust #8186d7 —
support.function.std.rust #57ff69 —
entity.name.lifetime.rust #ffe300 —
variable.language.rust #1e595c —
support.constant.edge #d338ff —
constant.other.character-class.regexp #1e595c —
keyword.operator.quantifier.regexp #02db2e —
punctuation.definition.string.begin,punctuation.definition.string.end #b9a0ff —
variable.parameter.function #8186d7 —
comment markup.link #545860 —
markup.changed.diff #ffe300 —
meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff #57ff69 —
markup.inserted.diff #b9a0ff —
markup.deleted.diff #1e595c —
meta.function.c,meta.function.cpp #1e595c —
punctuation.section.block.begin.bracket.curly.cpp,punctuation.section.block.end.bracket.curly.cpp,punctuation.terminator.statement.c,punctuation.section.block.begin.bracket.curly.c,punctuation.section.block.end.bracket.curly.c,punctuation.section.parens.begin.bracket.round.c,punctuation.section.parens.end.bracket.round.c,punctuation.section.parameters.begin.bracket.round.c,punctuation.section.parameters.end.bracket.round.c #8186d7 —
punctuation.separator.key-value #8186d7 —
keyword.operator.expression.import #57ff69 —
support.constant.math #ffe300 —
support.constant.property.math #02db2e —
variable.other.constant #ffe300 —
storage.type.annotation.java, storage.type.object.array.java #ffe300 —
punctuation.section.block.begin.java,punctuation.section.block.end.java,punctuation.definition.method-parameters.begin.java,punctuation.definition.method-parameters.end.java,meta.method.identifier.java,punctuation.section.method.begin.java,punctuation.section.method.end.java,punctuation.terminator.java,punctuation.section.class.begin.java,punctuation.section.class.end.java,punctuation.section.inner-class.begin.java,punctuation.section.inner-class.end.java,meta.method-call.java,punctuation.section.class.begin.bracket.curly.java,punctuation.section.class.end.bracket.curly.java,punctuation.section.method.begin.bracket.curly.java,punctuation.section.method.end.bracket.curly.java,punctuation.separator.period.java,punctuation.bracket.angle.java,punctuation.definition.annotation.java,meta.method.body.java #8186d7 —
storage.modifier.import.java,storage.type.java,storage.type.generic.java #ffe300 —
keyword.operator.instanceof.java #d338ff —
meta.definition.variable.name.java #1e595c —
keyword.operator.logical #ff8d8d —
keyword.operator.bitwise #ff8d8d —
keyword.operator.channel #ff8d8d —
support.constant.property-value.scss,support.constant.property-value.css #02db2e —
keyword.operator.css,keyword.operator.scss,keyword.operator.less #ff8d8d —
support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss #02db2e —
punctuation.separator.list.comma.css #8186d7 —
support.constant.color.w3c-standard-color-name.css #02db2e —
support.type.vendored.property-name.css #ff8d8d —
support.module.node,support.type.object.module,support.module.node #ffe300 —
entity.name.type.module #ffe300 —
variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node #1e595c —
support.constant.json #02db2e —
keyword.operator.expression.instanceof, keyword.operator.new, keyword.operator.ternary, keyword.operator.optional, keyword.operator.expression.keyof #d338ff —
support.type.object.console #1e595c —
support.variable.property.process #02db2e —
entity.name.function,support.function.console #57ff69 —
keyword.operator.misc.rust #8186d7 —
keyword.operator.sigil.rust #d338ff —
keyword.operator.delete #d338ff —
support.type.object.dom #ff8d8d —
support.variable.dom,support.variable.property.dom #1e595c —
keyword.operator.arithmetic,keyword.operator.comparison,keyword.operator.decrement,keyword.operator.increment,keyword.operator.relational #ff8d8d —
keyword.operator.assignment.c,keyword.operator.comparison.c,keyword.operator.c,keyword.operator.increment.c,keyword.operator.decrement.c,keyword.operator.bitwise.shift.c,keyword.operator.assignment.cpp,keyword.operator.comparison.cpp,keyword.operator.cpp,keyword.operator.increment.cpp,keyword.operator.decrement.cpp,keyword.operator.bitwise.shift.cpp #d338ff —
punctuation.separator.delimiter #8186d7 —
punctuation.separator.c,punctuation.separator.cpp #d338ff —
support.type.posix-reserved.c,support.type.posix-reserved.cpp #ff8d8d —
keyword.operator.sizeof.c,keyword.operator.sizeof.cpp #d338ff —
variable.parameter.function.language.python #02db2e —
support.type.python #ff8d8d —
keyword.operator.logical.python #d338ff —
variable.parameter.function.python #02db2e —
punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python #8186d7 —
meta.function-call.generic.python #57ff69 —
constant.character.format.placeholder.other.python #02db2e —
keyword.operator.assignment.compound #d338ff —
keyword.operator.assignment.compound.js,keyword.operator.assignment.compound.ts #ff8d8d —
entity.name.namespace #ffe300 —
variable.language #ffe300 —
token.variable.parameter.java #8186d7 —
import.storage.java #ffe300 —
token.package.keyword #d338ff —
entity.name.function, meta.require, support.function.any-method, variable.function #57ff69 —
entity.name.type.namespace #ffe300 —
support.class, entity.name.type.class #ffe300 —
entity.name.class.identifier.namespace.type #ffe300 —
entity.name.class, variable.other.class.js, variable.other.class.ts #ffe300 —
variable.other.class.php #1e595c —
control.elements, keyword.operator.less #02db2e —
keyword.other.special-method #57ff69 —
keyword.operator.expression.delete,keyword.operator.expression.in,keyword.operator.expression.of,keyword.operator.expression.instanceof,keyword.operator.new,keyword.operator.expression.typeof,keyword.operator.expression.void #d338ff —
token.storage.type.java #ffe300 —
support.type.property-name #8186d7 —
support.constant.property-value #8186d7 —
support.constant.font-name #02db2e —
entity.other.inherited-class #ffe300 —
constant.other.symbol #ff8d8d —
punctuation.definition.constant #02db2e —
entity.other.attribute-name #02db2e —
entity.other.attribute-name.id #57ff69 normal
entity.other.attribute-name.class.css #02db2e normal
markup.heading punctuation.definition.heading, entity.name.section #57ff69 —
keyword.other.unit #1e595c —
markup.bold,todo.bold #02db2e —
punctuation.definition.bold #ffe300 —
markup.italic, punctuation.definition.italic,todo.emphasis #d338ff —
entity.name.section.markdown #1e595c —
punctuation.definition.heading.markdown #1e595c —
punctuation.definition.list.begin.markdown #1e595c —
markup.heading.setext #8186d7 —
punctuation.definition.bold.markdown #02db2e —
markup.inline.raw.markdown #b9a0ff —
markup.inline.raw.string.markdown #b9a0ff —
punctuation.definition.list.markdown #1e595c —
punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown #1e595c —
beginning.punctuation.definition.list.markdown #1e595c —
punctuation.definition.metadata.markdown #1e595c —
markup.underline.link.markdown,markup.underline.link.image.markdown #d338ff —
string.other.link.title.markdown,string.other.link.description.markdown #57ff69 —
constant.character.escape #ff8d8d —
punctuation.section.embedded, variable.interpolation #1e595c —
punctuation.section.embedded.begin,punctuation.section.embedded.end #d338ff —
invalid.illegal.bad-ampersand.html #8186d7 —
invalid.deprecated #ffffff —
invalid.unimplemented #ffffff —
source.json meta.structure.dictionary.json > string.quoted.json #1e595c —
source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string #1e595c —
source.json meta.structure.dictionary.json > value.json > string.quoted.json,source.json meta.structure.array.json > value.json > string.quoted.json,source.json meta.structure.dictionary.json > value.json > string.quoted.json > punctuation,source.json meta.structure.array.json > value.json > string.quoted.json > punctuation #b9a0ff —
source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json #ff8d8d —
support.type.property-name.json #1e595c —
support.type.property-name.json punctuation #1e595c —
text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade #d338ff —
text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade #d338ff —
support.other.namespace.use.php,support.other.namespace.use-as.php,support.other.namespace.php,entity.other.alias.php,meta.interface.php #ffe300 —
keyword.operator.error-control.php #d338ff —
keyword.operator.type.php #d338ff —
punctuation.section.array.begin.php #8186d7 —
punctuation.section.array.end.php #8186d7 —
invalid.illegal.non-null-typehinted.php #f44747 —
storage.type.php,meta.other.type.phpdoc.php,keyword.other.type.php,keyword.other.array.phpdoc.php #ffe300 —
meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php #57ff69 —
punctuation.definition.parameters.begin.bracket.round.php,punctuation.definition.parameters.end.bracket.round.php,punctuation.separator.delimiter.php,punctuation.section.scope.begin.php,punctuation.section.scope.end.php,punctuation.terminator.expression.php,punctuation.definition.arguments.begin.bracket.round.php,punctuation.definition.arguments.end.bracket.round.php,punctuation.definition.storage-type.begin.bracket.round.php,punctuation.definition.storage-type.end.bracket.round.php,punctuation.definition.array.begin.bracket.round.php,punctuation.definition.array.end.bracket.round.php,punctuation.definition.begin.bracket.round.php,punctuation.definition.end.bracket.round.php,punctuation.definition.begin.bracket.curly.php,punctuation.definition.end.bracket.curly.php,punctuation.definition.section.switch-block.end.bracket.curly.php,punctuation.definition.section.switch-block.start.bracket.curly.php,punctuation.definition.section.switch-block.begin.bracket.curly.php,punctuation.definition.section.switch-block.end.bracket.curly.php #8186d7 —
support.constant.core.rust #02db2e —
support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php #02db2e —
entity.name.goto-label.php,support.other.php #57ff69 —
keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php #ff8d8d —
keyword.operator.regexp.php #d338ff —
keyword.operator.comparison.php #ff8d8d —
keyword.operator.heredoc.php,keyword.operator.nowdoc.php #d338ff —
meta.function.decorator.python #57ff69 —
support.token.decorator.python,meta.function.decorator.identifier.python #ff8d8d —
function.parameter #8186d7 —
function.parameter.ruby, function.parameter.cs #8186d7 —
constant.language.symbol.ruby #ff8d8d —
inline-color-decoration rgb-value #02db2e —
support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx #ffe300 —
block.scope.end,block.scope.begin #8186d7 —
entity.name.variable.local.cs #1e595c —
token.error-token #f44747 —
token.debug-token #d338ff —
punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded #d338ff —
meta.template.expression #8186d7 —
keyword.operator.module #d338ff —
support.type.type.flowtype #57ff69 —
support.type.primitive #ffe300 —
meta.property.object #1e595c —
variable.parameter.function.js #1e595c —
keyword.other.template.begin #b9a0ff —
keyword.other.template.end #b9a0ff —
keyword.other.substitution.begin #b9a0ff —
keyword.other.substitution.end #b9a0ff —
keyword.operator.assignment #ff8d8d —
keyword.operator.assignment.go #ffe300 —
keyword.operator.arithmetic.go, keyword.operator.address.go #d338ff —
entity.name.package.go #ffe300 —
support.type.prelude.elm #ff8d8d —
support.constant.elm #02db2e —
punctuation.quasi.element #d338ff —
constant.character.entity #1e595c —
entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class #ff8d8d —
entity.global.clojure #ffe300 —
meta.symbol.clojure #1e595c —
constant.keyword.clojure #ff8d8d —
meta.arguments.coffee, variable.parameter.function.coffee #1e595c —
meta.scope.prerequisites.makefile #1e595c —
storage.modifier.import.groovy #ffe300 —
meta.method.groovy #57ff69 —
meta.definition.variable.name.groovy #1e595c —
meta.definition.class.inherited.classes.groovy #b9a0ff —
support.variable.semantic.hlsl #ffe300 —
support.type.texture.hlsl, support.type.sampler.hlsl, support.type.object.hlsl, support.type.object.rw.hlsl, support.type.fx.hlsl, support.type.object.hlsl #d338ff —
text.variable, text.bracketed #1e595c —
support.type.swift, support.type.vb.asp #ffe300 —
entity.name.function.xi #ffe300 —
entity.name.class.xi #ff8d8d —
constant.character.character-class.regexp.xi #1e595c —
constant.regexp.xi #d338ff —
keyword.control.xi #ff8d8d —
beginning.punctuation.definition.quote.markdown.xi #b9a0ff —
beginning.punctuation.definition.list.markdown.xi #545860 —
constant.character.xi #57ff69 —
constant.other.color.rgb-value.xi #ffffff —
punctuation.definition.tag.xi #545860 —
entity.name.label.cs, entity.name.scope-resolution.function.call, entity.name.scope-resolution.function.definition #ffe300 —
entity.name.label.cs, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown #1e595c —
meta.brace.square #8186d7 —
comment, punctuation.definition.comment #545860 italic
markup.quote.markdown #545860 —
punctuation.definition.block.sequence.item.yaml #8186d7 —
constant.language.symbol.elixir #ff8d8d —
entity.other.attribute-name.js,entity.other.attribute-name.ts,entity.other.attribute-name.jsx,entity.other.attribute-name.tsx,variable.parameter,variable.language.super — italic
comment.line.double-slash,comment.block.documentation — italic
keyword.control.import.python,keyword.control.flow.python — italic
markup.italic.markdown — italic
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 } !` ;
}
fetchUser.ts
index.ts
README.md
src
components
fetchUser.ts
src
components
fetchUser.ts
fetchUser 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Problems1
Output
Debug Console
Terminal
Ports
~/my-project $ pnpm dev
▲ Next.js ready on http://localhost:3000
✓ compiled client and server successfully in 412ms
wait - compiling /theme/vscode...
main*
Button.tsx
31
~/my-project
$
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 } !` ;
}
Iqra themes | Coding Theme