QS Pack

Buttons





Variable nameDefault valueDescription
--b-btnpurpleBackground color for the button component.
--border-btnpurpleBorder color for the button component.
--br-btn.3remBorder radius for the button component.
--c-btn#fffText color for the button component.
--c-btn-svar(--b-btn, purple)Secondary text color for the button component, used in the .btn-s class.
--c-btn-tvar(--b-btn, purple)Tertiary text color for the button component, used in the .btn-t class.
--fs-btn1remFont size for the button component.
--fw-btn500Font weight for the button component.
--p-btn.6rem 1.2remPadding for the button component.
--g-btn.6remGap between elements inside the button component.


CSS ClassDescription
btnBase class for the button component. Sets up alignment, background, border, color, cursor, display, font-size, font-weight, gap, justify-content, outline, overflow, padding, position, text-decoration, transition, and user-select.
btn::beforeBefore pseudo-element for the btn class. Defines background color, content, inset, opacity, position, and transition.
btn::afterAfter pseudo-element for the btn class. Defines animation, border, border-left-color, border-radius, content, display, height, left, opacity, position, top, transition, width, and z-index.
btn:hover::before, btn.syncing::beforeStyles for the before pseudo-element when the btn class is hovered over or has the syncing class.
btn:activeStyle for the btn class when it is active. Applies transform.
btn:disabledStyle for the btn class when it is disabled. Applies opacity and pointer-events.
btn.syncingModifier class for the btn component when syncing. Adjusts pointer-events.
btn-sSecondary style for the button component. Adjusts background and color, mainly used for secondary button styling.
btn-tTertiary style for the button component. Adjusts background, border-color, and color, mainly used for tertiary button styling.