Tailwind Catalyst Theme
Publisher: Jasper GorchovThemes in package: 1
A modern color theme based on the docs of the UI kit "Catalyst" by Tailwind Labs
A modern color theme based on the docs of the UI kit "Catalyst" by Tailwind Labs
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 | #9ca3af | italic |
| punctuation | #d1d5db | — |
| constant | #fde68a | — |
| entity | #d1d5db | — |
| entity.name | #f472b6 | — |
| entity.name.function | #99f6e4 | — |
| keyword | #c4b5fd | — |
| keyword.operator.assignment | #9ca3af | — |
| storage | #d1d5db | — |
| string, punctuation.definition.string | #7dd3fc | — |
| support | #c4b5fd | — |
| variable | #fda4af | — |
| variable.other.constant.object | #fda4af | — |
| text.html entity | #f472b6 | — |
| text.html entity.other.attribute-name | #d1d5db | — |
| text.html string.quoted, text.html punctuation.definition.string | #7dd3fc | — |
| text.html punctuation, text.html keyword.operator, text.html meta.tag | #d1d5db | — |
| text.html meta.tag.sgml, text.html meta.tag.sgml punctuation | #93c5fdbf | — |
| text.html entity.name.function | #99f6e4 | — |
| 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 | #f472b6 | — |
| source.css meta.attribute-selector, source.css meta.attribute-selector punctuation.definition.string, source.css entity.other.attribute-name | #c4b5fd | — |
| source.css keyword.control.at-rule, source.css punctuation.definition.keyword | #d1d5db | — |
| 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 | #f9fafb | — |
| source.css constant, source.css support.constant | #f9fafb | — |
| source.css meta.property-name, source.css support.type.property-name, source.css string | #7dd3fc | — |
| source.css support.function | #dbeafe | — |
| source.css keyword.control, source.css keyword.operator | #d1d5db | — |
| source.css keyword.other.unit | #ccfbf1 | — |
| source.css variable, source.css entity.other.attribute-name.placeholder, source.css entity.other.attribute-name.placeholder punctuation.definition.entity | #99f6e4 | — |
| 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 | #d1d5db | — |
| source.js meta.block entity.name.tag, source.ts meta.block entity.name.tag, source.tsx meta.block entity.name.tag | #f472b6 | — |
| source.js meta.block entity.other.attribute-name, source.ts meta.block entity.other.attribute-name, source.tsx meta.block entity.other.attribute-name | #d1d5db | — |
| 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 | #7dd3fc | — |
| source.js meta.block meta.jsx.children, source.ts meta.block meta.jsx.children, source.tsx meta.block meta.jsx.children | #f9fafb | — |
| 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 | #fda4af | — |
| source.js meta.block keyword.operator.ternary, source.ts meta.block keyword.operator.ternary, source.tsx meta.block keyword.operator.ternary | #c4b5fd | — |
| source.json support | #e5e7eb | — |
| source.json constant | #fda4af | — |
| constant.character.escape | #cbd5e1 | — |
| variable.other.property.js | #d1d5db | — |
| meta.import keyword.control.import | #d1d5db | — |
| meta.import keyword.control.from, meta.import punctuation | #d1d5db | — |
| meta.import string, meta.import string punctuation.definition.string | #e5e7eb | — |
| meta.import variable.other.readwrite | #7dd3fc | — |
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}!`;
}