Coder Social home page Coder Social logo

Comments (7)

argyleink avatar argyleink commented on June 3, 2024 6

now that :global can be specified, it's still not good enough to work with NextJS CSS Modules. might need to devise a strategy that builds to a separate file that's imported globally. then the jit-props plugin can see the usages and populate a file and fill :root with definitions, allowing a nextjs site to load those props as a file and avoid creating impure selectors.

from postcss-jit-props.

argyleink avatar argyleink commented on June 3, 2024 1

https://stackblitz.com/edit/nextjs-openprops?file=styles%2Fglobals.css

from postcss-jit-props.

olafurns7 avatar olafurns7 commented on June 3, 2024

@argyleink did give up on this adventure or is there a solution?

from postcss-jit-props.

argyleink avatar argyleink commented on June 3, 2024

i've given up jit-props integration with next yeah, it's a micro-optimization that can easily be ignored for larger fish to fry.

from postcss-jit-props.

SalahAdDin avatar SalahAdDin commented on June 3, 2024

i've given up jit-props integration with next yeah, it's a micro-optimization that can easily be ignored for larger fish to fry.

If you are not using jit, what are you using then?

from postcss-jit-props.

argyleink avatar argyleink commented on June 3, 2024

loading the props into :global and not worrying about shaking or pruning unused props.

if you are worried, you can do individual imports to reduce filesize, aka pick each prop set you need. not loading all the colors is a great place to start, just import the palettes you intend to use.

from postcss-jit-props.

SalahAdDin avatar SalahAdDin commented on June 3, 2024

loading the props into :global and not worrying about shaking or pruning unused props.

if you are worried, you can do individual imports to reduce filesize, aka pick each prop set you need. not loading all the colors is a great place to start, just import the palettes you intend to use.

I wonder, how is your setup?

from postcss-jit-props.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.