Skip to content

Upgrade Guide

0.5.0

Added: Virtual import for theme utilities

The virtual import <name>:context is now reserved, authors can no longer create custom virtual modules with this name, example:

defineTheme({
imports: {
context: {
options: {
// ...
}
}
})

0.4.0

Renamed: Virtual Imports

Virtual imports have been updated to follow conventions for virtual modules. This fix now allows theme packages use an export property inside the package.json without breaking.

import { Component } from 'my-theme/components'
import 'my-theme/styles'
import { Component } from 'my-theme:components'
import 'my-theme:styles'

Renamed: Default module for styling

The default module for styling css has been renamed to styles

import 'my-theme/css'
import 'my-theme:styles'

Make sure to also update the name of the folder inside of your theme

  • Directorypackage/
    • Directorysrc/
      • Directorystyles/ <- Renamed from “css”