Skip to content

Commit

Permalink
feat: complete
Browse files Browse the repository at this point in the history
  • Loading branch information
zyyv committed Nov 15, 2024
1 parent 501a878 commit 5177e5e
Show file tree
Hide file tree
Showing 8 changed files with 911 additions and 799 deletions.
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
# unocss-preset-starter [![npm](https://img.shields.io/npm/v/unocss-preset-starter)](https://npmjs.com/package/unocss-preset-starter)
# unocss-preset-magicss [![npm](https://img.shields.io/npm/v/unocss-preset-magicss)](https://npmjs.com/package/unocss-preset-magicss)

UnoCSS preset quickstart template.
Integrate magic animation into unocss preset.

## Features
- 🔥 Description of the preset
- 📦 Build-In [Magic Animate](https://github.com/miniMAC/magic).

## Usage
```shell
pnpm i -D unocss-preset-starter unocss
pnpm i -D unocss-preset-magicss unocss
```

```ts
// uno.config.ts
import { defineConfig } from 'unocss'
import { presetStarter } from 'unocss-preset-starter'
import { defineConfig, presetUno } from 'unocss'
import { presetMagicss } from 'unocss-preset-magicss'

export default defineConfig({
presets: [
// ...
presetStarter(),
presetUno(),
presetMagicss(),
],
})
```
Expand Down
1 change: 1 addition & 0 deletions build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ export default defineBuildConfig({
rollup: {
emitCJS: true,
},
externals: ['unocss'],
})
33 changes: 17 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
{
"name": "unocss-preset-starter",
"name": "unocss-preset-magicss",
"type": "module",
"version": "0.0.0",
"packageManager": "pnpm@8.7.0",
"description": "<description>",
"author": "unpreset <https://github.com/unpreset>",
"packageManager": "pnpm@9.13.2",
"description": "Integrate magic animation into unocss preset.",
"author": "Chris <https://github.com/zyyv>",
"license": "MIT",
"homepage": "https://github.com/unpreset/unocss-preset-starter#readme",
"homepage": "https://github.com/unpreset/unocss-preset-magicss#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/unpreset/unocss-preset-starter.git"
"url": "git+https://github.com/unpreset/unocss-preset-magicss.git"
},
"bugs": {
"url": "https://github.com/unpreset/unocss-preset-starter/issues"
"url": "https://github.com/unpreset/unocss-preset-magicss/issues"
},
"keywords": [
"unocss",
"unpreset",
"unocss-preset",
"unocss-preset-starter"
"unocss-preset-magicss"
],
"sideEffects": false,
"exports": {
Expand Down Expand Up @@ -54,21 +54,22 @@
"play": "vite playground",
"deploy": "vite build playground"
},
"dependencies": {
"@unocss/core": "^0.64.0"
"peerDependencies": {
"unocss": "^0.64.1"
},
"devDependencies": {
"@antfu/eslint-config": "^3.8.0",
"@antfu/eslint-config": "^3.9.1",
"@babel/types": "^7.26.0",
"@types/node": "^22.9.0",
"@unocss/eslint-plugin": "^0.64.0",
"@vitejs/plugin-vue": "^5.1.4",
"@unocss/eslint-plugin": "^0.64.1",
"@unocss/preset-mini": "^0.64.1",
"@vitejs/plugin-vue": "^5.2.0",
"bumpp": "^9.8.1",
"eslint": "^9.14.0",
"typescript": "5.6.3",
"unbuild": "^2.0.0",
"unocss": "^0.64.0",
"vite": "^5.4.10",
"vitest": "^2.1.4"
"unocss": "^0.64.1",
"vite": "^5.4.11",
"vitest": "^2.1.5"
}
}
22 changes: 10 additions & 12 deletions playground/src/App.vue
Original file line number Diff line number Diff line change
@@ -1,24 +1,22 @@
<template>
<div>
<div class="custom-rule">
Unpreset Starter
<div class="text-center">
Unpreset Magic CSS
</div>
<div class="flex">
<div class="bg-white text-center col-3">
Col 3
</div>
<div class="bg-blue-3 text-center col-4">
Col 4
</div>
<div class="bg-blue-3 text-center col-5">
Col 5
</div>
<div class="mt-8 flex justify-center gap-6">
<div class="size-10 animate-puff-in animate-count-infinite bg-purple/40 ring ring-purple/5" />
<div class="size-10 animate-puff-out animate-count-infinite bg-purple/40 ring ring-purple/5" />
<div class="size-10 animate-magic animate-count-infinite bg-purple/40 ring ring-purple/5" />
<div class="size-10 animate-swap animate-count-infinite bg-purple/40 ring ring-purple/5" />
<div class="size-10 animate-twister-in-down animate-count-infinite bg-purple/40 ring ring-purple/5" />
<div class="size-10 animate-twister-in-up animate-count-infinite bg-purple/40 ring ring-purple/5" />
</div>
</div>
</template>

<style>
:root{
color: white;
background: #222;
}
</style>
Loading

0 comments on commit 5177e5e

Please sign in to comment.