-
-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
124 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
// reset css | ||
import "@kirklin/reset-css/kirklin.css"; | ||
import "./src/index.css"; | ||
import "uno.css"; | ||
import "animate.css"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"extends": "@celeris/tsconfig/tsconfig.base.json", | ||
"compilerOptions": { | ||
"target": "esnext", | ||
"baseUrl": ".", | ||
"module": "esnext", | ||
"moduleResolution": "Bundler", | ||
"strict": true, | ||
"skipLibCheck": true, | ||
"allowSyntheticDefaultImports": true, | ||
"sourceMap": false, | ||
"lib": [ | ||
"esnext", | ||
"dom" | ||
] | ||
}, | ||
"include": [ | ||
"src/**/*.ts" | ||
], | ||
"exclude": [ | ||
"node_modules" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { defineConfig } from "tsup"; | ||
|
||
export default defineConfig({ | ||
entry: ["./index.ts"], | ||
clean: true, | ||
format: ["esm", "cjs", "iife"], | ||
external: ["vite"], | ||
dts: true, | ||
minify: true, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
// uno.config.ts | ||
import type { | ||
UserConfig, | ||
} from "unocss"; | ||
import { | ||
presetAttributify, | ||
presetIcons, | ||
presetUno, | ||
transformerDirectives, | ||
transformerVariantGroup, | ||
} from "unocss"; | ||
import presetChinese, { chineseTypography } from "unocss-preset-chinese"; | ||
import presetEase from "unocss-preset-ease"; | ||
|
||
const shareConfig: UserConfig = { | ||
content: { | ||
pipeline: { | ||
exclude: ["node_modules", ".git", "dist"], | ||
}, | ||
}, | ||
presets: [ | ||
presetUno({ dark: "class" }), | ||
presetAttributify(), | ||
chineseTypography(), | ||
presetChinese({ | ||
chineseType: "simplified", | ||
}), | ||
presetEase(), | ||
presetIcons({ | ||
scale: 1.2, | ||
warn: true, | ||
}), | ||
], | ||
shortcuts: { | ||
// position | ||
"common-bg": "bg-gray-100 dark:bg-gray-900", | ||
"pr": "relative", | ||
"pa": "absolute", | ||
"pf": "fixed", | ||
"ps": "sticky", | ||
|
||
// position layout | ||
"position-x-center": "absolute left-1/2 -translate-x-1/2", | ||
"pxc": "position-x-center", | ||
"position-y-center": "absolute top-1/2 -translate-y-1/2", | ||
"pyc": "position-y-center", | ||
"position-center": "position-x-center position-y-center", | ||
"pc": "position-center", | ||
|
||
// size | ||
"size-0": "w-0 h-0", | ||
"size-full": "w-full h-full", | ||
"size-screen": "w-screen h-screen", | ||
"size-1/2": "w-1/2 h-1/2", | ||
|
||
// flex layout | ||
"flex-center": "flex justify-center items-center", | ||
"flex-col-center": "flex-center flex-col", | ||
"flex-x-center": "flex justify-center", | ||
"flex-y-center": "flex items-center", | ||
}, | ||
theme: { | ||
}, | ||
transformers: [ | ||
transformerDirectives(), | ||
transformerVariantGroup(), | ||
], | ||
}; | ||
|
||
export default shareConfig; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.