Skip to content

Adding new tailwind breakpoints in NiceGUI #3606

Closed Answered by falkoschindler
afusdev asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @afusdev,

You can extend Tailwind's breakpoints with some custom JavaScript like this:

ui.add_body_html('''
    <script>
        tailwind.config.theme = {
            extend: {
                screens: {
                    xs: '475px',
                },
            },
        };
    </script>
''')

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@afusdev
Comment options

@falkoschindler
Comment options

@afusdev
Comment options

Answer selected by afusdev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants