theme/colors coherence between spectrum implementations #1863
-
Hi, The Spectrum specification (https://spectrum.adobe.com/page/color/) specifies four different color scheme : I was wondering why the react implementation is made that way and why it does not follow the Spectrum specification ? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I think you're asking how you can use darkTheme. In order to use the darkTheme, you would change this line in your application If you need to lock it so that only the 'darkest' is being used. You can also supply |
Beta Was this translation helpful? Give feedback.
I think you're asking how you can use darkTheme. In order to use the darkTheme, you would change this line in your application
import {defaultTheme} from '@adobe/react-spectrum';
to
import {darkTheme} from '@adobe/react-spectrum';
If you need to lock it so that only the 'darkest' is being used. You can also supply
colorScheme="dark"
to your Provider. This will stop it from picking up OS settings and changing to the 'dark' theme. You will always be in 'darkest' becausedarkTheme
maps to OS settings like this 'OS Light -> theme dark', 'OS Dark -> theme darkest'.