glass-react
TypeScript icon, indicating that this package has built-in type declarations

2.0.3 • Public • Published



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/

    Package Sidebar

    Install

    npm i glass-react

    Weekly Downloads

    4

    Version

    2.0.3

    License

    none

    Unpacked Size

    7.12 MB

    Total Files

    5

    Last publish

    Collaborators

    • andrew_glass