Skip to content

Commit 729fa43

Browse files
committed
fix(styling): scan blocks and ee in the tailwind content globs
1 parent 4c0af44 commit 729fa43

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

apps/sim/tailwind.config.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,20 @@ export default {
2020
* class unique to this directory silently resolves to nothing.
2121
*/
2222
'./lib/**/*.{js,ts,jsx,tsx,mdx}',
23+
/**
24+
* Block definitions and their shared helpers emit classes too — most
25+
* importantly `blocks/icon-color.ts`, whose `getTileIconColorClass` returns
26+
* the only bare `text-black` candidate in the app. Scanned files spell it
27+
* exclusively as `dark:text-black` or `text-black/75`, which compile to
28+
* different selectors, so leaving this directory out meant `.text-black`
29+
* was never generated at all and every light-background brand tile
30+
* inherited the ambient (near-white) color instead.
31+
*/
32+
'./blocks/**/*.{js,ts,jsx,tsx}',
33+
'./ee/**/*.{js,ts,jsx,tsx}',
34+
'./providers/**/*.{js,ts,jsx,tsx}',
35+
'./tools/**/*.{js,ts,jsx,tsx}',
36+
'./content/**/*.{js,ts,jsx,tsx}',
2337
'../../packages/emcn/src/**/*.{js,ts,jsx,tsx}',
2438
'../../packages/workflow-renderer/src/**/*.{js,ts,jsx,tsx}',
2539
'!./app/node_modules/**',

0 commit comments

Comments
 (0)