Comments (4)
Hi @Yusseiin
You need to pass theme in this way:
const theme = {
rainbow: {
palette: {
brand: "#ff0000",
success: "",
mainBackground: "",
..
},
},
};
Here there is doc about how to use it:
https://react-rainbow.io/#/Customization
from react-rainbow.
Hi @Yusseiin
You need to pass theme in this way:
const theme = { rainbow: { palette: { brand: "#ff0000", success: "", mainBackground: "", .. }, }, };Here there is doc about how to use it: https://react-rainbow.io/#/Customization
There is that part in my code:
const theme = {
rainbow: {
palette: {
main: "#ff0000",
dark: "#ff0000",
light: "#ff0000",
},
background: {
main: "#000000",
highlight: "#000000",
secondary: "#000000",
disabled: "#000000",
}
},
};
And then i recall it here:
<RainbowThemeContainer theme={theme}>
<Picklist
value={selection}
placeholder={selection}
onChange={handlePicklistChange}
style={containerStyles}
//variant="inverse"
>
<Option name="Custom" label="Custom" />
<Option name="Today" label="Today" value = {Today} />
<Option name="Yesterday" label="Yesterday" value = {Yesterday}/>
<Option name="This Week" label="This Week" value = {Week}/>
</Picklist>
<DatePickerModal
title='Select a Date'
isOpen={isOpen}
variant="double"
value={dates}
selectionType="range"
onChange={handleDatePickerChange}
onRequestClose={() => {setOpen(false); handleDatePickerChange(dates)}}
/>
</RainbowThemeContainer>
but is not changing the color
from react-rainbow.
@LeandroTorresSicilia i think i have found the problem.
in the wiki "https://react-rainbow.io/#/Customization" it says to use background: {
, but the correct one is mainBackground:
.
For changing the text color what is the correct one? is says text
but is not working. I have tryed with
titleText: theme.palette.secondary[200],
mainText: theme.palette.secondary[200],
titleText: theme.palette.secondary[200],
headerText: theme.palette.secondary[200],
labelText: theme.palette.secondary[200],
disabledText: theme.palette.secondary[200],
but no one is working
from react-rainbow.
@Yusseiin Right now we don't support changing the text color, you can only change these ones:
Using the code as I said above.
Here is a code sandbox: https://codesandbox.io/s/quirky-dew-rzxj7t?file=/src/App.js
from react-rainbow.
Related Issues (20)
- fix: textarea with grow prop move elements around when focus
- feat: implement "borderRadius" prop on ImportRecordFlow component
- fix: unexpected padding/margin on the first column on the Table component. HOT 1
- fix: padding on first column on the ImportRecordFlow component HOT 1
- fix: styles on button when hover
- datetimepicker not showing german time HOT 4
- Display error in mobile browsers when using the CarouselCard component
- fix: InternalDropdown error when use in a project
- fix: slider not working with final-form/redux-form
- fix: CurrencyInput has pattern that does not allow numbers with decimals
- fix: Default props of CounterInput with wrong value
- fix: close button borderRadius on Modal component
- feat: implement `borderRadius` prop on the pagination component
- fix: GoogleAddressLookup size grows for selected address with long text
- fix: CheckBoxToggle click behavior
- Package not found on file system, but is built into node error.
- feat: use dropdowns for selecting month, instead of next and previous
- Components Mismatch in Node Modules
- fix: `react-typeform-embed` is enforcing a peer-dep on react 16
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 react-rainbow.