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 🙏

© 2024 – Pkg Stats / Ryan Hefner

install-dark-theme

v2.3.0

Published

Telegram like Dark Mojave theme for slack

Downloads

55

Readme

Slack Dark Mojave Theme

npm monthly downloads Netlify Status

A dark theme inspired by Telegram desktop Dark Mojave theme for Slack 3+ and 4+

Quick overview

Slack 4

npx install-dark-theme
// rollback to the original theme.
npx install-dark-theme --rollback

Slack 3

npx [email protected]
// rollback to the original theme.
npx [email protected] --rollback

Preview

Screenshot

Installing into Slack

NB: You'll have to do this every time Slack updates.

Option 1

npx install-dark-theme  

Arguments
npx install-dark-theme --rollback restore original theme npx install-dark-theme --force force theme installing

Option 2: Manual installation

  • Look at scripts/injectTheme to inject theme manually*

Getting updates for the theme

To load the latest updates for the theme you need just press ⌘+R (Mac), ctrl+R (Windows) or reload Slack.

Development Slack 4

Clone the repo and run commands using yarn/npm

Open slack with developer tools

Mac: export SLACK_DEVELOPER_MENU=true; open -a /Applications/Slack.app

Windows: C:\Windows\System32\cmd.exe /c " SET SLACK_DEVELOPER_MENU=TRUE && start C:\Users\CHANG_USER\AppData\Local\slack\slack.exe

yarn

// install theme with watcher
yarn start

// restore theme on default url after development

yarn restore

Development Slack 3

Clone the repo and run commands using yarn/npm

yarn
yarn start

Find your Slack's application directory.

  • Windows: %homepath%\AppData\Local\slack\app-3.3.0\resources\app.asar.unpacked\src\static
  • Mac: /Applications/Slack.app/Contents/Resources/app.asar.unpacked/src/static
  • Linux: /usr/lib/slack/resources/app.asar.unpacked/src/static (Debian-based)

Open ssb-interop.js and add at the very bottom

1. Comment the part related to installation from section above!

2. Copy text and replace constant customTheme

// Change to path to style.css in repository
const customTheme = '/Users/YOUR_USER/REPOSITORY_PATH/style.css';

const URL = 'http://localhost:8080/style.css';
const createStyle = () => {
  const el = document.getElementById('custom');
  if (el) {
    el.parentNode.removeChild(el);
  }
  const style = document.createElement('link')
  style.setAttribute('type', 'text/css');
  style.setAttribute('rel', 'stylesheet');
  style.href = URL + '?zz=' + Date.now();
  style.id = 'custom';
  document.head.appendChild(style)
}
require('fs').watchFile(customTheme, createStyle);
document.addEventListener('DOMContentLoaded', createStyle);

3. Run command "yarn start" in repo

Change windows user!

Credits

Project based on slack-black-theme. Thanks to widget- and contributors.

License

MIT