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

Replace hardcoded rgb values with css variables #5

Open
ValentinTT opened this issue Jun 5, 2023 · 0 comments
Open

Replace hardcoded rgb values with css variables #5

ValentinTT opened this issue Jun 5, 2023 · 0 comments
Labels
good first issue Good for newcomers

Comments

@ValentinTT
Copy link
Collaborator

Replace hardcoded RGB values with CSS variables for improved code flexibility and maintainability.

Proposed Changes:

  • Identify and replace all hardcoded RGB values with CSS variables.

Expected Benefits:

  • Enhanced code flexibility and customization.
  • Improved code maintainability and readability.

Note:

  • IDA's CSS-based language defines variables using the syntax: @def variable value;.
  • Consider defining variables' value using RGB values only, like: @def colorGreen 64, 160, 43;. This allows using the same variable for both RGB and RGBA values, e.g., rgba(${colorGreen}, 0.80).
  • Alternatively, you can consider replacing all RGBA functions with the IDA @lighten macro for the desired effect.
@ValentinTT ValentinTT added the good first issue Good for newcomers label Jun 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant