1.11.30 • Published 10 months ago

cb-sting v1.11.30

Weekly downloads
-
License
ISC
Repository
github
Last release
10 months ago

cb-sting

cb-sting is a Tailwind CSS plugin that provides additional string utilities for your projects.

Installation

You can install the cb-sting plugin via npm. Make sure you have Tailwind CSS installed in your project before proceeding with the following steps.

npm install cb-sting

After installing, add the plugin to your Tailwind CSS configuration file (tailwind.config.js):

module.exports = {
  // ...
  plugins: [
    require("cb-sting"),
    // ...
  ],
};

Theming

cb-sting also supports theming for additional customization options. To use the pre-defined theme, add the following link to your HTML file:

<link rel="stylesheet" href="https://cb-design.netlify.app/sting_tokens.css" />

You can modify the theme file to suit your project's branding and color scheme. For more information on theming, please refer to the cb-sting documentation.

Usage

The cb-sting plugin extends Tailwind CSS with new string utilities. These utilities can be used directly in your HTML or within your CSS files.

Here are a few examples of how to use cb-sting utilities:

Truncate Text

The truncate utility truncates long text and adds an ellipsis when it overflows its container.

<p class="truncate">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>

Capitalize Text

The capitalize utility capitalizes the first letter of each word in a string.

<span class="capitalize">hello world</span>

Uppercase Text

The uppercase utility transforms all letters in a string to uppercase.

<h1 class="uppercase">welcome to cb-sting</h1>

Styled Button

The cb-sting plugin can be used in conjunction with other Tailwind CSS classes to style components. Here's an example of a button styled using the btn and btn-primary classes:

<button class="btn btn-primary">Button</button>

Form Control

The cb-sting plugin can be utilized to style form controls as well. Here's an example of a form control with a label and an input field:

<div class="form-control">
  <label for="email" class="label">Email</label>
  <input
    type="email"
    name="email"
    id="email"
    class="input"
    placeholder="you@example.com"
  />
</div>

For more details and a full list of available utilities, please refer to the cb-sting documentation.

Feel free to customize the above template further, provide additional information, or adjust it to match your plugin's specific features and theming requirements.

Changelog

Current Version: 1.8.1 (07-11-2023)

  • Added new button classes (primary-outline and primary-light)

Current Version: 1.9.0 (07-14-2023)

  • Added new badges classes

Current Version: 1.9.1 (07-14-2023)

  • Updated badges button state css

Current Version: 1.9.2 (07-25-2023)

  • New colour tokens added to the theme

Current Version: 1.9.3 (08-07-2023)

  • Fixes added
  • Focus states added
  • Disabled state fixes for outline and borderless buttons
  • group button classes added
  • Other minor fixes

Current Version: 1.10.0 (11-08-2023)

  • New Typography components added
  • Font new tokens and family aded

Current Version: 1.10.1 (16-08-2023)

  • Button colour token updated

Current Version: 1.10.2 (16-08-2023)

  • Button borderless bg removed to transparent

Current Version: 1.11.0 (06-09-2023)

  • Button, Badge, Dropdown, Input updated
1.11.30

10 months ago

1.11.27

10 months ago

1.11.28

10 months ago

1.11.29

10 months ago

1.11.26

1 year ago

1.11.25

1 year ago

1.11.23

1 year ago

1.11.24

1 year ago

1.11.20

1 year ago

1.11.21

1 year ago

1.11.22

1 year ago

1.11.19

1 year ago

1.11.17

1 year ago

1.11.18

1 year ago

1.11.16

1 year ago

1.11.15

1 year ago

1.11.14

1 year ago

1.11.13

1 year ago

1.11.12

1 year ago

1.11.11

1 year ago

1.11.10

1 year ago

1.11.9

1 year ago

1.11.8

1 year ago

1.11.7

1 year ago

1.11.6

1 year ago

1.11.4

2 years ago

1.11.3

2 years ago

1.10.4

2 years ago

1.11.2

2 years ago

1.10.3

2 years ago

1.10.2

2 years ago

1.11.5

2 years ago

1.9.1

2 years ago

1.9.0

2 years ago

1.8.1

2 years ago

1.9.3

2 years ago

1.9.2

2 years ago

1.11.0

2 years ago

1.10.1

2 years ago

1.10.0

2 years ago

1.8.0

2 years ago

1.6.4

2 years ago

1.7.0

2 years ago

1.6.5

2 years ago

1.6.3

2 years ago

1.5.4

2 years ago

1.6.2

2 years ago

1.5.3

2 years ago

1.6.1

2 years ago

1.5.2

2 years ago

1.5.1

2 years ago

1.5.0

2 years ago

1.4.5

2 years ago

1.4.4

2 years ago

1.4.3

2 years ago

1.2.0

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.4.2

3 years ago

1.4.1

3 years ago

1.4.0

3 years ago

1.3.1

3 years ago

1.1.3

3 years ago

1.3.0

3 years ago

1.1.2

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago