Skip to content

Commit

Permalink
feat: add npm
Browse files Browse the repository at this point in the history
  • Loading branch information
aruncveli committed Jul 10, 2024
1 parent feead75 commit d94f1d1
Show file tree
Hide file tree
Showing 4 changed files with 174 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ To install and use these, you will need a userstyles manager web extension like
- [Apotea](apotea) [![Install with Stylus](https://img.shields.io/badge/Install%20directly%20with-Stylus-238b8b.svg)](https://github.com/aruncveli/userstyles/raw/main/apotea/apotea.user.styl)
- [SMHI](smhi) [![Install with Stylus](https://img.shields.io/badge/Install%20directly%20with-Stylus-238b8b.svg)](https://github.com/aruncveli/userstyles/raw/main/smhi/smhi.user.styl)
- [Trafikinformation tåg](trafikinformation-tåg) [![Install with Stylus](https://img.shields.io/badge/Install%20directly%20with-Stylus-238b8b.svg)](https://github.com/aruncveli/userstyles/raw/main/trafikinformation-tåg/trafikinformation-tåg.user.styl)
- [npm Docs](npm-docs) [![Install with Stylus](https://img.shields.io/badge/Install%20directly%20with-Stylus-238b8b.svg)](https://github.com/aruncveli/userstyles/raw/main/npm-docs/npm-docs.user.styl)- [npm](npm) [![Install with Stylus](https://img.shields.io/badge/Install%20directly%20with-Stylus-238b8b.svg)](https://github.com/aruncveli/userstyles/raw/main/npm/npm.user.styl)
- [npm Docs](npm-docs) [![Install with Stylus](https://img.shields.io/badge/Install%20directly%20with-Stylus-238b8b.svg)](https://github.com/aruncveli/userstyles/raw/main/npm-docs/npm-docs.user.styl)
- [npm](npm) [![Install with Stylus](https://img.shields.io/badge/Install%20directly%20with-Stylus-238b8b.svg)](https://github.com/aruncveli/userstyles/raw/main/npm/npm.user.styl)
7 changes: 7 additions & 0 deletions npm/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# npm

[![Install with Stylus](https://img.shields.io/badge/Install%20directly%20with-Stylus-238b8b.svg)](https://github.com/aruncveli/userstyles/raw/main/npm/npm.user.styl)

Home, package and search pages.

![Screenshot of page](screenshot.png)
165 changes: 165 additions & 0 deletions npm/npm.user.styl
Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
/* ==UserStyle==
@name npm
@namespace github.com/aruncveli/userstyles
@version 24.07.10
@description description
@author Arun Chandanaveli <aruncveli@gmail.com> (https://github.com/aruncveli)
@homepageURL https://github.com/aruncveli/userstyles
@supportURL https://github.com/aruncveli/userstyles/issues
@updateURL https://github.com/aruncveli/userstyles/npm/npm.user.styl
@license MIT
@preprocessor stylus
@var color fg "Foreground" white
@var color bg "Background" black
@var color bg1 "Background lightened 1" #111111
@var color bg2 "Background lightened 2" #222222
@var color link-color "Link" #ff453a
==/UserStyle== */

set-bg(var = bg)
background-color var

set-bg1()
set-bg(bg1)

set-bg2()
set-bg(bg2)

set-fg()
color fg

@-moz-document url-prefix("https://www.npmjs.com")
:root
color-scheme dark
--header-color fg
--bg bg
--code-bg bg1
--wombat-red link-color
--background-color bg
--color-fg-subtle fg

.bg-white
set-bg()

._2f299eeb // search box
.bg-black-05
set-bg1()

.dde91b96
border-color bg1

// Logos
.af43375d svg path // npm
a[aria-label=GitHub] svg path // Github
fill fg

.dark-gray
.black
.black-90
.black-80
.black-70
.black-60
._1b8c0a9f // Headings in the footer
.cd2827bb a // Links in the footer
.a0dff0b1 // Keywords
._390acbc5::placeholder
.hover-black:hover
.c84e15be // Right pane headings: Install, Repository, etc.
set-fg()

@-moz-document url-prefix("https://www.npmjs.com/package")
// Tabs
._8055e658.d9f99065:hover
._8055e658._7aa1ee94:hover
._8055e658.c1f85151:hover
._8055e658._7cec0316:hover
._8055e658.b4fcfd19:hover
set-bg1()

._8055e658._7cec0316.ac5f7ef8
background-color rgba(137, 86, 255, 0.08)

a[aria-labelelledby=repository] svg g // repo
.fbd04dd1 > svg // Copy code
.lh-copy > svg // Copy code arrow
._513426a8 > svg > g // Git
._5cfc0900 > svg // Downloads
fill fg

._6d9832ac h1 // Readme headings
._6d9832ac h2
._6d9832ac strong
._704c034e p // Readme contents
._704c034e .highlight
._704c034e li
.a0dff0b1 // Keywords
.c84e15be // Right pane headings: Install, Repository, etc.
set-fg()

// File explorer - Code tab
._5ae7dfec button
set-fg()
&:hover
set-fg()
.a2ab2737:hover // row
set-bg1()
._450b46e9 // Back button
filter invert(1)

a[href^="/support"]
set-bg1()
background-image unset
border unset
&:hover
background-color var(--color-fg-danger)
set-fg()
border unset
background-image unset

a[href^="https://runkit.com"]
color rgb(75 173 58 / 50%)
set-bg1()
background-image unset
border unset
&:hover
background-color rgb(75 173 58 / 50%)
set-fg()
border unset
background-image unset

@-moz-document url-prefix("https://www.npmjs.com/search")

// Search results
.a9b7335e // header
set-bg()
._31dfe8f0 a // Pagination
set-fg()
.a0329937._31dfe8f0 a
set-bg1()
._26391339 a
set-fg()
set-bg()
&:hover
set-bg1()

// Sort labels
._9390ec46 label
set-fg()
&:hover
set-fg()

// Tag chips
._39bb688c // Match
set-bg1()
&:hover
set-bg2()

// Quality stats
._89d0b3e5
set-fg()

.hover-black:hover
set-bg2()

.b--black-10
border-color fg
Binary file added npm/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d94f1d1

Please sign in to comment.