PLATFORM
  • Tails

    Create websites with TailwindCSS

  • Blocks

    Design blocks for your website

  • Wave

    Start building the next great SAAS

  • Pines

    Alpine & Tailwind UI Library

  • Auth

    Plug'n Play Authentication for Laravel

  • Designer comingsoon

    Create website designs with AI

  • DevBlog comingsoon

    Blog platform for developers

  • Static

    Build a simple static website

  • SaaS Adventure

    21-day program to build a SAAS

Question By

ian

Unsolved

Questions about using Tails

ian63483aed8a85d

Nov 12th, 2022 03:18 PM

Questions about using Tails.

Hi. I have questions about Tails. Please direct me elsewhere if there is a more appropriate forum for Tails conversation.

• How do I set classes that don’t have a size prefix? Every class I add is locked into a specific screen size.

• The numeric values for padding, sizing etc only have a dropdown of options. How do I type in a value?

• Is there a way to create components or symbols?

bobbyiliev

Nov 12th, 2022 10:15 PM

Hi there,

To add custom classes you could use the Tails code editor. The code editor lets you see the raw HTML code of the components in your page. You can customize your code in any way you like.

You can also do that for the padding, here is a link to the Tailwind CSS official padding documentation:

https://tailwindcss.com/docs/padding

You can add custom components by adding a blank component and then click on the code editor and add your own element:

Can you clarify what do you mean exactly by symbols?

Best,

Bobby

ian63483aed8a85d

Nov 13th, 2022 08:11 AM

I'm actually asking about adding classes that are not device-size specific. If I make changes using the visual editor, the code created always has a size prefix. I then have to go into the code and remove it. xl:border-slate-50, for example. This must not be the intended process.

By symbol, I mean a reusable component that could be duplicated multiple times. Changes applied to the master symbol would be reflected on all instances of that symbol. Ideally overrides could be made on select attributes and content.

bobbyiliev

Nov 14th, 2022 01:20 AM

Hi there,

Thanks for the clarification. This actually depends on the screen size that you are currently working on (you can do that by clicking on the mobile icon on the top right and changing the Tails screen size there), if you changed the size of the screen the prefix will match it accordingly. Here is a quick video as an example:

This is handy because that way you are adding classes for the screensize that you are working on which allows you to create a responsive design using the visual editor.

Regarding the second question, we currently don't have such of a concept of linked components. But it sounds like a good idea! I'll add it to the back log, though we can't give an ETA on when this will be available.

Let me know if you have any other suggestions or feedback!

ian63483aed8a85d

Nov 14th, 2022 01:55 PM

OK. I was trying to create general classes that are not size-specific, but I guess that's not possible.

I think that implementing reusable custom components would be an excellent idea!

I'll let you know if I have other feedback.

bobbyiliev

Nov 15th, 2022 04:36 AM

Thanks a lot for that! We just had a quick chat internally, indeed we might be able to implement a toggle button for example, that would let you just add generic classes without a specific breakpoint. We will add that to the backlog!