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)
- π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.