TODOs:
- scope GlassListener's tailwind better (add #glass ?) (see 6/18/24 below)
---- 6/18/24 ----
I'm thing of just adding a #glass attribute before every single tailwind style, and adding an id='#glass'
This gives better scope
That should work even on global styles and even on preflight...
GPT generated this: https://chatgpt.com/c/69753276-9525-4a0b-a0e1-f533160ce6ac
module.exports = (opts = {}) => {
const prefix = opts.prefix || '#glass ';
return {
postcssPlugin: 'prepend-selector',
Rule(rule) {
if (rule.selector) {
rule.selector = rule.selector.split(',').map(selector =>
`${prefix} ${selector.trim()}`
).join(', ');
}
}
};
};
module.exports.postcss = true;
---- - ----
glass-react
2.0.3 • Public • PublishedReadme
Keywords
nonePackage Sidebar
Install
npm i glass-react
Weekly Downloads
3
Version
2.0.3
License
none
Unpacked Size
7.12 MB
Total Files
5