Comments (6)
@JacobLinCool Sorry for the confusion caused by the old documentation, I will explain all this later with the new documentation.
Our new documentation face will be updated soon. 🤩 Stay tuned.
from css.
@1aron Thanks for your response.
I understand the concepts behind the pre-generating strategy, but it seems not a good idea to use Master CSS variables within native CSS? Master CSS variables are more likely the internal (private) ones to me and should not be accessible by other parties.
If I have to share variables within and without Master CSS, maybe I would like to control the state by myself.
from css.
@JacobLinCool This issue has been sorted into milestone. 😌 https://github.com/master-co/css/milestone/1
from css.
@JacobLinCool I think we might go with your idea - the preset will map colors and inline the rgb into CSS rules, for a minimal output.
Thx again. 😌
from css.
@JacobLinCool About the color tree shaking, let me explain first.
In the future we will have three modes:
- Map colors directly, inline
rgb
in CSS rules ( minimal output ) - Generate the CSS color variables according to the used colors
- Pre-generate all CSS color variables ( currently preset )
Why use CSS Variables for this? For now, most people still write CSS rules for some reason, so if you want to access the Master's colors, you must go through CSS variables.
from css.
@JacobLinCool Agree, so there will be three modes for you to choose.
If you want to use Master Colors in CSS files and we didn't pre-generated CSS variables for you, you have to look up the color table and define the variables manually, which will reduce the development experience.
Other CSS frameworks don't do this, so people keep raising this issue.
from css.
Related Issues (20)
- 📄 Abbreviations table HOT 2
- 📄 Easy grid systems? HOT 1
- 💖 Shorthand rules automatically inherit related rule variables
- 🐞 Valid CSS declaration was verified as unknown
- ✨ Support missing important CSS logical properties and values
- ✨ Container Queries HOT 6
- 🐞 Value in config.variables is not recognized when it is zero
- 🐞 Hinted pseudo-class label name is missing `()`
- 🐞 Static extraction misses generating variables and related classes
- ✨ ESLint: Recommended Syntax Warnings
- 🐞 [ESLint] A config object is using the "parserOptions" key, which is not supported in flat config system. HOT 1
- 🐞 An error "Cannot find module" occurs when importing files in master.config.ts
- 🐞 CSS rules with vender prefix is listed after the original
- 🐞 Incorrect syntax highlighting `{@delay:.5s}` HOT 1
- The automated release is failing 🚨
- 🐞 Causes incorrect class selection when there is only one character HOT 1
- ✨ Variables support all color functions
- 🐞 calc in border size reverts to border-width HOT 1
- 🐞 Solid gets appended to border when using vars for all params HOT 1
- ✨ Add Text-wrap HOT 2
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.