Custom properties (or CSS variables) allow to define stylesheet-wide values identified by a token and usable in all CSS declarations.
I’m working on a CSS file that is quite long. I know that the client could ask for changes …
css variables colors css-variablesI am designing an app in electron, so I have access to CSS variables. I have defined a color variable …
css colors css-variablesI am trying to use CSS variables in media query and it does not work. :root { --mobile-breakpoint: 642px; } @media (max-width: …
css media-queries css-variablesIs there a way to access a css variable from javascript? Here my css variable declaration. :root { --color-font-general: #336699; }
javascript css css-variablesI want to store my background URLs in custom properties (CSS variables) and use them with the background property. However, …
css css-variablesAm I misunderstanding the capabilities of css variables? I am trying to pass a background image url to a variable …
css css-variablesIs it possible to use pure CSS variables with Vue without having to link any stylesheets or use SASS/PostCSS? …
css vue.js global-variables css-variablesHow do you get and set CSS custom properties (those accessed with var(…) in the stylesheet) using JavaScript (plain or …
javascript jquery css css-variablesIs there a way to use CSS variables when specifying gradient colors with transparency, e.g. :root { --accent-color: #dfd0a5; } …
css css-variablesIs there a way to pollyfill a custom CSS property for ie11 with JavaScript? I was thinking on load, check …
javascript css internet-explorer-11 css-variables