geist-org / geist-ui

A design system for building modern websites and applications.
https://geist-ui.dev
MIT License
4.35k stars 335 forks source link

Secondary theme override not changing secondary button colour #609

Closed pierrenel closed 3 years ago

pierrenel commented 3 years ago

Bug report 🐞

Version & Environment

Expected Behaviour

Have the ability to set the secondary background colour on a button

Actual results (or Errors)

Setting the secondary colour in a custom theme, doesn't change the colour on a button where type = "secondary", it remains black/white.


const customTheme = Themes.createFromLight({
  type: 'custom',
  palette: {
    "background": "#ffffff",
    "foreground": "#020202",
    "selection": "#aedeff",
    "secondary": "#184892",
    "success": "#184892",
    "cyan": "#37d9d4",
    "violet": "#7c3aed",
    "purple": "#8b5cf6",
    "alert": "#ff5172",
    "link": "#3666b0"
  },
})
unix commented 3 years ago

same as #535