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

fluiditype

v1.0.0

Published

Fluiditype a simple fluid typography css helper for reading experience

Downloads

26

Readme

alt text

👁 Fluiditype

Fluiditype a simple fluid typography css helper for reading experience

👟 How to run

  • You can download the package directly from Github.

  • You can run the git clone command in your Terminal to get the package.

    git clone https://github.com/Fluiditype/fluiditype.git 
    

🔬 What's inside

You will find a simple .css file which would ideally make your typography fluid and responsive to the screensize, without breaking your layout, it would impact only the typography styles.

The main rules are set in a :root selector, because of it's high specificity. There we declare the global CSS variables, which can be changed and customised to answer the needs of your project.

:root {
  --font-size: calc(12px + 0.698vw); /* The character count on */  
  --line-height: calc(var(--font-size) * 1.4);
  --letter-spacing: calc(var(--font-size) * 0.0015);
  --font-weight: 300;
}

🔠 Font-size

Everything in the fluiditype.css file is dependant and connected to the :root selector font-size calculation.

Example:

p, li, b, i, strong, a, mark {
  font-size: var(--font-size);
  line-height: var(--line-height);
  letter-spacing: var(--letter-spacing);
  font-feature-settings: normal;
  font-family: var(--font-family);
}

🕸 Fluiditype schema

alt text

The Headings elements representing six levels of section headings. The h1 defines the most important heading. The h6 defines the least important heading.

alt text

There are different text elements which are part of the Fluiditype such as pparagraph element, blockquote quote element and all different styles that can be used for text like bold, underlined, deleted and mark.

alt text

Ordered oland underodered ullists with the li element.

alt text

For better documentation and reading experience we added special definitions for some main HTML elements. The HTML code element displays its contents styled in a fashion intended to indicate that the text is a short fragment of computer code. The HTML pre element represents preformatted text which is to be presented exactly as written in the HTML file.

alt text

We also covered the behaviour of the HTML a element (or anchor element), with its href attribute, creates a hyperlink to web pages, files, email addresses, locations in the same page, or anything else a URL can address for consistency and better experience with the web typography.

📝 License

Licensed under the MIT License.

🌐 Thanks

You can always check the cool animations on our own Gatsby developed website, visit Fluiditype.

👨‍💻 Always improving

We are always working on improving Fluiditype, if you want you can always contribute and ask for more, this would help us create something more meaningful.