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

shogun-theme

v1.0.3

Published

Unified theme system for all Shogun apps - works with DaisyUI and vanilla CSS

Downloads

918

Readme

Shogun Theme

Sistema di theming unificato per tutte le app dell'ecosistema Shogun.

Caratteristiche

  • Compatibile con DaisyUI e CSS vanilla
  • Schema colori coordinato su tutte le app
  • Temi dark e light predefiniti
  • Variabili CSS per massima flessibilità
  • Componenti riutilizzabili
  • Font Poppins incluso

Schema Colori

Colori Primari

  • Primary: #4F6BF6 (Blu Shogun)
  • Accent: #4F6BF6

Colori di Stato

  • Success: #44ff88 (dark) / #43a047 (light)
  • Error: #ff4444 (dark) / #e53935 (light)
  • Warning: #fbbd23 (dark) / #f59e0b (light)
  • Info: #3abff8 (dark) / #3b82f6 (light)

Background Dark

  • Base 1: #1a1240
  • Base 2: #0a0821
  • Base 3: #151515
  • Gradient: linear-gradient(180deg, #1a1240 0%, #0a0821 100%)

Background Light

  • Base 1: #f0f4ff
  • Base 2: #e0e7ff
  • Base 3: #ffffff
  • Gradient: linear-gradient(180deg, #f0f4ff 0%, #e0e7ff 100%)

Installazione

Per app con DaisyUI (shogun-auth-app, shogun-gypt, shogun-linda)

  1. Installa il package (quando sarà pubblicato su npm):
yarn add shogun-theme

Oppure usa il link locale:

cd shogun-auth-app
yarn add link:../shogun-theme
  1. Importa gli stili nel tuo CSS principale:
@import "shogun-theme/styles/variables.css";
@import "shogun-theme/styles/base.css";
@import "shogun-theme/styles/daisyui-overrides.css";
  1. Usa la config Tailwind condivisa:
// tailwind.config.js
import shogunConfig from 'shogun-theme/tailwind.config.js';

export default {
  ...shogunConfig,
  content: [
    ...shogunConfig.content,
    // aggiungi i tuoi path specifici
  ],
};

Per app con CSS vanilla (shogun-drive, shogun-wormhole)

  1. Importa solo le variabili e gli stili base:
@import "shogun-theme/styles/variables.css";
@import "shogun-theme/styles/base.css";
  1. Usa le variabili CSS nei tuoi stili:
.my-component {
  background: var(--card-bg);
  color: var(--text-primary);
  border-radius: var(--shogun-radius-md);
}

Utilizzo

Variabili CSS

Tutte le variabili sono disponibili come variabili CSS:

/* Colori */
var(--shogun-primary)
var(--text-primary)
var(--card-bg)
var(--input-bg)

/* Spacing */
var(--shogun-spacing-sm)
var(--shogun-spacing-md)
var(--shogun-spacing-lg)

/* Border Radius */
var(--shogun-radius-sm)
var(--shogun-radius-md)
var(--shogun-radius-xl)

/* Transitions */
var(--shogun-transition-base)

Classi CSS

Classi riutilizzabili per componenti comuni:

<!-- Card -->
<div class="shogun-card">
  <h2>Titolo</h2>
  <p class="shogun-text-secondary">Contenuto</p>
</div>

<!-- Button -->
<button class="shogun-btn shogun-btn-primary">
  Click me
</button>

<!-- Input -->
<input type="text" class="shogun-input" placeholder="Enter text" />

<!-- Badge -->
<span class="shogun-badge shogun-badge-success">Success</span>

<!-- Alert -->
<div class="shogun-alert shogun-alert-info">
  Informazione importante
</div>

JavaScript Utilities

import { 
  setShogunTheme, 
  toggleShogunTheme, 
  getCurrentShogunTheme,
  SHOGUN_THEMES,
  SHOGUN_COLORS 
} from 'shogun-theme';

// Imposta tema
setShogunTheme(SHOGUN_THEMES.DARK);

// Toggle tema
toggleShogunTheme();

// Ottieni tema corrente
const currentTheme = getCurrentShogunTheme();

// Usa i colori
console.log(SHOGUN_COLORS.primary); // #4F6BF6

Con DaisyUI

Usa i temi predefiniti:

<html data-theme="shogun-dark">
  <!-- oppure -->
<html data-theme="shogun-light">

Oppure usa le classi DaisyUI normalmente:

<button class="btn btn-primary">Button</button>
<div class="card">Card content</div>
<input class="input input-bordered" />

Personalizzazione

Estendere i temi

Puoi estendere i temi per app specifiche mantenendo la coerenza:

/* Aggiungi variabili custom */
:root {
  --my-custom-color: #ff00ff;
}

/* Estendi il tema dark */
[data-theme="shogun-dark"] {
  --my-custom-bg: rgba(255, 0, 255, 0.1);
}

Temi Custom per App Specifiche

Per app come Linda che necessita di colori specifici (verde WhatsApp):

// tailwind.config.js
import shogunConfig from 'shogun-theme/tailwind.config.js';

export default {
  ...shogunConfig,
  daisyui: {
    ...shogunConfig.daisyui,
    themes: [
      ...shogunConfig.daisyui.themes,
      {
        "linda-dark": {
          ...shogunConfig.daisyui.themes[0]["shogun-dark"],
          primary: "#25D366", // WhatsApp green
          secondary: "#00A884",
        }
      }
    ]
  }
};

File Structure

shogun-theme/
├── styles/
│   ├── variables.css          # Variabili CSS globali
│   ├── base.css               # Stili base e classi utility
│   └── daisyui-overrides.css  # Override per DaisyUI
├── tailwind.config.js         # Config Tailwind condivisa
├── index.js                   # Utilities JavaScript
├── package.json
└── README.md

Progetti Shogun

Con DaisyUI

  • shogun-auth-app: App di autenticazione
  • shogun-gypt: App di messaggistica
  • shogun-linda: App di chat (con tema custom verde)

Con CSS Vanilla

  • shogun-drive: File storage decentralizzato
  • shogun-wormhole: Trasferimento file P2P
  • shogun-relay: Server relay (backend, no UI)

License

MIT