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

unit.gl

v0.0.35

Published

Layout Engine.

Downloads

72

Readme

GitHub License devContainer



Contents


Report a Bug Request a Feature Ask a Question Make a Suggestion Start a Discussion

Stylescape Layout Engine.

Introduction

unit.gl is a comprehensive design toolkit focused on fluid typography, responsive design, and advanced SCSS functions. It's crafted to empower designers and developers to create harmonious, scalable, and accessible web experiences efficiently.

Features

  • Fluid Typography: Utilizes the Kyū measurement system, allowing seamless scaling of text across different devices.
  • Modular Scale: Provides functions for generating sizes (font-size, spacing) based on various musical and mathematical ratios.
  • Responsive Helpers: Includes mixins for orientation and device-specific media queries, enabling designs that adapt to various screen sizes and resolutions.
  • Advanced SCSS Functions: Contains a suite of functions for unit conversions, arithmetic operations, and generating sequences like Fibonacci, Lucas, and more.
  • Accessibility Considerations: Ensures typography adheres to accessibility standards like WCAG.
  • Dynamic Scaling: Implements CSS clamp for more dynamic scaling across a range of screen sizes.
  • Lucas and Fibonacci Series: Functions to generate numbers from these famous sequences for use in design calculations.
  • Guides and Grids: Mixins for creating baseline grids and guide overlays for design alignment.

Installation

HTML Script Tag

<script src="https://unpkg.com/unit.gl@latest/dist.min.js"></script>

NPM Module

npm i unit.gl

Links

Unit System

Digital Size Conversions

Physical SizeConversions

Pixel Density

| Density Bucket | Screen Density | Physical Size | Pixel Size | | | :---------------- | ----------------: | ----------------: | ----------------: | ----------------: | | ldpi | 120 dpi | 0.5 x 0.5 in | 60 x 60 px | 0.5 in x 120 dpi | | mdpi | 160 dpi | 0.5 x 0.5 in | 80 x 80 px | 0.5 in x 160 dpi | | hdpi | 240 dpi | 0.5 x 0.5 in | 120 x 120 px | 0.5 in x 240 dpi | | xhdpi | 320 dpi | 0.5 x 0.5 in | 160 x 160 px | 0.5 in x 320 dpi | | xxhdpi | 480 dpi | 0.5 x 0.5 in | 240 x 240 px | 0.5 in x 480 dpi | | xxxhdpi | 640 dpi | 0.5 x 0.5 in | 320 x 320 px | 0.5 in x 640 dpi |

More information:


Colophon

Authors

unit.gl is an open-source project by Scape Agency.

Scape Agency

Scape Agency is a spatial innovation collective that dreams, discovers and designs the everyday of tomorrow. We blend design thinking with emerging technologies to create a brighter perspective for people and planet. Our products and services naturalise technology in liveable and sustainable –scapes that spark the imagination and inspire future generations.

Development Resources

Contributing

We'd love for you to contribute and to make this project even better than it is today! Please refer to the contribution guidelines for information.

Legal Information

Copyright

Copyright © 2023 Scape Agency BV. All Rights Reserved.

License

Except as otherwise noted, the content in this repository is licensed under the Creative Commons Attribution 4.0 International (CC BY 4.0) License, and code samples are licensed under the Apache 2.0 License.

Also see LICENSE and LICENSE-CODE.

Disclaimer

THIS SOFTWARE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.