You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expand README with features and usage examples. Fixes#277
Added detailed documentation to the README, including a comprehensive features list, quick start guide, common layout patterns, TypeScript integration, best practices, visual references, and accessibility considerations for the unit.gl toolkit.
Copy file name to clipboardExpand all lines: README.md
+326Lines changed: 326 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,6 +33,40 @@
33
33
34
34
`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.
35
35
36
+
---
37
+
38
+
## Features
39
+
40
+
`unit.gl` provides a robust set of features for building dynamic, responsive layouts with precision and flexibility:
41
+
42
+
### Core Layout System
43
+
44
+
-**Kyū Unit System** – A base-16 measurement system (`1q = 1/16rem = 1px`) for precise, consistent spacing and sizing across all screen sizes
45
+
-**Fluid Typography** – Dynamic font scaling with `fluid_type()` mixin that smoothly interpolates between min/max sizes across viewport breakpoints
46
+
-**Modular Scale** – Musical interval-based typographic scales (minor second, golden ratio, perfect fifth, etc.) for harmonious type hierarchies
47
+
-**Baseline Grid** – Visual rhythm system with configurable baseline increments for vertical alignment
48
+
49
+
### Responsive Design Tools
50
+
51
+
-**Viewport Breakpoints** – Predefined breakpoint system (xs, sm, md, lg, xl, sl) with `view()` mixin for mobile-first media queries
52
+
-**Device Profiles** – Pre-configured device-specific media queries for iPhone, iPad, Samsung Galaxy, and more
53
+
-**Aspect Ratio Utilities** – Maintain proportions with `display_ratio()` mixin supporting common ratios (16:9, 4:3, golden ratio)
54
+
-**Orientation Helpers** – Landscape/portrait-specific styling with `display_orientation_*` mixins
55
+
56
+
### Advanced SCSS Functions
57
+
58
+
-**Unit Conversion** – Seamless conversion between px, rem, em with `px_to_rem()`, `rem_to_px()`, `em_to_px()` functions
59
+
-**Math Operations** – `add()`, `subtract()` with intelligent unit handling; `modular_scale()` for ratio-based scaling
60
+
-**Layer Management** – z-index token system via `$layers` map and `z()` function for consistent stacking order
61
+
-**Paper Sizes** – ISO (A-series, B-series), ANSI, and custom Q-series paper dimensions for print layouts
0 commit comments