Margin
Utilities for controlling an element's margin.
#
Table of classesClass
Properties
m-0
{ margin: 0 }
m-0.25
{ margin: 1 }
m-0.5
{ margin: 2 }
m-1
{ margin: 4 }
m-1.5
{ margin: 6 }
m-2
{ margin: 8 }
m-2.5
{ margin: 10 }
m-3
{ margin: 12 }
m-3.5
{ margin: 14 }
m-4
{ margin: 16 }
m-5
{ margin: 20 }
m-6
{ margin: 24 }
m-7
{ margin: 28 }
m-8
{ margin: 32 }
m-9
{ margin: 36 }
m-10
{ margin: 40 }
m-11
{ margin: 44 }
m-12
{ margin: 48 }
m-14
{ margin: 56 }
m-16
{ margin: 64 }
m-20
{ margin: 80 }
m-24
{ margin: 96 }
m-28
{ margin: 112 }
m-32
{ margin: 128 }
mt-0
{ marginTop: 0 }
mt-0.25
{ marginTop: 1 }
mt-0.5
{ marginTop: 2 }
mt-1
{ marginTop: 4 }
mt-1.5
{ marginTop: 6 }
mt-2
{ marginTop: 8 }
mt-2.5
{ marginTop: 10 }
mt-3
{ marginTop: 12 }
mt-3.5
{ marginTop: 14 }
mt-4
{ marginTop: 16 }
mt-5
{ marginTop: 20 }
mt-6
{ marginTop: 24 }
mt-7
{ marginTop: 28 }
mt-8
{ marginTop: 32 }
mt-9
{ marginTop: 36 }
mt-10
{ marginTop: 40 }
mt-11
{ marginTop: 44 }
mt-12
{ marginTop: 48 }
mt-14
{ marginTop: 56 }
mt-16
{ marginTop: 64 }
mt-20
{ marginTop: 80 }
mt-24
{ marginTop: 96 }
mt-28
{ marginTop: 112 }
mt-32
{ marginTop: 128 }
mb-0
{ marginBottom: 0 }
mb-0.25
{ marginBottom: 1 }
mb-0.5
{ marginBottom: 2 }
mb-1
{ marginBottom: 4 }
mb-1.5
{ marginBottom: 6 }
mb-2
{ marginBottom: 8 }
mb-2.5
{ marginBottom: 10 }
mb-3
{ marginBottom: 12 }
mb-3.5
{ marginBottom: 14 }
mb-4
{ marginBottom: 16 }
mb-5
{ marginBottom: 20 }
mb-6
{ marginBottom: 24 }
mb-7
{ marginBottom: 28 }
mb-8
{ marginBottom: 32 }
mb-9
{ marginBottom: 36 }
mb-10
{ marginBottom: 40 }
mb-11
{ marginBottom: 44 }
mb-12
{ marginBottom: 48 }
mb-14
{ marginBottom: 56 }
mb-16
{ marginBottom: 64 }
mb-20
{ marginBottom: 80 }
mb-24
{ marginBottom: 96 }
mb-28
{ marginBottom: 112 }
mb-32
{ marginBottom: 128 }
ml-0
{ marginLeft: 0 }
ml-0.25
{ marginLeft: 1 }
ml-0.5
{ marginLeft: 2 }
ml-1
{ marginLeft: 4 }
ml-1.5
{ marginLeft: 6 }
ml-2
{ marginLeft: 8 }
ml-2.5
{ marginLeft: 10 }
ml-3
{ marginLeft: 12 }
ml-3.5
{ marginLeft: 14 }
ml-4
{ marginLeft: 16 }
ml-5
{ marginLeft: 20 }
ml-6
{ marginLeft: 24 }
ml-7
{ marginLeft: 28 }
ml-8
{ marginLeft: 32 }
ml-9
{ marginLeft: 36 }
ml-10
{ marginLeft: 40 }
ml-11
{ marginLeft: 44 }
ml-12
{ marginLeft: 48 }
ml-14
{ marginLeft: 56 }
ml-16
{ marginLeft: 64 }
ml-20
{ marginLeft: 80 }
ml-24
{ marginLeft: 96 }
ml-28
{ marginLeft: 112 }
ml-32
{ marginLeft: 128 }
mr-0
{ marginRight: 0 }
mr-0.25
{ marginRight: 1 }
mr-0.5
{ marginRight: 2 }
mr-1
{ marginRight: 4 }
mr-1.5
{ marginRight: 6 }
mr-2
{ marginRight: 8 }
mr-2.5
{ marginRight: 10 }
mr-3
{ marginRight: 12 }
mr-3.5
{ marginRight: 14 }
mr-4
{ marginRight: 16 }
mr-5
{ marginRight: 20 }
mr-6
{ marginRight: 24 }
mr-7
{ marginRight: 28 }
mr-8
{ marginRight: 32 }
mr-9
{ marginRight: 36 }
mr-10
{ marginRight: 40 }
mr-11
{ marginRight: 44 }
mr-12
{ marginRight: 48 }
mr-14
{ marginRight: 56 }
mr-16
{ marginRight: 64 }
mr-20
{ marginRight: 80 }
mr-24
{ marginRight: 96 }
mr-28
{ marginRight: 112 }
mr-32
{ marginRight: 128 }
my-0
{ marginVertical: 0 }
my-0.25
{ marginVertical: 1 }
my-0.5
{ marginVertical: 2 }
my-1
{ marginVertical: 4 }
my-1.5
{ marginVertical: 6 }
my-2
{ marginVertical: 8 }
my-2.5
{ marginVertical: 10 }
my-3
{ marginVertical: 12 }
my-3.5
{ marginVertical: 14 }
my-4
{ marginVertical: 16 }
my-5
{ marginVertical: 20 }
my-6
{ marginVertical: 24 }
my-7
{ marginVertical: 28 }
my-8
{ marginVertical: 32 }
my-9
{ marginVertical: 36 }
my-10
{ marginVertical: 40 }
my-11
{ marginVertical: 44 }
my-12
{ marginVertical: 48 }
my-14
{ marginVertical: 56 }
my-16
{ marginVertical: 64 }
my-20
{ marginVertical: 80 }
my-24
{ marginVertical: 96 }
my-28
{ marginVertical: 112 }
my-32
{ marginVertical: 128 }
mx-0
{ marginHorizontal: 0 }
mx-0.25
{ marginHorizontal: 1 }
mx-0.5
{ marginHorizontal: 2 }
mx-1
{ marginHorizontal: 4 }
mx-1.5
{ marginHorizontal: 6 }
mx-2
{ marginHorizontal: 8 }
mx-2.5
{ marginHorizontal: 10 }
mx-3
{ marginHorizontal: 12 }
mx-3.5
{ marginHorizontal: 14 }
mx-4
{ marginHorizontal: 16 }
mx-5
{ marginHorizontal: 20 }
mx-6
{ marginHorizontal: 24 }
mx-7
{ marginHorizontal: 28 }
mx-8
{ marginHorizontal: 32 }
mx-9
{ marginHorizontal: 36 }
mx-10
{ marginHorizontal: 40 }
mx-11
{ marginHorizontal: 44 }
mx-12
{ marginHorizontal: 48 }
mx-14
{ marginHorizontal: 56 }
mx-16
{ marginHorizontal: 64 }
mx-20
{ marginHorizontal: 80 }
mx-24
{ marginHorizontal: 96 }
mx-28
{ marginHorizontal: 112 }
mx-32
{ marginHorizontal: 128 }
#
Customizationinfo
To get an introduction on how customization works, it is recommended to visit the dedicated page in the documentation
To customize the classes regarding the margins, you go to modify the fields under the property called spacing
.
wind.config.js
import {customize} from 'react-native-wind';
customize({ theme: { spacing: { container: 23, }, },});
The library will automatically generate classes for margin and padding called in this way:
m-container
(and all other margin classes for every position prefixed likemt
mb
...)p-container
(and all other padding classes for every position prefixed likept
pb
...)
All generated classes will have a value of 23
note
Adding a property to spacing will always add a class to both margin and padding because they both refer to the same general values