A
AstraWind
v0.2.0
System
Sizing

width

Utilities for setting the width of an element.

Quick reference

152 of 159 classes apply on React Native
Class
Styles
React Native
container
width: 100%; max-width: 40rem; max-width: 48rem; max-width: 64rem; max-width: 80rem; max-width: 96rem;
No native equivalent
size-0
width: 0px; height: 0px;
width: 0 height: 0
size-0.5
width: calc(var(--spacing) * 0.5); height: calc(var(--spacing) * 0.5);
width: 2 height: 2
size-1
width: var(--spacing); height: var(--spacing);
width: 4 height: 4
size-1.5
width: calc(var(--spacing) * 1.5); height: calc(var(--spacing) * 1.5);
width: 6 height: 6
size-2
width: calc(var(--spacing) * 2); height: calc(var(--spacing) * 2);
width: 8 height: 8
size-2.5
width: calc(var(--spacing) * 2.5); height: calc(var(--spacing) * 2.5);
width: 10 height: 10
size-3
width: calc(var(--spacing) * 3); height: calc(var(--spacing) * 3);
width: 12 height: 12
size-3.5
width: calc(var(--spacing) * 3.5); height: calc(var(--spacing) * 3.5);
width: 14 height: 14
size-4
width: calc(var(--spacing) * 4); height: calc(var(--spacing) * 4);
width: 16 height: 16
size-5
width: calc(var(--spacing) * 5); height: calc(var(--spacing) * 5);
width: 20 height: 20
size-6
width: calc(var(--spacing) * 6); height: calc(var(--spacing) * 6);
width: 24 height: 24
Show all 159 classes
The React Native column is what AstraWind resolves each class to, computed live on this page with the current color scheme. Classes with no native equivalent are accepted without effect, and AstraWind warns about them in development. See Compatibility.