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 Request ] Add posibility to change colors of components #265

Closed
DamianDamian-Domin opened this issue Oct 27, 2021 · 3 comments
Closed

Comments

@DamianDamian-Domin
Copy link

Is your feature request related to a problem? Please describe.

Actually on many of components like slider or toggle its not possible to change color. Actually i'm forced to use blue clor on many of components, and the blue color doesn't fit to my application :D

Describe the solution you'd like

Add new props to elements which will allow to change custom color in RGB notation f.e

<it-slider>
border-color="#FF23FF"
shadow-color="FF11FF"
</it-slider>

Would be great :)

Describe alternatives you've considered

At least add basic colors to other components like in button we can choose primary, success etc.

Additional context

No response

@wopian
Copy link

wopian commented Nov 5, 2021

You can style the components with CSS

<script setup>
let value = 2
</script>

<template>
  <it-slider class='red-slider' v-model="value" :max="5" />
</template>

<style scoped>
.red-slider:deep(.it-slider-bar) {
  background: red;
}
</style>

Screenshot 2021-11-05 at 17 48 22

It would be neat if the components used CSS variables for their colours however.

@AbrahemAlhofe
Copy link
Contributor

You can style the components with CSS

<script setup>
let value = 2
</script>

<template>
  <it-slider class='red-slider' v-model="value" :max="5" />
</template>

<style scoped>
.red-slider:deep(.it-slider-bar) {
  background: red;
}
</style>
Screenshot 2021-11-05 at 17 48 22

It would be neat if the components used CSS variables for their colours however.

It will be an issue if there is a complex structure so we can use css variables.

.it-slider {
  --progress-color: red;
}

@DamianDamian-Domin
Copy link
Author

Thanks, it works :)

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

3 participants