Tailwind Ninja Themes
Publisher: Ludovic GuénetThemes in package: 2
Light and dark themes inspired by Tailwind CSS colors
Light and dark themes inspired by Tailwind CSS colors
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 |
|---|---|---|
| support.class.php, support.other.namespace.php, meta.function-call.static.php support.class | #0284c7 | — |
| keyword.control.php, keyword.operator.class.php, storage.type.php | #6366f1 | — |
| variable.other.php, punctuation.definition.variable.php | #2563eb | — |
| entity.name.function.php, support.function.php | #0d9488 | — |
| meta.function-call.php, meta.method-call.php, meta.function-call.object.php | #0d9488 | — |
| constant.language.php, constant.other.php, support.constant.core.php, support.constant.std.php | #d97706 | — |
| entity.name.type.class.php, entity.other.inherited-class.php, meta.namespace.php | #0284c7 | — |
| entity.other.attribute-name.vue, entity.other.attribute-name.html.vue, meta.directive.vue, meta.directive.shorthand.vue | #7c3aed | — |
| punctuation.definition.template-expression.begin.vue, punctuation.definition.template-expression.end.vue | #6366f1 | — |
| expression.embedded.vue | #0d9488 | — |
| meta.import.vue, meta.export.vue | #4f46e5 | — |
| support.variable.ref.vue, support.variable.reactive.vue | #0ea5e9 | — |
| support.class.builtin, support.type, variable.other.class, entity.name.type.class | #0284c7 | — |
| keyword.control, keyword.operator, storage.type, storage.modifier | #6366f1 | — |
| variable.other.readwrite, meta.definition.variable | #2563eb | — |
| variable.other.constant, constant.language, constant.numeric | #d97706 | — |
| entity.name.function, support.function, meta.function-call | #0d9488 | — |
| variable.other.property, meta.property.object | #0891b2 | — |
| comment | #64748b | italic |
| punctuation | #64748b | — |
| constant | #d97706 | — |
| entity | #0ea5e9 | — |
| entity.name | #0284c7 | — |
| entity.name.function | #0d9488 | — |
| keyword | #7c3aed | — |
| keyword.operator.assignment | #64748b | — |
| storage | #7c3aed | — |
| string, punctuation.definition.string | #4f46e5 | — |
| support | #0284c7 | — |
| variable | #1d4ed8 | — |
| variable.other.constant.object | #1d4ed8 | — |
| text.html entity | #0284c7 | — |
| text.html entity.other.attribute-name | #0ea5e9 | — |
| text.html string.quoted, text.html punctuation.definition.string | #4f46e5 | — |
| text.html punctuation, text.html keyword.operator, text.html meta.tag | #64748b | — |
| text.html meta.tag.sgml, text.html meta.tag.sgml punctuation | #94a3b8 | — |
| text.html entity.name.function | #0d9488 | — |
| source.css entity, source.css entity.other.attribute-name.class, source.css entity.other.attribute-name.id, source.css entity.other.attribute-name.pseudo-class, source.css punctuation.definition.entity | #0284c7 | — |
| source.css meta.attribute-selector, source.css meta.attribute-selector punctuation.definition.string, source.css entity.other.attribute-name | #4f46e5 | — |
| source.css keyword.control.at-rule, source.css punctuation.definition.keyword | #0369a1 | — |
| source.css meta.property-value, source.css meta.property-value.css punctuation.definition.constant, source.css meta.property-list meta.at-rule, source.css variable.parameter | #1e293b | — |
| source.css constant, source.css support.constant | #1e293b | — |
| source.css meta.property-name, source.css support.type.property-name, source.css string | #4f46e5 | — |
| source.css support.function | #3b82f6 | — |
| source.css keyword.control, source.css keyword.operator | #64748b | — |
| source.css keyword.other.unit | #0d9488 | — |
| source.css variable, source.css entity.other.attribute-name.placeholder, source.css entity.other.attribute-name.placeholder punctuation.definition.entity | #0d9488 | — |
| source.css punctuation.section, source.css punctuation.separator, source.css punctuation.terminator, source.css punctuation.definition.constant, source.css meta.attribute-selector punctuation.definition, source.css punctuation.definition.parameters, source.css punctuation.access, source.css meta.property-list | #64748b | — |
| source.js meta.block entity.name.tag, source.ts meta.block entity.name.tag, source.tsx meta.block entity.name.tag | #0284c7 | — |
| source.js meta.block entity.other.attribute-name, source.ts meta.block entity.other.attribute-name, source.tsx meta.block entity.other.attribute-name | #0ea5e9 | — |
| source.js meta.block string.quoted, source.ts meta.block string.quoted, source.tsx meta.block string.quoted, source.js meta.block punctuation.definition.string, source.ts meta.block punctuation.definition.string, source.tsx meta.block punctuation.definition.string | #4f46e5 | — |
| source.js meta.block meta.jsx.children, source.ts meta.block meta.jsx.children, source.tsx meta.block meta.jsx.children | #1e293b | — |
| source.js meta.block meta.embedded.expression variable.other, source.ts meta.block meta.embedded.expression variable.other, source.tsx meta.block meta.embedded.expression variable.other, source.js meta.block meta.embedded.expression variable.other.readwrite, source.ts meta.block meta.embedded.expression variable.other.readwrite, source.tsx meta.block meta.embedded.expression variable.other.readwrite | #9333ea | — |
| source.js meta.block keyword.operator.ternary, source.ts meta.block keyword.operator.ternary, source.tsx meta.block keyword.operator.ternary | #8b5cf6 | — |
| source.json support | #1e293b | — |
| source.json constant | #e11d48 | — |
| constant.character.escape | #64748b | — |
| variable.other.property.js | #1e293b | — |
| meta.import keyword.control.import | #0369a1 | — |
| meta.import keyword.control.from, meta.import punctuation | #64748b | — |
| meta.import string, meta.import string punctuation.definition.string | #334155 | — |
| meta.import variable.other.readwrite | #0369a1 | — |
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}!`;
}