0.0.35 • Published 3 months ago

unit.gl v0.0.35

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
3 months ago

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 BucketScreen DensityPhysical SizePixel Size
ldpi120 dpi0.5 x 0.5 in60 x 60 px0.5 in x 120 dpi
mdpi160 dpi0.5 x 0.5 in80 x 80 px0.5 in x 160 dpi
hdpi240 dpi0.5 x 0.5 in120 x 120 px0.5 in x 240 dpi
xhdpi320 dpi0.5 x 0.5 in160 x 160 px0.5 in x 320 dpi
xxhdpi480 dpi0.5 x 0.5 in240 x 240 px0.5 in x 480 dpi
xxxhdpi640 dpi0.5 x 0.5 in320 x 320 px0.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.

0.0.30

3 months ago

0.0.32

3 months ago

0.0.33

3 months ago

0.0.34

3 months ago

0.0.35

3 months ago

0.0.28

4 months ago

0.0.29

4 months ago

0.0.27

4 months ago

0.0.24

4 months ago

0.0.25

4 months ago

0.0.26

4 months ago

0.0.20

4 months ago

0.0.21

4 months ago

0.0.10

4 months ago

0.0.22

4 months ago

0.0.11

4 months ago

0.0.12

4 months ago

0.0.13

4 months ago

0.0.14

4 months ago

0.0.9

4 months ago

0.0.18

4 months ago

0.0.19

4 months ago

0.0.5

4 months ago

0.0.6

4 months ago

0.0.2

4 months ago

0.0.1

4 months ago