@yunyoujun/ak-ui
v0.2.0
Published
Framework-agnostic Arknights-inspired CSS interface modules.
Downloads
370
Maintainers
Readme
ak-ui
Framework-agnostic Arknights-inspired CSS interface modules.
- Documentation: https://ak-ui.yyj.moe
- Source: SCSS modules and runtime CSS variables
- Runtime dependency: none
Install
pnpm add @yunyoujun/ak-uiImport the compiled stylesheet:
import '@yunyoujun/ak-ui/style.css'Or use the Sass entry:
@use '@yunyoujun/ak-ui/scss';CDN usage:
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@yunyoujun/[email protected]/dist/ak-ui.min.css">The CSS Core includes native form controls, <dialog>, and Popover API surfaces alongside the original AK-themed display, navigation, and feedback modules. Browse the complete HTML source examples in the component documentation.
Vue Registry
Vue users can copy editable adapters into their project with the shadcn-vue CLI:
pnpm dlx shadcn-vue@latest add https://ak-ui.yyj.moe/r/button.json
pnpm dlx shadcn-vue@latest add https://ak-ui.yyj.moe/r/card.json
pnpm dlx shadcn-vue@latest add https://ak-ui.yyj.moe/r/input-number.json
pnpm dlx shadcn-vue@latest add https://ak-ui.yyj.moe/r/status.json
pnpm dlx shadcn-vue@latest add https://ak-ui.yyj.moe/r/progress.json
pnpm dlx shadcn-vue@latest add https://ak-ui.yyj.moe/r/notice.json
pnpm dlx shadcn-vue@latest add https://ak-ui.yyj.moe/r/tabs.jsonThe copied Vue source imports the framework-agnostic CSS package, so there is no separate ak-ui runtime. See the Vue Registry guide for usage and live examples.
The architecture migration and implementation history are documented in the project revival log.
Development
pnpm install
pnpm devUseful commands:
pnpm build # build dist CSS
pnpm docs:build # build the VitePress site
pnpm lint # check SCSS
pnpm test:visual # quick visual check for the current OS
pnpm test:visual:update:linux # update lossless WebP baselines in the CI-matched Linux container
pnpm test # run all verification with Linux visual regressionThe files in examples/ are the single source for documentation previews, displayed source code, and Playwright browser tests.
Only the desktop and mobile homepage baselines are versioned. Component captures are generated under test-results/ and uploaded as a 14-day GitHub Actions artifact instead of entering Git history. The homepage baselines use the pinned Playwright Noble container so local updates match the Ubuntu 24.04 CI renderer.
License
This is an unofficial fan project. Arknights and related assets belong to their respective owners.
