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

@ferserc1/input-style-unifier

v0.0.1

Published

A simple CSS library to unify the style of input elements across browsers. Use it as a CSS reset for the input fields, and customize the style using CSS variables.

Downloads

6

Readme

input-style-unifier

A CSS only library to unify the styles of input fields across all browsers

Usage

Include the .isu class in the input field whose design you want to homogenize, and then modify the CSS variables you want change. It's recommended to modify the common variables first.

Common variables

  • --isu-main-fg-color: Main color for use in foreground elements, such as text.
  • --isu-main-bg-color: Main color for use on neutral colored backgrounds.
  • --isu-theme-color-1: Color 1 of the color scheme, default is a light color.
  • --isu-theme-color-2: Color 2 of the color scheme, default is a light color.
  • --isu-theme-color-3: Color 3 of the color scheme, default is a dark color.
  • --isu-theme-color-4: Color 4 of the color scheme, default is a dark color.
  • --isu-highlight-color: Color used to highlight elements, for example, a focused input.
  • --isu-transition-time-slow: Time for slow transitions.
  • --isu-transition-time-medium: Time for medium speed transitions.
  • --isu-transition-time-fast: Time for fast transitions

input[range]

The parts of a range input control are the following:

Input type range

Notes:

  • The lower track is the part of the runnable track that goes from the beginning to the knob. The upper track goes from the knob to the end of the range field. The It is not possible to set different styles for lower and upper tracks of the range input using CSS-only solution because Webkit-based browsers doesn't have this property.
  • The outline style of the runnable track is drawn over the knob in webkit-based browsers, so it's not a good idea to use it if the knob is taller than the runnable track. For this reason, there aren't CSS variables to control the runnable track style in hover and active states.
  • The tick marks and vertical sliders are not supported yet.

CSS Variables:

Input field:

  • --range-input-default-width: the default width of the input[range] control

Runnable track:

  • --range-runnable-track-background
  • --range-runnable-track-height
  • --range-runnable-track-border-radius
  • --range-runnable-track-border-size
  • --range-runnable-track-border-color
  • --range-runnable-track-border-style
  • --range-runnable-track-outline
  • --range-runnable-track-outline-offset
  • --range-runnable-track-box-shadow

Runnable track, focus state:

  • --range-runnable-track-focus-background
  • --range-runnable-track-focus-height
  • --range-runnable-track-focus-border-radius
  • --range-runnable-track-focus-border-size
  • --range-runnable-track-focus-border-color
  • --range-runnable-track-focus-border-style
  • --range-runnable-track-focus-outline
  • --range-runnable-track-focus-outline-offset

Knob button:

  • --range-thumb-background
  • --range-thumb-size
  • --range-thumb-border-radius
  • --range-thumb-border
  • --range-thumb-outline
  • --range-thumb-outline-offset
  • --range-thumb-box-shadow

Knob button, hover state:

  • --range-thumb-hover-background
  • --range-thumb-hover-size
  • --range-thumb-hover-border-radius
  • --range-thumb-hover-border
  • --range-thumb-hover-outline
  • --range-thumb-hover-outline-offset

Knob button, focus sate:

  • --range-thumb-focus-background
  • --range-thumb-focus-size
  • --range-thumb-focus-border-radius
  • --range-thumb-focus-border
  • --range-thumb-focus-outline
  • --range-thumb-focus-outline-offset

Knob button, active state:

--range-thumb-active-background --range-thumb-active-size --range-thumb-active-border-radius --range-thumb-active-border --range-thumb-active-outline --range-thumb-active-outline-offset