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

thelounge-theme-chord

v1.2.1

Published

Darkly elegant theme for The Lounge

Downloads

39

Readme

Chord

Darkly elegant theme for The Lounge.

Preview

Second preview

Chord is designed to offer a pleasant visual revamp with specific improvements in mobile usability, support for devices with rounded screens, and an emphasis on type and legibility.

Installation

If you installed The Lounge with a package manager:

thelounge install thelounge-theme-chord

If you installed The Lounge from source:

node index.js install thelounge-theme-chord

Cookbook

Below are snippets designed to be pasted in the Custom Stylesheet setting to offer basic tweaks, personalization, and configuration.

Style for bots

/* Monospace font for better ASCII */
#chat .msg[data-from=BOT_NICKNAME] .content {
  font-family: monospace !important;
  color: #888;
}

/* Reduce line height to 1.0 for better ASCII */
#chat .msg[data-from=BOT_NICKNAME] .time, #chat .msg[data-from=BOT_NICKNAME] .from, #chat .msg[data-from=BOT_NICKNAME] .content {
  padding-top: 0;
  padding-bottom: 0;
}
#chat .msg[data-from=BOT_NICKNAME] .content span {
  display: inline-block;
}
#chat .msg[data-from=BOT_NICKNAME] {
  margin-bottom: 0;
}

/* Restore spacing for non-bot messages adjacent to bot messages when using
 * the previous block.
 */
#chat .msg[data-from=BOT_NICKNAME].previous-source + .msg:not(.previous-source) {
  padding-top: 3px;
}

/* Hide timestamps for consecutive bot messages */
#chat .msg[data-from=BOT_NICKNAME].previous-source .time {
  visibility: hidden;
}

Set your own nickname color

#chat .msg.self .user {
	color: #236BFF;
}

Adjust message width

:root {
	--chat-wrap-width: 1200px /* default */
}

Disable update indicator

:root {
  --update-available: 0;
}

Contributing

Bug reports, feature requests, suggestions, and feedback should be posted in the issue tracker.

PRs are welcome and very much appreciated. To get started:

git clone [email protected]:easymac/thelounge-theme-chord.git
cd /thelounge-theme-chord
npm run scss

Since The Lounge doesn't at the time of writing support installing themes from local npm packages, for development purposes the theme needs to be installed with thelounge install thelounge-theme-chord and modifications to theme.css need to be copied to /etc/thelounge/packages/node_modules/thelounge-theme-chord/theme.css.

Right now, I'm just manually copying it over after every change, which sucks. I should set up a watcher to do it for me but I haven't.

Todo:

Feel free to take a crack at any of these that interest you:

  • Optimize for your devices: I only tested Chord on my own devices. If you identify any fixes or areas that can be improved for your device, please open an issue with a screenshot! (Or make a PR if you're feeling generous.) This particularly includes adjustments that can be made to media queries to better scale the UI to your screens.
  • Update the icons: fontawesome is great and free but some of the icons seem a little too thick for Chord.
  • Add some more nickname colors: Chord currently has 14 defined and as many as 32 could be supported.
  • Create GitHub Actions: Triggers to automatically bump the version number and release on NPM would be really awesome.
  • Design a light mode: I would love for the theme to respect a user's prefers-color-scheme setting eventually, but a light mode needs to be created first. This could be achieved by implementing better CSS variable integration into the stylesheet, overriding the dark colors, and making necessary adjustments for legibility.