/
Alex_Ural
/
opencode
Обзор
Документация
Войти
/
Alex_Ural
/
opencode
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
packages/ui/script/tailwind.ts
23 строки
576 B
Adam
wip(desktop): layout improvements
13 ноя 2025, 23:47
Не верифицирован
13 ноя 2025, 23:47
a8836c5
Код
Авторство
О чём код?
#!/usr/bin/env bun const colors = await Bun.file(import.meta.dir + "/colors.txt").text() const variables = [] for (const line of colors.split("\n")) { if (!line.trim()) continue const [variable] = line.trim().split(":") const name = variable!.trim().substring(2) variables.push(`--color-${name}: var(--${name});`) } const output = ` /* Generated by script/tailwind.ts */ /* Do not edit this file manually */ @theme { --color-*: initial; ${variables.join("\n ")} } ` await Bun.file(import.meta.dir + "/../src/styles/tailwind/colors.css").write(output.trim())