npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

routerboot-ui

v1.0.6

Published

RouterBoot UI lib For Vue3(Vue3+TS+Scss)

Readme

README

routerboot-ui: 1.0.6routerboot-uirouterboot-ui1.0.61.0.6

版本更新说明(update introduction)

| 版本(version) | 1.0.6 | | --------------------- | ------------ | | 版本说明(version tag) | 正式版 | | 更新时间(update date) | 20230405 | | 技术(technology) | Vue3+TS+SCSS+Vite |

可用版本(work version):

  1. 0.0.3(准备废弃,will abandon)
  2. 1.0.5
  3. 1.0.6

更新点(update points):

  1. 修正文档(1.0.3)
  2. 修复导入,修复文件缺失(1.0.3)
  3. 自定义主题色(1.0.3)
  4. 修复Nav组件iconOnly类型长度缺失(1.0.5)
  5. 修复flexbox组件padding长度异常(1.0.6)
  6. 修复weather组件占比宽度异常(1.0.6)

安装(install)

npm 安装(npm install)

npm i routerboot-ui

使用(use)

main.ts下导入(import in main.ts

import { createApp } from "vue";
import App from "./App.vue";
//import routerboot-ui
import RouterBootUI from "routerboot-ui";
//import routerboot-ui style file
import "routerboot-ui/packages/theme-chalk/index.scss";
//create app--------------------
const app = createApp(App);
//app use--------------------
app.use(RouterBootUI);
app.mount("#app");

QuickStart

<template>
  <div id="index">
    <RBIcon icon="rb-icon-hezuo"></RBIcon>
    <RBIcon icon="rb-icon-exchange"></RBIcon>
    <RBButton>test</RBButton>
    
  </div>
</template>

证书(license)

MIT

主题切换(change theme)

我们当前支持'primary,success,info,warning,error,dark'这6种系统内置主题,所有组件默认采用primary黑暗主题色,但使用者也可以直接使用type属性直接进行指定

指定主题色

如下,我们在按钮组件中使用type属性指定主题为dark主题

<RBButton type="dark">test</RBButton>

动态主题色

由于内置6种主题色,我们可以使用一个变量绑定主题,通过修改变量方式进行切换主题色,实现动态主题

vue

<RBButton :type="theme" @click="store.changeTheme()">点一下试试</RBButton>
<script lang="ts" setup>
import { ref, reactive, computed } from 'vue'
import { indexStore } from './store/indexPinia'

const store = indexStore()
let theme = computed(() => {
  return store.theme[store.current]
})

</script>

pinia

import { defineStore } from "pinia";

export const indexStore = defineStore("index", {
  state: () => {
    return {
      current: 0,
      theme: ["primary", "info", "success", "warning", "error", "dark"],
    };
  },

  actions: {
    changeTheme() {
      console.log(this.current);
      if (this.current == 5) {
        this.current = 0;
      } else {
        this.current++;
      }
    },
  },
});

自定义主题色

编写一个global.scss,然后导入main.ts

注意:当前自定义主题色仍存在一定问题

/* 只需要重写你需要的即可 */

@forward 'routerboot-ui/packages/theme-chalk/src/common/var.scss' with (
  $colors: (
    'white': #ffffff,
    'black': #000000,
    'primary': #2a6f94,
    'success': #97cd47,
    'warning': #f8805d,
    'error': #ec5e65,
    'info': #788a93,
    'dark':#21282c,
  ),
);


@use "routerboot-ui/packages/theme-chalk/index.scss" as *;