endigma / unocss-preset-radix

A preset for UnoCSS to let you use Radix color palette
https://endigma.github.io/unocss-preset-radix/
MIT License
32 stars 6 forks source link

Feature request: use 'dark' instead of 'dark-theme' #12

Closed silveltman closed 1 year ago

silveltman commented 1 year ago

Would be a nice little feature!

endigma commented 1 year ago

You can change the dark and light mode selectors in the config:

  /**
   * Customize the selector used to apply the dark versions of the color palette
   * @default ".dark-theme"
   */
  darkSelector?: string;

  /**
   * Customize the selector used to apply the light versions of the color palette
   * @default ":root, .light-theme"
   */
  lightSelector?: string;
silveltman commented 1 year ago

Ah I see, didn't realize that was a setting. Thanks!