burne-ui-skin-pixel
v0.1.1
Published
Pixel skin for Burne UI: 8-bit game UI — notched sprite outlines, stepped motion, blinking cursor, RPG text-box overlays, HP bars
Maintainers
Readme
burne-ui-skin-pixel
Pixel — скин для Burne UI.
8-bit game UI: notched sprite outlines with a bevel, stepped motion, a +1 pop on press, a blinking cursor in menus, RPG text-box dialogs and segmented HP bars.
Установка
npm install burne-ui burne-ui-skin-pixelСтили подключаются после стилей кита:
@import "burne-ui/styles.css";
@import "burne-ui-skin-pixel/styles.css";
@source "../node_modules/burne-ui-skin-pixel/dist";Шрифт скина — Pixelify Sans. Подключите его в <head>:
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Pixelify+Sans:[email protected]&display=swap" />Использование
import { BurneUIProvider, Button } from "burne-ui";
import { pixel } from "burne-ui-skin-pixel";
<BurneUIProvider skins={[pixel]} skin="pixel">
<Button>Сохранить</Button>
</BurneUIProvider>skin="pixel" включает скин для всего поддерева. Отдельный компонент — variant="pixel".
Светлая и тёмная палитры — tokensLight и tokensDark; тема выбирается атрибутом data-theme на предке.
Лицензия
MIT
