Skip to content

[v4] theme DEFAULT values #15186

Answered by wongjn
cosn asked this question in Help
Nov 26, 2024 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

DEFAULT keys are in the default namespace, so you'd do:

@theme {
  --default-transition-duration: 0.35s;
  --default-transition-timing-function: cubic-bezier(0.25, 1, 0.5, 1);
}

In v3,

borderStyle: {
    inset: 'inset',
},

wouldn't actually do anything – the border-style utilities are static and thus do not read from configuration:

tailwindcss/src/corePlugins.js

Lines 1654 to 1661 in 6069a81

addUtilities({
'.border-solid': { 'border-style': 'solid' },
'.border-dashed': { 'border-style': 'dashed' },
'.border-dotted': { 'border-style': 'dotted' },
'.border-double': { 'border-style': 'double' },
'.border-hidden': { 'border-style': 'hidden' },
'.bord…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@cosn
Comment options

@rodogir
Comment options

@wongjn
Comment options

wongjn Mar 26, 2025
Collaborator

Answer selected by cosn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants