Skip to content

Releases: ericrav/theme-party

v0.4.0

16 Sep 18:30
Compare
Choose a tag to compare

What's Changed

  • #7 — TypeScript fix: allow booleans in Theme Party objects

Full Changelog: v0.3.0...v0.4.0

v0.3.0

11 Sep 22:09
Compare
Choose a tag to compare

New Features

import { ThemeOverride, ThemePartyConfig } from 'theme-party';

const override: ThemePartyConfig = { color: { link: 'blue' } };
function Component() {
  return (
    <ThemeOverride value={override}>
      <Link>Click me</Link>
    </ThemeOverride>
  );
}
  • ThemeOverride: override select values of the current theme
  • ThemePartyConfig: utility type for type-checking & autocomplete of your theme values in a vanilla object

Other changes

  • Array values in a theme will no longer become a Proxy value & instead will be treated as primitive theme values (fixes #5)