Description
When reviewing the list of default theme variables:
https://tailwindcss.com/docs/theme#default-theme-variable-reference
Likewise looking at the source here, the follow do not appear:
https://github.com/tailwindlabs/tailwindcss/blob/main/packages/tailwindcss/theme.css
There's no reference for the following properties:
- border-width
- divide-width
- ring-width
- outline-width
My expectation would be to see something like:
--border-*: '...';
--divide-* '...';
--ring-*: '...';
--outline-* '...';
This is present for, say, border radius which uses --radius-*
:
And this is even called out on the individual documentation page for Rounded:
https://tailwindcss.com/docs/border-radius#customizing-your-theme
However no equivalent theme properties appear to be provided for the options mentioned above.
- https://tailwindcss.com/docs/border-width#using-a-custom-value
- https://tailwindcss.com/docs/box-shadow#customizing-your-theme
- https://tailwindcss.com/docs/outline-width#using-a-custom-value
Additionally I'd be specifically interested in learning how the default values can be modified for these utilities. In Tailwind v3 these used the DEFAULT
name:
https://v3.tailwindcss.com/docs/border-width#customizing-your-theme
module.exports = {
theme: {
borderWidth: {
DEFAULT: '1px', // <-- what's the v4 equivalent?
'0': '0',
'2': '2px',
'3': '3px',
'4': '4px',
'6': '6px',
'8': '8px',
}
}
}