Buckets:
| 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()) | |
Xet Storage Details
- Size:
- 576 Bytes
- Xet hash:
- 871c6f50b9fb3f9668b1e4c65f3acd42107c5769e8339f5b66c335cd667d25fc
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.