/* Consumer-side CSS: plain unlayered rules must override the library's * base-layer border fallback without !important. */ main { display: flex; flex-direction: column; gap: 24px; padding: 32px; } .box { padding: 8px; border-style: solid; border-width: 2px; } /* 1. default border: no explicit color -> theme --border */ .default-border { background: var(--surface); } /* 2. explicit color survives the global fallback */ .explicit-border { border-color: rgb(200, 0, 0); } /* 3. consumer override wins without !important */ .override-border { border-color: rgb(0, 128, 0); } /* 4. missing --border falls back to currentColor */ .fallback-border { --border: initial; color: rgb(0, 0, 255); }