Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add support for space-y and space-x #115

Merged
merged 4 commits into from
Jan 16, 2022

Conversation

xiCO2k
Copy link
Collaborator

@xiCO2k xiCO2k commented Jan 16, 2022

Hey,

This PR adds the support to the space-y and space-x utility class from tailwind: https://tailwindcss.com/docs/space

Example

render(<<<'HTML'
    <div class="my-1 mx-2 space-y-1">
        <div class="font-bold uppercase">Title</div>
        <div>Lorem ipsum dolor sit amet, consectetur adipisicing elit</div>
        <div class="text-gray">© 2022</div>
    </div>
HTML);

instead of:

render(<<<'HTML'
    <div class="my-1 mx-2">
        <div class="font-bold uppercase">Title</div>
        <div class="mt-1">Lorem ipsum dolor sit amet, consectetur adipisicing elit</div>
        <div class="mt-1 text-gray">© 2022</div>
    </div>
HTML);

@nunomaduro nunomaduro merged commit a5c6bcd into nunomaduro:master Jan 16, 2022
@xiCO2k xiCO2k deleted the feat/add-space-utility branch January 16, 2022 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants