Comments (3)
Hey @axelfran, sorry I missed this!
You can see the custom properties that are set on MafsView
here.
To change them from a Next.js app (or any app tbh!), you can just reassign them (after importing mafs/core.css
so that your styles "win"):
.MafsView {
--mafs-fg: tomato;
--mafs-red: pink; /* controversial */
}
from mafs.
Hi,
I'm new to CSS variables and have been scratching my head about this. How would you go about to overwrite the custom properties in a NextJS app?
It would be awesome to be able to change the theme more easily! Thanks for making this awesome library 🎉
from mafs.
Brilliant @stevenpetryk! 🥇
Thank you for your assistance 😄
from mafs.
Related Issues (20)
- Flash of 1px wide canvas on initial render HOT 2
- Add support for limiting panning HOT 1
- y value of Point returned from onClick is wrong to a certain degree when zooming HOT 2
- Intractable Elements HOT 1
- General Approach for Sketching Implicit Functions (e.g., Circles)
- Add support for arrows on axes in the Coordinates component
- Allows to render custom dragable Elements HOT 1
- Latest release (v0.17.0) was not published correctly HOT 2
- Add some prepublish checks to ensure that Mafs was built correctly
- Movable points on click event
- Graph Logarithmic Functions using mafs HOT 1
- Svelte port HOT 1
- Behavior at jump discontinuities HOT 5
- Documentation site is missing titles HOT 1
- Vectors not colored correctly HOT 2
- Issue with ES module treatment in Next.js environment HOT 4
- Discord Channel missed and Mafs.dev can't be accessed HOT 5
- stackblitz mafs's playground is error HOT 1
- Mafs integration with Astro? HOT 5
- "simple" vector field plot not displaying many points HOT 3
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 mafs.