Comments (5)
Please take a look at this file: https://github.com/rewindui/rewindui/blob/main/packages/core/src/theme/styles/Button.styles.ts
This is the cva file of the Button component. If you scroll down a bit you will notice that for the combination of color blue and tone solid I am indeed using bg-blue-500.
All style files on Rewind-UI are using the cva library, which you can check out here: https://cva.style/docs/getting-started/variants
Now you can use the ThemeProvider and completely adjust the styles of any component. You can read more about it here: https://rewind-ui.dev/theming
It is really easy, give it a try and let me know what you think and if you managed to adjust it the way you want! 😃
from rewindui.
Hello Jo,
Could you post your code as well please?
from rewindui.
Tailwind usage :
<Button type="submit" className={`bg-blue-500`}>
S' inscrire
</Button>
It work great !
With rewind color property :
<Button type="submit" color="blue-500">
S' inscrire
</Button>
Not work !
Simple color property :
<Button type="submit" color="blue">
S' inscrire
</Button>
work great !
from rewindui.
Looks like you are trying to pass an invalid color value.
The available color values are: white, blue, red, green, yellow, purple, gray, dark and black.
You can read about it on the docs at the Tones & Color section here: https://rewind-ui.dev/components/button
Not sure why you are trying to pass the blue-500 value though and not just use the color="blue" value!
from rewindui.
Yep, in tailwind you can defined gradient of your color and sometimes you want to use the gradient of the principal color for colorise your UI.
So I can use bg-blue-500 bg-blue-800
for different gradient of my custom blue
It's a frequent use case, so rewind ui should consider it for further customization
Otherwise the solution of using tailwind's classes suits me very well, if indeed it is not possible for rewind.ui considered the color gradients in the "color" property
from rewindui.
Related Issues (20)
- Node warning: "Module not found: Can't resolve '@emotion/is-prop-valid" HOT 2
- Missing current value props? HOT 1
- Missing value for Radio component HOT 2
- Status Position on Avatar component doesn't change HOT 1
- Feature Request: multi select on combobox / select HOT 3
- Outline colors HOT 4
- Tabs.Tab `ref` does not allow clicking / selection HOT 4
- Contributing documentation HOT 2
- ImageEditor Component HOT 3
- Theming documentation isn't clear HOT 5
- Running rewindui storybook in local throws error with node v17 or greater. HOT 3
- Feature Request : Add Disabled State for Tabs HOT 1
- Feature Request: Add Button Story Template for Icons and Labels HOT 1
- Combobox initialValue onChange event issue HOT 1
- Date Picker and Async Combobox HOT 3
- Missing input type HOT 3
- Select component icon not triggering select HOT 2
- Center Alignment of Table Headers and Footer HOT 3
- Feature : Add Dark Mode Button HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rewindui.