
Product
Introducing Module Reachability: Focus on the Vulnerabilities That Matter
Module Reachability filters out unreachable CVEs so you can focus on vulnerabilities that actually matter to your application.
tailwindcss-inner-border
Advanced tools
A Tailwind CSS plugin that provides utilities for creating inner borders with box-shadow.
A plugin that provides utilities for creating inner borders with box-shadow.
Install the plugin from npm:
npm install -D tailwindcss-inner-border
Then add the plugin to your tailwind.config.js
file:
// tailwind.config.js
module.exports = {
theme: {
// ...
},
plugins: [
require("tailwindcss-inner-border"),
// ...
],
};
Use the inner-border-{n}
utilities to set the inner border width for all sides of an element:
<input class="inner-border ...">
<input class="inner-border-2 ...">
Control the inner border color of an element using the inner-border-{color}
utilities:
<input class="inner-border-2 inner-border-rose-500 ...">
Variants and color opacity modifiers may also be used:
<input class="inner-border-2 inner-border-rose-500/75 hover:inner-border-rose-500 ...">
You can configure which values and variants are generated by this plugin under the borderWidth
and borderColor
keys in your tailwind.config.js
file.
Note
By default, Tailwind makes the entire default color palette available as border colors. You can customize your color palette by editing
theme.colors
ortheme.extend.colors
as shown below.
// tailwind.config.js
module.exports = {
theme: {
borderWidth: {
DEFAULT: "1px",
0: "0px",
2: "2px",
+ 3: "3px",
4: "4px",
+ 6: "6px",
- 8: "8px",
},
extend: {
+ colors: {
+ "regal-blue": "#243c5a",
+ },
},
},
};
FAQs
A Tailwind CSS plugin that provides utilities for creating inner borders with box-shadow.
The npm package tailwindcss-inner-border receives a total of 4,825 weekly downloads. As such, tailwindcss-inner-border popularity was classified as popular.
We found that tailwindcss-inner-border demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Product
Module Reachability filters out unreachable CVEs so you can focus on vulnerabilities that actually matter to your application.
Company News
Socket is bringing best-in-class reachability analysis into the platform — cutting false positives, accelerating triage, and cementing our place as the leader in software supply chain security.
Product
Socket is introducing a new way to organize repositories and apply repository-specific security policies.