✨ Add `rgba()` color into `config.colors`
See original GitHub issueDescription
// master.css.js
export default {
colors: {
primary: '#22a3e5', // works
['accordin-expanded']: 'primary/.4', // not works
['accordin-expanded']: 'rgba(0,0,0,0.4)' // not works
}
}
We should allow config colors include rgba values and opacity shorthand.
Issue Analytics
- State:
- Created 9 months ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top Results From Across the Web
rgba() - CSS: Cascading Style Sheets - MDN Web Docs - Mozilla
The rgba() functional notation expresses a color according to its red, green, and blue components. An optional alpha component represents ...
Read more >CSS RGB and RGBA Colors - W3Schools
An RGB color value represents RED, GREEN, and BLUE light sources. RGB Value. In CSS, a color can be specified as an RGB...
Read more >The Ultimate Guide to CSS Colors (2020 Edition)
There is much more to CSS colors than RGB, HEX, and HSL... let's see the status of CSS colors in 2020. Tagged with...
Read more >The Power of the rgba() Color Function in CSS
If we have a navigation list inside a header element, we can add a background color with rgba() to the navigation. This will...
Read more >A Guide to CSS RGBA Colors - WebFX
RGBA is a type of CSS color value that allows us to set a color and also its opacity/transparency. Here's an example of...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We might implement the following syntax:
We can’t support it in
config.colors
because it contains multiple colors and behaves completely differently. You are right, we should stick to use gradient inconfig.values
orconfig.classes
to keep color configuration simple.