The "from" keyword in CSS color functions extracts color channels (like r, g, b) from another color. For example, rgba(from var(--color) r g b / 50%) reuses --color’s RGB values and applies 50% opacity, creating a semi-transparent version.
#css
3 months ago