On This Page
Available border shortcuts for theme roundedness or selecting border colors for light and dark modes.
Please do not use Tailwind classes like rounded-lg | rounded-xl
and so on in your application, and instead use the variables that you set up in your theme. This means that it will be easier for you to make changes down the road and assure a consistent look & feel across your entire application.
rounded-btn
can be used for buttons and elements that should look similar to buttons. The available button classes automatically already use this token.
You can use all the position variants that you can also use in with regular Tailwind classes: r | l | b | t | tl | tr | bl | br
.
Examples: rounded-btn-l
, rounded-btn-tr
.
rounded-btn-icon
is used for icon buttons automatically. You probably don’t need to use it anywhere else, but it’s a class that exists.
rounded-container
can be used for any containers, such as form containers, hero containers, cards, etc. This class is also already used in a few of Ato-UI’s available shortcuts.
Examples: rounded-container-r
, rounded-container-bl
.
border-[color]-[shade1]/[opacity1]-[shade2]/[opacity2]
: Sets the border color with shades 1 and 2 for light and dark mode respectively. The opacities are optional.
Examples: border-surface-700-200
, border-surface-800/50-200/50
.
border-inverse-[color1]-[shade1]/[opacity1]-[color2]-[shade2]/[opacity2]
: Allows you to set a different border color for light and dark mode with the two specified colors. Shades and opacities are optional.
Examples: border-inverse-primary-secondary
, border-inverse-surface/50-surface-200/40
.