aidenlx/zotlit / .agents/skills/obsidian-css
obsidian-css
VerifiedStyle Obsidian plugin UI Tailwind-first with native components. Use when writing or reviewing any styled React/JSX or CSS in apps/obsidian/ — picking colors, spacing, typography, borders, radius, shadows, dark-mode tokens, the `zt:` prefix, `.zt-root` preflight setup, component wrapper selection, or deciding between a utility, a native element, and a stylesheet.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 11.3 KB |
| check-references.mjs | script | 2.4 KB |
| modal-layout.md | markdown | 2.7 KB |
| references/components.md | markdown | 9.2 KB |
| references/editor.md | markdown | 14.0 KB |
| references/foundations.md | markdown | 10.1 KB |
| references/plugins.md | markdown | 2.0 KB |
| references/preflights.md | markdown | 3.4 KB |
| references/window.md | markdown | 3.7 KB |
check-references.mjs
View on GitHub#!/usr/bin/env node
// Lists every CSS variable a reference file names that the extracted Obsidian
// build no longer carries. A name counts as carried when `app.css` or `app.js`
// spells it, since Obsidian sets some variables from script.
//
// Usage: node .claude/skills/obsidian-css/check-references.mjs [--obsidian <version>]
// Default version: the newest node_modules/.ob-rev-*/ that holds app.css.
// Exit 0: every name is carried. Exit 1: names listed as file:line. Exit 2: no build.
import { existsSync, readdirSync, readFileSync } from "node:fs";
import { dirname, join, relative } from "node:path";
import { fileURLToPath } from "node:url";
const skillDir = dirname(fileURLToPath(import.meta.url));
const repoRoot = join(skillDir, "../../..");
const modulesDir = join(repoRoot, "node_modules");
const versionFlag = process.argv.indexOf("--obsidian");
const version =
versionFlag === -1
? readdirSync(modulesDir)
.filter((name) => name.startsWith(".ob-rev-"))
.map((name) => name.slice(".ob-rev-".length))
.filter((v) => existsSync(join(modulesDir, `.ob-rev-${v}`, "app.css")))
.sort((a, b) => a.localeCompare(b, undefined, { numeric: true }))
.at(-1)
: process.argv[versionFlag + 1];
const buildDir = version && join(modulesDir, `.ob-rev-${version}`);
if (!buildDir || !existsSync(join(buildDir, "app.css"))) {
console.error(
"No extracted Obsidian build with app.css. Run /obsidian-asar-extract first.",
);
process.exit(2);
}
const shipped = ["app.css", "app.js"]
.map((file) => join(buildDir, file))
.filter(existsSync)
.map((file) => readFileSync(file, "utf8"))
.join("\n");
const referencesDir = join(skillDir, "references");
const missing = [];
for (const file of readdirSync(referencesDir).filter((f) => f.endsWith(".md"))) {
const path = join(referencesDir, file);
readFileSync(path, "utf8")
.split("\n")
.forEach((line, index) => {
// A table row's first cell names the variable: | `--name` | Use |
for (const [, name] of line.matchAll(/^\|\s*`(--[\w-]+)`/g)) {
if (!new RegExp(`${name}(?![\\w-])`).test(shipped))
missing.push(`${relative(repoRoot, path)}:${index + 1}: ${name}`);
}
});
}
if (missing.length === 0) {
console.log(`Every reference variable is in Obsidian ${version}.`);
} else {
console.log(
`${missing.length} reference variable(s) absent from Obsidian ${version}:\n${missing.join("\n")}`,
);
process.exit(1);
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation). | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK). | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |