Comments (6)
Sorry, I am not following what you want.
What is your issue?
from postcss-custom-properties.
Basically you can supply a directory in postcss-mixins
then it will read them files and make the mixins available on the global scope.
Just wondering if something of the equivalent could be added to this so i could use the variables without having to implicitly import the file
from postcss-custom-properties.
Implicit is a bad thing imo. Confuse newbies.
And it's definitely not in the scope of this plugin I think, which try to follow the spec, even if it have to impose restriction (like for :root)
Why don't you use "variables" option instead?
from postcss-custom-properties.
I would use the variables
options but currently some of my variables are built based on other variables:
--Font_Size-base: 16px;
--Line_Height-base: calc(var(--Font_Size-base) + 10px);
As far as i know i wouldn't be able to do this with the variables
option
from postcss-custom-properties.
If you define this in JS (via "variables" option), you can do whatever you want, without the "pain" of CSS syntax.
from postcss-custom-properties.
That could work, might make it a bit more messier than i'd like but that would work, thanks :)
from postcss-custom-properties.
Related Issues (20)
- Doesn't convert variable with postcss mixin
- Non-passive change for ImportFrom Priority HOT 2
- How to watch file defined in importFrom in webpack? HOT 2
- Nested custom properties with preserve false does not work correctly HOT 1
- High severity vulnerabilities in dependencies HOT 2
- Process CSS synchronously? Plus add example to DOC.
- Emojis in property name are not working âšī¸ HOT 3
- importFrom CSS string HOT 1
- Variables starting with '-' cannot be recognized HOT 1
- Webpack example seems to be incorrect HOT 2
- Error: PostCSS plugin postcss-custom-properties requires PostCSS 8. HOT 1
- Error: Error: PostCSS plugin postcss-custom-properties requires PostCSS 8. HOT 1
- Inline urls confuse the parser HOT 1
- variable '--van-gray-6' is undefined and used without a fallback
- variable '--van-gray-6' is undefined and used without a fallback HOT 1
- `importFrom` should support ESM HOT 2
- v12.0.0's env = development and preserve: false is not working. HOT 5
- CSS variables with url() lead to an `Cannot read property 'value' of undefined` HOT 2
- Import from .postcss files HOT 1
- Unknown word error when attempting to parse valid CSS 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 postcss-custom-properties.