Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit 93c4157

Browse files
committed
Add @unocss lib
1 parent 46b04b8 commit 93c4157

File tree

12 files changed

+90
-3
lines changed

12 files changed

+90
-3
lines changed

commands/init.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ export default async function (nameArg: string | undefined, template = "react")
7575
const importMap = {
7676
imports: {
7777
"~/": "./",
78+
"@unocss/": `${alephPkgUri}/lib/@unocss/`,
7879
"aleph/": `${alephPkgUri}/`,
7980
"aleph/server": `${alephPkgUri}/server/mod.ts`,
8081
},

examples/feature-apps/unocss/server.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import presetUno from "https://esm.sh/@unocss/preset-uno@0.31.6";
2-
import presetIcons from "https://esm.sh/@unocss/preset-icons@0.31.6?no-require";
1+
import presetUno from "@unocss/preset-uno.ts";
2+
import presetIcons from "@unocss/preset-icons.ts";
33
import carbonIcons from "https://esm.sh/@iconify-json/[email protected]/icons.json" assert { type: "json" };
44
import { renderToString } from "react-dom/server";
55
import { Router } from "aleph/react";

import_map.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
{
22
"imports": {
3+
"std/": "https://deno.land/[email protected]/",
4+
"@unocss/": "./lib/@unocss/",
35
"aleph/": "./",
46
"aleph/server": "./server/mod.ts",
57
"aleph/react": "./framework/react/mod.ts",
6-
"std/": "https://deno.land/[email protected]/",
78
"react": "https://esm.sh/[email protected]",
89
"react-dom": "https://esm.sh/[email protected]",
910
"react-dom/server": "https://esm.sh/[email protected]/server",

lib/@unocss/preset-attributify.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/**
2+
* Provides Attributify Mode to other presets and rules.
3+
* https://github.com/unocss/unocss/tree/main/packages/preset-attributify
4+
*/
5+
export { default } from "https://esm.sh/@unocss/[email protected]";

lib/@unocss/preset-icons.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/**
2+
* Use any icon as a class utility.
3+
* https://github.com/unocss/unocss/tree/main/packages/preset-icons
4+
*/
5+
export { default } from "https://esm.sh/@unocss/[email protected]?no-require";

lib/@unocss/preset-mini.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/**
2+
* The minimal but essential rules and variants.
3+
* https://github.com/unocss/unocss/tree/main/packages/preset-mini
4+
*/
5+
export { default } from "https://esm.sh/@unocss/[email protected]";

lib/@unocss/preset-typography.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/**
2+
* The typography preset.
3+
* https://github.com/unocss/unocss/tree/main/packages/preset-typography
4+
*/
5+
export { default } from "https://esm.sh/@unocss/[email protected]";

lib/@unocss/preset-uno.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default } from "https://esm.sh/@unocss/[email protected]";

lib/@unocss/preset-web-fonts.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/**
2+
* Web fonts at ease.
3+
* https://github.com/unocss/unocss/tree/main/packages/preset-web-fonts
4+
*/
5+
export { default } from "https://esm.sh/@unocss/[email protected]";

lib/@unocss/preset-wind.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/**
2+
* Tailwind / Windi CSS compact preset.
3+
* https://github.com/unocss/unocss/tree/main/packages/preset-wind
4+
*/
5+
export { default } from "https://esm.sh/@unocss/[email protected]";

0 commit comments

Comments
 (0)