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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@startbet/st-core-ui

v0.24.0

Published

Biblioteca de componentes Vue 3 com Vite, Tailwind CSS e Storybook

Readme

@startbet/st-core-ui

Biblioteca de componentes Vue 3 com Vite, Tailwind CSS e Storybook.

O pacote foi pensado para ser consumido em projetos Vue/Nuxt e tambem expõe tokens de design, estilos CSS e configuracao Tailwind reutilizavel.

Recursos

  • Componentes Vue 3 empacotados para consumo externo.
  • Tokens CSS publicados para reutilizacao em outros projetos.
  • Fontes locais Base Neue e Montserrat.
  • Tema Tailwind exportavel com stTailwindTheme e stTailwindPlugins.
  • Storybook para documentacao e desenvolvimento visual.
  • Testes com Vitest e @vue/test-utils.
  • Release automatizada com semantic-release.

Instalacao

npm install @startbet/st-core-ui

Uso

Cenario 1: projeto novo ou simples

Use esse fluxo quando o projeto consumidor ainda nao possui uma configuracao Tailwind propria relevante e voce quer carregar rapidamente a base visual da biblioteca.

import { createApp } from 'vue';
import App from './App.vue';

import '@startbet/st-core-ui/style.css';

createApp(App).mount('#app');
<script setup lang="ts">
import { StTypography } from '@startbet/st-core-ui';
</script>

<template>
  <StTypography as="h2" variant="heading-3"> Titulo da secao </StTypography>
</template>

Cenario 2: projeto existente com Tailwind proprio

Use esse fluxo quando o projeto consumidor ja controla o proprio tailwind.config e voce nao quer sobrescrever a configuracao local.

Nesse caso:

  • mantenha a configuracao atual do projeto consumidor
  • faca merge de stTailwindTheme em theme.extend
  • adicione stTailwindPlugins junto com os plugins locais
  • carregue tokens.css no CSS global principal do projeto
  • nao use style.css como entrada principal nesse cenario

Exemplo de merge em um tailwind.config.js existente:

import { stTailwindPlugins, stTailwindTheme } from '@startbet/st-core-ui';

export default {
  content: ['./app/**/*.{vue,js,ts}', './components/**/*.{vue,js,ts}'],
  theme: {
    extend: {
      colors: {
        ...stTailwindTheme.colors
      },
      fontFamily: {
        ...stTailwindTheme.fontFamily
      },
      fontSize: {
        ...stTailwindTheme.fontSize
      },
      lineHeight: {
        ...stTailwindTheme.lineHeight
      },
      letterSpacing: {
        ...stTailwindTheme.letterSpacing
      },
      borderRadius: {
        ...stTailwindTheme.borderRadius
      },
      boxShadow: {
        ...stTailwindTheme.boxShadow
      },
      dropShadow: {
        ...stTailwindTheme.dropShadow
      },
      spacing: {
        ...stTailwindTheme.spacing
      },
      textShadow: {
        ...stTailwindTheme.textShadow
      },
      keyframes: {
        ...stTailwindTheme.keyframes
      },
      animation: {
        ...stTailwindTheme.animation
      }
    }
  },
  plugins: [...stTailwindPlugins]
};

Exemplo de import dos tokens no CSS global principal:

@import '@startbet/st-core-ui/tokens.css';
@tailwind base;
@tailwind components;
@tailwind utilities;

Fontes

Use quando quiser disponibilizar apenas a familia Base Neue.

import '@startbet/st-core-ui/base-neue.css';

Integracao Com Tailwind

O pacote exporta stTailwindTheme e stTailwindPlugins para reutilizacao no tailwind.config.ts.

Para projetos novos ou simples, um exemplo minimo seria:

import type { Config } from 'tailwindcss';

import { stTailwindPlugins, stTailwindTheme } from '@startbet/st-core-ui';

export default {
  content: ['./src/**/*.{vue,ts,tsx}'],
  theme: {
    extend: stTailwindTheme
  },
  plugins: stTailwindPlugins
} satisfies Config;

Para projetos existentes, prefira fazer merge em vez de substituir a configuracao local:

import { stTailwindPlugins, stTailwindTheme } from '@startbet/st-core-ui';

export default {
  theme: {
    extend: {
      ...stTailwindTheme
    }
  },
  plugins: [...stTailwindPlugins]
};

Ao usar essa integracao, carregue tambem os tokens CSS no CSS global principal da aplicacao:

@import '@startbet/st-core-ui/tokens.css';
@tailwind base;
@tailwind components;
@tailwind utilities;

Exports Publicos

  • @startbet/st-core-ui
  • @startbet/st-core-ui/style.css
  • @startbet/st-core-ui/tokens.css
  • @startbet/st-core-ui/base-neue.css
  • @startbet/st-core-ui/tailwind.config

Scripts Do Projeto

npm run storybook
npm run build-storybook
npm run lint
npm run test:run
npm run test:coverage
npm run build

Release

O projeto usa semantic-release com Conventional Commits.

Exemplos validos:

feat(button): adicionar nova variante
fix(tokens): corrigir token de hover
refactor(theme): reorganizar tema tailwind

Branches configuradas:

  • main: release de producao.
  • develop: prerelease beta.

Estrutura

src/
  components/   componentes Vue
  css/          entradas CSS publicadas
  tokens/       tema e plugins Tailwind exportados
  assets/fonts/ fontes locais publicadas

Desenvolvimento Local

npm install
npm run storybook

Para validar antes de subir alteracoes:

npm run lint
npm run test:run
npm run build