# ADR 0002 · Scoped tokens and Tailwind compatibility

**Accepted under D1b.** Ancrel publishes ordinary CSS. Each theme or density scope redeclares all values on its axis with zero-specificity selectors such as `:where([data-theme="light"])`. The default context is dark and comfortable. Setting a nested scope only affects its descendants. The optional `.dark` bridge follows a class-based root theme when the root has no explicit `data-theme`.

Semantic roles use `--ac-sys-*` and public component slots use `--ac-comp-*`. Runtime layout values use `--ac-private-*`. Raw reference values stay in DTCG source data. The public class and data attribute identify the component, for example `.ac-Button` and `data-ac="Button"`.

Lightning CSS packages the same component rules in layered and unlayered forms. Modern consumers place the `ac` layer after preflight and before utilities using `@layer ac.reset, ac.components;` within the package. The unlayered file supports Tailwind v3 preflight. Optional v4 inline theme and v3 preset adapters expose `bg-ac-panel` and `p-ac-inset` for application code. Component styles work without scanning package sources. See RFC-0001 §§2.4–2.5.
