Skip to content

Default theme variables appear to be incomplete #2073

Closed
tailwindlabs/tailwindcss
#16469
@endigo9740

Description

@endigo9740

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-*:

Image

And this is even called out on the individual documentation page for Rounded:
https://tailwindcss.com/docs/border-radius#customizing-your-theme

Image

However no equivalent theme properties appear to be provided for the options mentioned above.

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',
    }
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions