Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: preview variable colors which represent rgba (3 numbers) #170

Open
gianpaj opened this issue Jul 21, 2023 · 0 comments
Open

Feature: preview variable colors which represent rgba (3 numbers) #170

gianpaj opened this issue Jul 21, 2023 · 0 comments

Comments

@gianpaj
Copy link

gianpaj commented Jul 21, 2023

  --ctm_merchandise-001: 0, 199, 101;
  --ctm_secondary-800: 239, 143, 15;
  --ctm_secondary-main: 241, 201, 51;

later we use them like this

.ctm_c-merchandise-001 {
  --text-opacity: 1;
  color: rgba(var(--ctm_merchandise-001), var(--text-opacity));
}

.ctm_bg-merchandise-001,
.h\:ctm_bg-merchandise-001:hover {
  background-color: rgba(var(--ctm_merchandise-001));
}

that's why the variables do not have rgba() inside

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant