JSFiddle - React, Tailwind, and code Playground

CSS

body {
  --test: 123;
  counter-increment: test var(--test);
}

body::before {
  content: counter(test);
}