Comments (5)
@gammx What's your Master CSS version now? It works for me.
Generated CSS
JIT in console
from css.
@1aron I'm using the latest version, I'm also using the manual/hybrid rendering setup with Next.js (https://docs.master.co/css/setup/nextjs#hybrid-rendering), Here are some things I've noticed:
- If I use Next.js with SCSS and declare the scoped variable in a
.scss
file it doesn't work, but it works with a.css
file - If I refresh the page, the class is generated but it's using the color as variable
--#F9F9F9
:
<style id="master-css">
.font-color\:\$\(text-primary\){color:var(--#F9F9F9)}
</style>
- If I remove the manual initialization/hybrid rendering declared in my
_document.tsx
file, it works with both.scss
and.css
but it's weird because the style tag gets empty:
<style id="master-css"></style>
So I guess it's something with the Next.js setup... maybe?
from css.
Ok I managed to get it working removing some conflicts with other classes, but it works only if I remove hybrid rendering, I get this with the https://docs.master.co/css/setup/nextjs#hybrid-rendering setup:
<style id="master-css">
.font-color\:\$\(text-primary\){color:var(--#F9F9F9)} /*instead of var(--text-primary)*/
</style>
And it works if I remove the hybrid rendering code, but the style tag gets empty:
from css.
If it is JIT, Master CSS will use the native style.sheet
API to manipulate CSS rules. You can't see it through inspect, but you can use console.log
.
from css.
Nice, well, I removed the hybrid rendering setup to stop getting the color:var(--#F9F9F9)
thing, thanks:)
from css.
Related Issues (20)
- πWrong version of `@master/css` as dependency of `@master/css.svelte` HOT 3
- π `outline:none` is broken HOT 3
- π Modify Master CSS configuration without reloading ESLint Server HOT 1
- π CSS variables with `themeDriver: 'media'` were not captured
- π Reset outline style on focus to maintain accessibility HOT 4
- π Create `CSSStyleRule` based on different themes HOT 2
- π Export error with sveltekit HOT 1
- π Set up Master CSS in Svelte
- π MasterCSS should look for `master.css.*` config file inside src folder (svelte) HOT 4
- π New `render()` function throwing errors in SvelteKit HOT 2
- π CDN https://cdn.master.co/[email protected] doesn't exist HOT 2
- Hide or Fade classes (VS Code Extension)
- π Missing binary after installing @master/css-language-server HOT 2
- π Alpha channel modifier related to Color is not documented
- β¨ Multiplier unit `x` and `config.baseUnit`
- π Prefer animation names over variables HOT 2
- π normal.css max-width causes many problems HOT 5
- π Invalid SSL certificate
- β¨ `@supported` shorthand for whether declarations are supported
- β¨ `translate`, `scale:`, `rotate:` shorthands for `transform:`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from css.