Next Js Theme
Publisher: Shayan Ali JalbaniThemes in package: 1
Hi, I created this nextjs theme for you developers.
Hi, I created this nextjs theme for you developers.
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 | #888888 | — |
| comment.block.documentation, comment.block.documentation variable.other | #888888 | — |
| comment.block.documentation entity.name.type | #43AAF9 | — |
| comment.block.documentation storage.type | #DCE3EA | — |
| string, punctuation.definition.string.template | #5BD1B9 | — |
| constant.numeric | #FAC760 | — |
| constant.language | #43AAF9 | — |
| constant.character, constant.other | #43AAF9 | — |
| variable.language.this | #43AAF9 | — |
| keyword, keyword.operator.new, storage.modifier.async, keyword.operator.less | #DD4F7D | |
| keyword.operator | #EFEFEF | — |
| punctuation | #EFEFEF | — |
| punctuation.definition.comment | #888888 | — |
| punctuation.definition.tag | #DCE3EA | — |
| string.quoted punctuation.definition.string | #5BD1B9 | — |
| string.regexp, string.regexp punctuation.definition.string | #5BD1B9 | — |
| storage | #43AAF9 | — |
| storage.type | #DD4F7D | |
| entity.name.class | #43AAF9 | — |
| entity.name.function, meta.require, support.function.any-method, variable.function, support.function.builtin.python, meta.function-call.generic.python | #43AAF9 | |
| keyword.operator.assignment, keyword.operator.arithmetic, keyword.operator.bitwise, keyword.operator.relational, keyword.operator.increment, keyword.operator.decrement, keyword.operator.logical, keyword.operator.comparison, keyword.operator.ternary, keyword.operator.expression | #43AAF9 | — |
| variable.parameter | #DCE3EA | — |
| source.css.scss, source.css | #5BD1B9 | — |
| entity.other.attribute-name | #FAC760 | — |
| support.function, support.variable.dom | #FAC760 | — |
| support.constant | #43AAF9 | — |
| support.type | #DCE3EA | — |
| support.class | #5BD1B9 | — |
| invalid | #E34234 | — |
| invalid.deprecated | #E34234 | — |
| invalid.illegal | #DCE3EA | — |
| meta.diff, meta.diff.header | #718493 | — |
| markup.deleted | #E61F44 | — |
| markup.inserted | #A6E22E | — |
| markup.changed | #FAC760 | — |
| constant.numeric.line-number.find-in-files - match | — | — |
| entity.name.filename.find-in-files | #E6DB74 | — |
| keyword.other | #B0BEC5 | — |
| meta.property-value, support.constant.property-value, constant.other.color | #9FBDE0 | — |
| meta.property-value punctuation.separator.key-value | #DCE3EA | — |
| keyword.other.use, keyword.other.function.use, keyword.other.namespace, keyword.other.new, keyword.other.special-method, keyword.other.unit, keyword.other.use-as | #DD4F7D | — |
| meta.use support.class.builtin, meta.other.inherited-class support.class.builtin | #DD4F7D | — |
| variable.other | #DCE3EA | — |
| meta.object-literal.key | #DD4F7D | — |
| variable.parameter.function.coffee | #9FBDE0 | — |
| markup.deleted.git_gutter | #E61F44 | — |
| markup.inserted.git_gutter | — | — |
| markup.changed.git_gutter | #FAC760 | — |
| meta.template.expression | #9FBDE0 | — |
| variable.other.constant.property, keyword.operator.ternary, keyword.operator.expression.typeof | #B267E6 | — |
| entity.name.type, support.type.python | #FAC760 | — |
| token.info-token | #6796E6 | — |
| token.warn-token | #CD9731 | — |
| token.error-token | #F44747 | — |
| token.debug-token | #B267E6 | — |
| entity.name.tag.tsx, entity.name.tag.js.jsx, entity.name.tag.html, entity.name.tag.xml, entity.name.tag.script.html.vue, entity.name.tag.template.html.vue, entity.name.tag.style.html.vue, entity.name.tag.style.html.vue, entity.name.tag.script.html, entity.name.tag.template.html, entity.name.tag.style.html, entity.name.tag.block.any.html | #43AAF9 | — |
| support.class.component.tsx, support.class.component.jsx | #DD4F7D | — |
| support.type.primitive.tsx, support.type.primitive.ts | #43AAF9 | — |
| storage.modifier.tsx | #DD4F7D | — |
| entity.other.inherited-class.tsx | #FAC760 | — |
| meta.object.member variable.other.readwrite.tsx | #DCE3EA | — |
| meta.structure.dictionary.json string.quoted.double.json | #DCE3EA | — |
| meta.structure.dictionary.value.json string.quoted.double.json | #5BD1B9 | — |
| meta.structure.dictionary.json, punctuation.definition.string | #5BD1B9 | — |
| meta.structure.dictionary.json, support.type.property-name.json | #DD4F7D | — |
| punctuation.definition.list.begin.markdown, punctuation.definition.list.begin.mdx, punctuation.definition.list.end.markdown, punctuation.definition.list.end.mdx, punctuation.definition.quote.begin.markdown, punctuation.definition.quote.begin.mdx, punctuation.definition.quote.end.markdown, punctuation.definition.quote.end.mdx, meta.separator.markdown, meta.separator.mdx, markup.inline.raw.string.markdown, markup.raw.code.text.mdx | #FAC760 | — |
| entity.name.section.markdown, entity.name.section.mdx | #43AAF9 | — |
| punctuation.definition.heading.markdown, punctuation.definition.heading.mdx | #DD4F7D | — |
| markup.raw.inline.markdown, markup.raw.inline.mdx | #9FBDE0 | — |
| punctuation.definition..markdown, punctuation.definition..mdx, punctuation.definition.italic.markdown, punctuation.definition.italic.mdx, punctuation.definition.entity | #DD4F7D | — |
| punctuation.definition.string.begin.markdown, punctuation.definition.string.begin.mdx, punctuation.definition.string.end.markdown, punctuation.definition.string.end.mdx | #DD4F7D | — |
| punctuation.definition.metadata.markdown, punctuation.definition.metadata.mdx | #DD4F7D | — |
| markup.underline.link.markdown, markup.underline.link.image.markdown, string.other.link.destination.mdx, meta.image.inline.markdown, meta.image.inline.mdx | #DD4F7D | — |
| markup..markdown, string.other.strong.asterisk.mdx, markup.italic.markdown, markup.italic.mdx | #DD4F7D | — |
| markup.italic.markdown, markup.italic.mdx | — | — |
| markup..markdown, markup..mdx | — | — |
| markup.raw.block.markdown, markup.raw.block.mdx | #9FBDE0 | — |
| keyword.other.rust | #B267E6 | — |
| keyword.other.fn.rust | #DD4F7D | — |
| punctuation.section.embedded.begin.php, keyword.other.class.php | #DD4F7D | — |
| support.class.php | #DCE3EA | — |
| meta.use.php | #5BD1B9 | — |
| keyword.other.definition.ini | #43AAF9 | — |
| support.type.primitive.prisma | #FAC760 | — |
| support.constant.constant.prisma | #DD4F7D | — |
| variable.language.relations.prisma | #5BD1B9 | — |
| entity.name.tag.yaml | #DD4F7D | — |
| storage.type.java | #FAC760 | |
| keyword.other.package.java, keyword.other.import.java | #DD4F7D | |
| storage.modifier.package.java | #FAC760 | — |
| storage.modifier.import.java | #DCE3EA | — |
| punctuation.separator.java | #EFEFEF | — |
| meta.tag.xml | #43AAF9 | — |
| keyword.other.declaration-specifier.swift, keyword.other.declaration-specifier.accessibility.swift | #DD4F7D | |
| support.type.swift, meta.function-result.swift, variable.language.swift, keyword.operator.custom.infix.swift | #43AAF9 | — |
| variable.parameter.function.swift | #DCE3EA | — |
| entity.name.function.swift | #43AAF9 | |
| variable.parameter.function.swift, meta.parameter-clause.swift | #DCE3EA | — |
| support.function.go | #43AAF9 | |
| keyword.operator.address.go, keyword.operator.pointer.go | #43AAF9 | — |
| keyword.channel.go | #B267E6 | — |
| storage.type.numeric.go, storage.type.string.go, storage.type.error.go, storage.type.boolean.go, storage.type.byte.go, storage.type.uintptr.go, storage.type.error.go, storage.type.rune.go, storage.type.complex.go | #FAC760 | — |
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}!`;
}