Socket
Socket
Sign inDemoInstall

@teft/buttons

Package Overview
Dependencies
0
Maintainers
3
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @teft/buttons

Buttons for Teft.


Version published
Maintainers
3
Created

Readme

Source

Buttons

Teft styling for WordPress Buttons Block buttons and custom buttons with the .teft-button class. Override default WordPress colors, sizing and border radius with Teft custom properties.

Installation

Install the module

npm install @teft/buttons

Variables

NameDefault valueExplanation
--teft-buttons-primary-colorvar(--teft-theme-primary-color, #1897ec)Background color for primary button. Inherit color from theme package.
--teft-buttons-text-colorvar(--teft-theme-on-primary-color, #fff)Text color for primary button. Inherit color from theme package.
--teft-buttons-outlined-colorvar(--teft-buttons-primary-color)Text and border color for button with outlined style.
--teft-buttons-disabled-colorvar(--teft-theme-disabled-color, #ccc)Background color for disabled buttons. Inherit color from theme package.
--teft-buttons-disabled-text-colorvar(--teft-theme-on-primary-color, #fff)Text color for disabled buttons. Inherit color from theme package.
--teft-buttons-border-radius6.25emButton burder radius.

Examples

Using default WordPress Buttons Block markup.

<div class="wp-block-buttons">
	<div class="wp-block-button"><a class="wp-block-button__link" href="#">Primary Button</a></div>
	<div class="wp-block-button is-style-outline"><a class="wp-block-button__link" href="#">Outlined Button</a></div>
</div>

Buttons block in different styles and colors.

Teft+wp-block-buttons

Markup using .teft-button class.

<a href="#" class="teft-button">Primary Teft Button</a>
<input type="button" class="teft-button teft-button--secondary" value="Teft Button Secondary" />
<input type="button" class="teft-button teft-button--alert" value="Teft Button Alert" />
<button type="submit" class="teft-button teft-button--success">Teft Button Success</button>
<button type="button" class="teft-button teft-button--warning">Teft Button Warning</button>
<button type="button" class="teft-button teft-button--warning" disabled>Teft Button Warning :disabled</button>

Teft buttons in different states.

Teft Buttons

Keywords

FAQs

Last updated on 03 Mar 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc