Repository navigation
Replies: 3 comments 1 reply
|
stuff like this https://codepen.io/argyleink/pen/11ce534368f8a91cbe08ab2c20007437?editors=1100 @property --size {
syntax: '<length>';
initial-value: 24px;
inherits: false;
}
h1 {
font-size: var(--size);
text-shadow: 0 0 var(--size) hsl(0 0% 90%);
transition: --size .5s var(--ease-squish-3);
}
h1:hover {
--size: 48px;
} |
1 reply
|
support in Safari now 👍🏻 |
0 replies
|
Roma suggests a few categories of these:
@property --captured-color {
syntax: "<color>";
inherits: true;
initial-value: white;
}
.example3 {
--captured-color: light-dark(white, black);
@container style(--captured-color: white) {
/* … */
}
@container style(--captured-color: black) {
/* … */
}
}and @property --captured-length {
syntax: "<length>";
initial-value: 0px;
inherits: false;
}
.example3 {
font-size: 0.666em;
--captured-length: 1.5em;
--example-font-size: var(--captured-length);
& span {
font-size: var(--example-font-size);
}
& .inner {
font-size: 2em;
}
} |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
from counters to animated gradients, how can we ship these as a generic interface for use?
All reactions