diff --git a/README.rst b/README.rst index 18e98b3f..4ef18e3c 100644 --- a/README.rst +++ b/README.rst @@ -49,4 +49,4 @@ Files this package must make available :alt: favicon :width: 32px -``/paragon/fonts.scss``, ``/paragon/_variables.scss``, ``/paragon/_overrides.scss`` A SASS theme for `@edx/paragon `_. Theming documentation in Paragon is coming soon. In the meantime, you can start a theme by the contents of `_variables.scss (after line 7) `_ file from the Paragon repository into this file. +``/paragon/theme.js``, ``/paragon/fonts.scss``, ``/paragon/_variables.scss``, ``/paragon/_overrides.scss`` A CSS-in-JS and SASS theme for `@edx/paragon `_. Theming documentation in Paragon is coming soon. In the meantime, you can start a theme by the contents of `_variables.scss (after line 7) `_ file from the Paragon repository into this file. diff --git a/paragon/theme.js b/paragon/theme.js new file mode 100644 index 00000000..b7b05459 --- /dev/null +++ b/paragon/theme.js @@ -0,0 +1,11 @@ +// The theme.js for Paragon. The structure of this object follows the +// theme specification found here: https://system-ui.com/theme/. Theme values +// not defined here will fallback to their Paragon defaults. + +const applyTheme = (oldTheme) => { + const theme = { ...oldTheme }; + return theme; +} + +export default applyTheme; +