BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/shadcn-lit-registry/tailwind-mixin

Tailwind Mixin

shadcn-lit-registry/tailwind-mixin
FreeUtility

A set of Tailwind CSS mixins for Lit components, enabling easy integration of Tailwind styles within web components.

Install it

npx shadcn@latest add https://lit-registry.lloydrichards.dev/r/tailwind-mixin.json

Source

registry/lib/tailwindMixin.tslit-registry.lloydrichards.dev/r/tailwind-mixin.json
1import { adoptStyles, type LitElement, unsafeCSS } from "lit";
2import tailwindCss from "@/styles/tailwind.global.css?inline";
3
4declare global {
5 // biome-ignore lint/suspicious/noExplicitAny: Required for mixin pattern compatibility
6 export type LitMixin<T = unknown> = new (...args: any[]) => T & LitElement;
7}
8
9export const tailwind = unsafeCSS(tailwindCss);
10
11// https://github.com/tailwindlabs/tailwindcss/issues/15005
12// Set all @property values from tailwind on the document
13// And only do this once (check if there is already a stylesheet with the same content)
14if (
15 tailwind.styleSheet &&
16 document?.adoptedStyleSheets &&
17 !document.adoptedStyleSheets.some(
18 (sheet) =>
19 sheet.cssRules[0]?.cssText === tailwind.styleSheet?.cssRules[0].cssText,
20 )
21) {
22 const propertiesSheet = new CSSStyleSheet();
23 let code = tailwind.cssText;
24 code = code
25 .replaceAll("inherits: false", "inherits: true")
26 .substring(code.indexOf("@property"));
27 propertiesSheet.replaceSync(code);
28 document.adoptedStyleSheets.push(propertiesSheet);
29}
30
31export const TW = <T extends LitMixin>(superClass: T): T =>
32 class extends superClass {
33 connectedCallback() {
34 super.connectedCallback();
35 if (this.shadowRoot) adoptStyles(this.shadowRoot, [tailwind]);
36 }
37 };

What it pulls in

npm packages

  • tailwind-merge
  • tw-animate-css
  • class-variance-authority
  • clsx

Files it writes

  • registry/lib/tailwindMixin.ts
  • registry/lib/tailwindMixin.d.ts
  • registry/lib/utils.ts

Facts

Registry
shadcn-lit-registry
Type
registry:lib
Access
Free
Files written
3
Licence
the repository states none
In the index
at or before 2026-08-10
Last confirmed
today

Go to the source

lit-registry.lloydrichards.dev lloydrichards/proj_shadcn-lit-registry on GitHub Raw registry item This item as JSON

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex