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

Commit 261bb23

Browse files
committed
Rename atomicCSS to unocss
1 parent 3df8dd9 commit 261bb23

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

examples/feature-apps/unocss/server.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { renderToString } from "react-dom/server";
88
serve({
99
config: {
1010
routes: "./routes/**/*.tsx",
11-
atomicCSS: {
11+
unocss: {
1212
presets: [
1313
presetUno(),
1414
presetIcons({

server/helpers.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { basename, dirname, globToRegExp, join } from "https://deno.land/[email protected]/path/mod.ts";
22
import { JSONC } from "https://deno.land/x/[email protected]/src/jsonc.ts";
33
import { findFile } from "../lib/fs.ts";
4-
import { createGenerator } from "https://esm.sh/@unocss/[email protected].2";
4+
import { createGenerator } from "https://esm.sh/@unocss/[email protected].1";
55
import log from "../lib/log.ts";
66
import util from "../lib/util.ts";
77
import { isCanary, VERSION } from "../version.ts";
@@ -85,8 +85,8 @@ export function getAlephPkgUri() {
8585
export function getUnoGenerator() {
8686
return globalIt("__UNO_GENERATOR", () => {
8787
const config: AlephConfig | undefined = Reflect.get(globalThis, "__ALEPH_CONFIG");
88-
if (config?.atomicCSS?.presets?.length) {
89-
return createGenerator(config.atomicCSS);
88+
if (config?.unocss?.presets?.length) {
89+
return createGenerator(config.unocss);
9090
}
9191
return null;
9292
});

server/types.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { UserConfig as AtomicCSSConfig } from "https://esm.sh/@unocss/[email protected].2";
1+
import type { UserConfig as UnoConfig } from "https://esm.sh/@unocss/[email protected].1";
22

33
export type AlephConfig = {
44
/** The basePath of the app. */
@@ -8,7 +8,7 @@ export type AlephConfig = {
88
/** The config for file-system based routing. */
99
routes?: RoutesConfig | string;
1010
/** The config for atomic css powered by unocss. */
11-
atomicCSS?: AtomicCSSConfig;
11+
unocss?: UnoConfig;
1212
};
1313

1414
export type BuildPlatform = "deno" | "cloudflare" | "vercel";
@@ -67,4 +67,4 @@ export type ModuleLoaderContent = {
6767
modtime?: number;
6868
};
6969

70-
export { AtomicCSSConfig };
70+
export { UnoConfig };

0 commit comments

Comments
 (0)