Replies: 1 comment 2 replies
-
Hey @passmgrgui, one of the primary features of Skeleton is our theme generator. This features a way to adjust things like button and input rounding right from the start. If you haven't already, you can check it out here: You can see a deeper dive into themes here as well: And obviously, if you're using one of our preset themes, they're going to have these settings "baked in". But these settings are handled via CSS Custom Properties (aka CSS variables), which means you can override these in your local project scope. We provide details on doing this here: For buttons and inputs, this would be controlled via the property called: I also see you're defining your class order in kind of a reversed order, adjusting rounding settings first, then applying the Skeleton Finally, Skeleton's utility classes such as .btn {
/* note: I've included ! but it may not be needed here */
@apply sm:!rounded-r-md;
} This will apply this override globally for all instances that use the Hope this helps! |
Beta Was this translation helpful? Give feedback.
-
As the title implies, I need a way to override the button/anchor default rounded styles as I am having an input field and button on the same row, next to each other. Simply just using !rounded-r-md (the rounded style im going for) does not work properly, as it is not resetting the other rounded styles. So I have to first used rounded-none, & then the !rounded-r-md to override that, which is not great. Plus, when resizing and adjusting these styles through breakpoints, for a split second it will show the rounded-none style, then the !rounded-r-md.
Here's what I'm using right now:
Beta Was this translation helpful? Give feedback.
All reactions