-
| With v3, I was able to do something like  With v4, it seems to me I can't do that anymore. I was at least hoping the  I saw there is this workaround though where you reference your own custom width directly via a CSS var, but… you know…. I’d say it’s a dirty workaround. <div class="border-(length:--my-border-width) ...">
  <!-- ... -->
</div> | 
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            wongjn
          
      
      
        Oct 20, 2025 
      
    
    Replies: 1 comment 2 replies
-
| You should be able to use  | 
Beta Was this translation helpful? Give feedback.
                  
                    2 replies
                  
                
            
      Answer selected by
        adrians5j
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
You should be able to use
--border-widthnamespace in@themeto configure your own border width theme tokens: https://play.tailwindcss.com/4f7scKfDqt