Files
mono/shared/static/styles/tailwind.config.js
giles 8024fa5b13 Live wire response + component display with OOB swaps on all examples
- All 6 examples show Component and Wire response as placeholders that
  fill with actual content when the demo is triggered (via OOB swaps)
- Wire response shows full wire content including component definitions
  (when not cached) and CSS style block
- Component display only includes defs the client doesn't already have,
  matching real sx_response() behaviour
- Add "Clear component cache" button to reset localStorage + in-memory
  component env so next interaction shows component download
- Rebuild tw.css with Tailwind v3.4.19 including sx content paths
- Optimize sx_response() CSS scanning to only scan sent comp_defs

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-03 01:54:45 +00:00

45 lines
1.7 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/** @type {import('tailwindcss').Config} */
module.exports = {
safelist: [
// ~menu-row-sx builds bg-{colour}-{shade} dynamically via (str ...)
// Levels 14 produce shades 400100 (level 5+ yields 0 or negative = no match)
{ pattern: /^bg-sky-(100|200|300|400|500)$/ },
{ pattern: /^bg-violet-(100|200|300|400|500)$/ },
],
content: [
'/root/rose-ash/shared/sx/templates/**/*.sx',
'/root/rose-ash/shared/browser/templates/**/*.html',
'/root/rose-ash/blog/sx/**/*.sx',
'/root/rose-ash/blog/browser/templates/**/*.html',
'/root/rose-ash/market/sx/**/*.sx',
'/root/rose-ash/market/browser/templates/**/*.html',
'/root/rose-ash/cart/sx/**/*.sx',
'/root/rose-ash/cart/browser/templates/**/*.html',
'/root/rose-ash/events/sx/**/*.sx',
'/root/rose-ash/events/browser/templates/**/*.html',
'/root/rose-ash/federation/sx/**/*.sx',
'/root/rose-ash/federation/browser/templates/**/*.html',
'/root/rose-ash/account/sx/**/*.sx',
'/root/rose-ash/account/browser/templates/**/*.html',
'/root/rose-ash/orders/sx/**/*.sx',
'/root/rose-ash/orders/browser/templates/**/*.html',
'/root/rose-ash/shared/sx/helpers.py',
'/root/rose-ash/blog/sx/sx_components.py',
'/root/rose-ash/market/sx/sx_components.py',
'/root/rose-ash/cart/sx/sx_components.py',
'/root/rose-ash/events/sx/sx_components.py',
'/root/rose-ash/federation/sx/sx_components.py',
'/root/rose-ash/account/sx/sx_components.py',
'/root/rose-ash/orders/sx/sx_components.py',
'/root/rose-ash/sx/sxc/**/*.sx',
'/root/rose-ash/sx/sxc/sx_components.py',
'/root/rose-ash/sx/content/highlight.py',
],
theme: {
extend: {},
},
plugins: [
require('@tailwindcss/typography'),
],
}